Enum Class Transaction.Status
- All Implemented Interfaces:
Serializable, Comparable<Transaction.Status>, Constable
- Enclosing class:
Transaction
The possible transaction statuses.
- Author:
- Rob Spoor
- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates the transaction is still active.Indicates the transaction has been closed.Indicates the transaction has been committed.Indicates the transaction has been rolled back. -
Method Summary
Modifier and TypeMethodDescriptionstatic Transaction.StatusReturns the enum constant of this class with the specified name.static Transaction.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
Indicates the transaction is still active. -
COMMITTED
Indicates the transaction has been committed. -
ROLLED_BACK
Indicates the transaction has been rolled back. -
CLOSED
Indicates the transaction has been closed.
-
-
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
-