public enum OptimisticLockStyle extends Enum<OptimisticLockStyle>
Enum Constant and Description |
---|
ALL
all columns are compared
|
DIRTY
dirty columns are compared
|
NONE
no optimistic locking
|
VERSION
use a dedicated version column
|
Modifier and Type | Method and Description |
---|---|
static OptimisticLockStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OptimisticLockStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OptimisticLockStyle NONE
public static final OptimisticLockStyle VERSION
public static final OptimisticLockStyle DIRTY
public static final OptimisticLockStyle ALL
public static OptimisticLockStyle[] values()
for (OptimisticLockStyle c : OptimisticLockStyle.values()) System.out.println(c);
public static OptimisticLockStyle 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 © 2018 JBoss by Red Hat. All rights reserved.