public enum OptimisticLockingResult extends Enum<OptimisticLockingResult>
Enum Constant and Description |
---|
IGNORE
Marks that that an
OptimisticLockingListener resulted
in successfully handling, or ignoring, an OptimisticLockingException . |
THROW
Marks that that an
OptimisticLockingListener resulted
in a failure when handling an OptimisticLockingException
and the exception should be re-thrown to the caller. |
Modifier and Type | Method and Description |
---|---|
static OptimisticLockingResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OptimisticLockingResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OptimisticLockingResult IGNORE
OptimisticLockingListener
resulted
in successfully handling, or ignoring, an OptimisticLockingException
.public static final OptimisticLockingResult THROW
OptimisticLockingListener
resulted
in a failure when handling an OptimisticLockingException
and the exception should be re-thrown to the caller.public static OptimisticLockingResult[] values()
for (OptimisticLockingResult c : OptimisticLockingResult.values()) System.out.println(c);
public static OptimisticLockingResult 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 © 2022. All rights reserved.