Enum Class TransactionStatus
- All Implemented Interfaces:
Serializable
,Comparable<TransactionStatus>
,Constable
The status of the transaction A transaction may not enter all of the states
in this enum, however it will always traverse the enum in ascending order. In
particular if the TransactionStatus is reported as X then it will never
proceed into a state Y where X.compareTo(Y) >= 0;
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA transaction is currently in progressThe transaction has committedThe transaction is in the process of being committedA transaction is currently in progress and has been marked for rollbackNo transaction is currently activeA two phase commit is occurring and the transaction has been preparedA two phase commit is occurring and the transaction is being preparedThe transaction has been rolled backThe transaction is in the process of rolling back -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionStatus
Returns the enum constant of this class with the specified name.static TransactionStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_TRANSACTION
No transaction is currently active -
ACTIVE
A transaction is currently in progress -
MARKED_ROLLBACK
A transaction is currently in progress and has been marked for rollback -
PREPARING
A two phase commit is occurring and the transaction is being prepared -
PREPARED
A two phase commit is occurring and the transaction has been prepared -
COMMITTING
The transaction is in the process of being committed -
COMMITTED
The transaction has committed -
ROLLING_BACK
The transaction is in the process of rolling back -
ROLLED_BACK
The transaction has been rolled back
-
-
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
-