Enum Constant and Description |
---|
FORCE |
NONE |
OPTIMISTIC |
OPTIMISTIC_FORCE_INCREMENT |
PESSIMISTIC_FORCE_INCREMENT |
PESSIMISTIC_READ |
PESSIMISTIC_WRITE |
READ |
UPGRADE |
UPGRADE_NOWAIT |
WRITE |
Modifier and Type | Method and Description |
---|---|
static LockMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockMode FORCE
public static final LockMode NONE
public static final LockMode OPTIMISTIC
public static final LockMode OPTIMISTIC_FORCE_INCREMENT
public static final LockMode PESSIMISTIC_FORCE_INCREMENT
public static final LockMode PESSIMISTIC_READ
public static final LockMode PESSIMISTIC_WRITE
public static final LockMode READ
public static final LockMode UPGRADE
public static final LockMode UPGRADE_NOWAIT
public static final LockMode WRITE
public static LockMode[] values()
for (LockMode c : LockMode.values()) System.out.println(c);
public static LockMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null