|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<OptimisticLockingType> org.eclipse.persistence.annotations.OptimisticLockingType
public enum OptimisticLockingType
An enum that is used within the OptimisticLocking annotation.
org.eclipse.persistence.annotations.OptimisticLocking.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final OptimisticLockingType ALL_COLUMNS
public static final OptimisticLockingType CHANGED_COLUMNS
public static final OptimisticLockingType SELECTED_COLUMNS
public static final OptimisticLockingType VERSION_COLUMN
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is null
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |