public enum OptimisticLockType extends Enum<OptimisticLockType>
| Enum Constant and Description | 
|---|
ALL
Perform optimistic locking based on *all* fields as part of an expanded WHERE clause restriction for the
 UPDATE/DELETE SQL statement. 
 | 
DIRTY
Perform optimistic locking based on *dirty* fields as part of an expanded WHERE clause restriction for the
 UPDATE/DELETE SQL statement. 
 | 
NONE
Perform no optimistic locking. 
 | 
VERSION
Perform optimistic locking using a dedicated version column. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static OptimisticLockType | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static OptimisticLockType[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final OptimisticLockType NONE
public static final OptimisticLockType VERSION
Versionpublic static final OptimisticLockType DIRTY
public static final OptimisticLockType ALL
public static OptimisticLockType[] values()
for (OptimisticLockType c : OptimisticLockType.values()) System.out.println(c);
public static OptimisticLockType 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 © 2001-2015 Red Hat, Inc. All Rights Reserved.