Enum Class Transaction.State
- All Implemented Interfaces:
Serializable
,Comparable<Transaction.State>
,Constable
- Enclosing interface:
Transaction
Enumeration describing the state of the transaction.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe transaction is not associated with any thread, and has been commited.The transaction is associated with a thread and in the process of being commited.The transaction has not been started yet.The transaction panicked and is unusable.The transaction is not associated with any thread, and has been rolled back.The transaction is associated with a thread and in the process of being rolled back.The transaction is associated with a thread and running. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isFinal()
static Transaction.State
Returns the enum constant of this class with the specified name.static Transaction.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_RUNNING
The transaction has not been started yet. -
RUNNING
The transaction is associated with a thread and running. -
COMMITTING
The transaction is associated with a thread and in the process of being commited. -
ROLLING_BACK
The transaction is associated with a thread and in the process of being rolled back. -
COMMITTED
The transaction is not associated with any thread, and has been commited. It cannot be resumed anymore. -
ROLLED_BACK
The transaction is not associated with any thread, and has been rolled back. It cannot be resumed anymore. -
PANICKED
The transaction panicked and is unusable.
-
-
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
-
isFinal
public boolean isFinal()
-