public enum OptimisticLockType extends Enum<OptimisticLockType>
Enum Constant and Description |
---|
ALL
all columns are compared
|
DIRTY
dirty columns are compared
|
NONE
no optimistic locking
|
VERSION
use a column version
|
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
public 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-2013 Red Hat, Inc. All Rights Reserved.