public enum OptimisticLockingType extends java.lang.Enum<OptimisticLockingType>
OptimisticLocking
Enum Constant and Description |
---|
ALL_COLUMNS
Using this type of locking policy compares every field in the table
in the WHERE clause when doing an update or a delete.
|
CHANGED_COLUMNS
Using this type of locking policy compares only the changed fields
in the WHERE clause when doing an update.
|
SELECTED_COLUMNS
Using this type of locking compares selected fields in the WHERE
clause when doing an update or a delete.
|
VERSION_COLUMN
Using this type of locking policy compares a single version number
in the where clause when doing an update.
|
Modifier and Type | Method and Description |
---|---|
static OptimisticLockingType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OptimisticLockingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OptimisticLockingType ALL_COLUMNS
public static final OptimisticLockingType CHANGED_COLUMNS
public static final OptimisticLockingType SELECTED_COLUMNS
public static final OptimisticLockingType VERSION_COLUMN
public static OptimisticLockingType[] values()
for (OptimisticLockingType c : OptimisticLockingType.values()) System.out.println(c);
public static OptimisticLockingType 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