public static enum Criteria.LockType extends Enum<Criteria.LockType>
Enum Constant and Description |
---|
NONE |
OPTIMISTIC |
OPTIMISTIC_FORCE_INCREMENT |
PESSIMISTIC_FORCE_INCREMENT |
PESSIMISTIC_READ |
PESSIMISTIC_WRITE |
READ |
UPGRADE_NOWAIT |
WRITE |
Modifier and Type | Method and Description |
---|---|
static Criteria.LockType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Criteria.LockType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Criteria.LockType NONE
public static final Criteria.LockType READ
public static final Criteria.LockType UPGRADE_NOWAIT
public static final Criteria.LockType WRITE
public static final Criteria.LockType OPTIMISTIC
public static final Criteria.LockType OPTIMISTIC_FORCE_INCREMENT
public static final Criteria.LockType PESSIMISTIC_READ
public static final Criteria.LockType PESSIMISTIC_WRITE
public static final Criteria.LockType PESSIMISTIC_FORCE_INCREMENT
public static Criteria.LockType[] values()
for (Criteria.LockType c : Criteria.LockType.values()) System.out.println(c);
public static Criteria.LockType 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 nullCopyright © 2018. All rights reserved.