public enum RollbackConfigurationType extends Enum<RollbackConfigurationType> implements RollbackConfiguration
Enum Constant and Description |
---|
ANY_THROWABLE
Configuration that prescribes a rollback on any sort of exception or error.
|
NEVER
Configuration that never performs a rollback of the unit of work.
|
RUNTIME_EXCEPTIONS
Configuration that prescribes a rollback on runtime exceptions only.
|
UNCHECKED_EXCEPTIONS
Configuration that prescribes a rollback on any sort of unchecked exception, including errors.
|
Modifier and Type | Method and Description |
---|---|
static RollbackConfigurationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RollbackConfigurationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
rollBackOn
public static final RollbackConfigurationType NEVER
public static final RollbackConfigurationType ANY_THROWABLE
public static final RollbackConfigurationType UNCHECKED_EXCEPTIONS
public static final RollbackConfigurationType RUNTIME_EXCEPTIONS
public static RollbackConfigurationType[] values()
for (RollbackConfigurationType c : RollbackConfigurationType.values()) System.out.println(c);
public static RollbackConfigurationType 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 © 2010–2020. All rights reserved.