public enum PessimisticLockStatus extends java.lang.Enum<PessimisticLockStatus>
Enum Constant and Description |
---|
FAILED
Lock failed because the entity is already locked by someone else.
|
LOCKED
Successfully locked.
|
NOT_SUPPORTED
Pessimistic locking is not configured for this entity.
|
Modifier and Type | Method and Description |
---|---|
static PessimisticLockStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PessimisticLockStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PessimisticLockStatus LOCKED
public static final PessimisticLockStatus FAILED
public static final PessimisticLockStatus NOT_SUPPORTED
public static PessimisticLockStatus[] values()
for (PessimisticLockStatus c : PessimisticLockStatus.values()) System.out.println(c);
public static PessimisticLockStatus 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 null