About LockModeType

1-10 of 41Refresh
JPA Doc
102

javax.persistence.LockModeType

javax.persistence Enum LockModeType java.lang.Object java.lang.EnumLockModeType> javax.persistence.LockModeType Implemented Interfaces: Serializable, Comparable<LockModeType> Lock modes can be specified by means of passing a LockModeType argument to one of the javax
JPA Doc
78

values()

Static Method javax.persistence.LockModeType LockModeType[] values() Returns an array containing the constants of this enum type. This method may be used to iterate over the constants as follows: for (LockModeType c : LockModeType.values()) System.out.println(c) Returns: an array containing
JPA Doc
74

valueOf(name)

Static Method javax.persistence.LockModeType LockModeType valueOf(   String name ) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. Parameters: name - the name of the enum constant
JPA Doc
72

LockModeType.NONE

Enum Constant javax.persistence.LockModeType NONE No lock. Since: JPA 2.0
JPA Doc
72

LockModeType.OPTIMISTIC

Enum Constant javax.persistence.LockModeType OPTIMISTIC Optimistic lock. Since: JPA 2.0
JPA Doc
72

LockModeType.OPTIMISTIC_FORCE_INCREMENT

Enum Constant javax.persistence.LockModeType OPTIMISTIC_FORCE_INCREMENT Optimistic lock, with version update. Since: JPA 2.0
JPA Doc
72

LockModeType.PESSIMISTIC_FORCE_INCREMENT

Enum Constant javax.persistence.LockModeType PESSIMISTIC_FORCE_INCREMENT Pessimistic write lock, with version update. Since: JPA 2.0
JPA Doc
72

LockModeType.PESSIMISTIC_READ

Enum Constant javax.persistence.LockModeType PESSIMISTIC_READ Pessimistic read lock. Since: JPA 2.0
JPA Doc
72

LockModeType.PESSIMISTIC_WRITE

Enum Constant javax.persistence.LockModeType PESSIMISTIC_WRITE Pessimistic write lock. Since: JPA 2.0
JPA Doc
72

LockModeType.READ

Enum Constant javax.persistence.LockModeType READ Synonymous with OPTIMISTIC. OPTIMISTIC is to be preferred for new applications. Since: JPA 1.0