public enum LockModeType extends java.lang.Enum<LockModeType>
Java class for lock-mode-type.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="lock-mode-type"> <restriction base="{http://www.w3.org/2001/XMLSchema}token"> <enumeration value="READ"/> <enumeration value="WRITE"/> <enumeration value="OPTIMISTIC"/> <enumeration value="OPTIMISTIC_FORCE_INCREMENT"/> <enumeration value="PESSIMISTIC_READ"/> <enumeration value="PESSIMISTIC_WRITE"/> <enumeration value="PESSIMISTIC_FORCE_INCREMENT"/> <enumeration value="NONE"/> </restriction> </simpleType>
Enum Constant and Description |
---|
NONE |
OPTIMISTIC |
OPTIMISTIC_FORCE_INCREMENT |
PESSIMISTIC_FORCE_INCREMENT |
PESSIMISTIC_READ |
PESSIMISTIC_WRITE |
READ |
WRITE |
Modifier and Type | Method and Description |
---|---|
static LockModeType |
fromValue(java.lang.String v) |
java.lang.String |
value() |
static LockModeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LockModeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockModeType READ
public static final LockModeType WRITE
public static final LockModeType OPTIMISTIC
public static final LockModeType OPTIMISTIC_FORCE_INCREMENT
public static final LockModeType PESSIMISTIC_READ
public static final LockModeType PESSIMISTIC_WRITE
public static final LockModeType PESSIMISTIC_FORCE_INCREMENT
public static final LockModeType NONE
public static LockModeType[] values()
for (LockModeType c : LockModeType.values()) System.out.println(c);
public static LockModeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String value()
public static LockModeType fromValue(java.lang.String v)