Package com.jsgalactic.axiom.jta
Enum Class TransactionFailure
- All Implemented Interfaces:
Serializable,Comparable<TransactionFailure>,Constable
A transaction-boundary operation that failed, used to choose a client-visible problem status.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSetting the transaction timeout or beginning the transaction failed.Committing the transaction failed.No transaction was active where the boundary needed one.Marking the active transaction rollback-only failed.Resuming the previously associated transaction failed.Rolling the transaction back failed.Suspending a transaction already associated with the thread failed.The configured timeout could not be applied by the provider. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionFailureReturns the enum constant of this class with the specified name.static TransactionFailure[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUSPEND
Suspending a transaction already associated with the thread failed. -
BEGIN
Setting the transaction timeout or beginning the transaction failed. -
COMMIT
Committing the transaction failed. -
ROLLBACK
Rolling the transaction back failed. -
RESUME
Resuming the previously associated transaction failed. -
MARK
Marking the active transaction rollback-only failed. -
INACTIVE
No transaction was active where the boundary needed one. -
TIMEOUT
The configured timeout could not be applied by the provider.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-