Package com.jsgalactic.axiom.jta
Enum Class TransactionStatus
- All Implemented Interfaces:
Serializable,Comparable<TransactionStatus>,Constable
A transaction status expressed without a JTA type, so integrations can read it without depending
on the transaction API. Values are the statuses an Axiom transaction boundary can report; a
provider-specific state that has no equivalent here is reported as
UNKNOWN.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA transaction is associated with the request and can still be completed.The associated transaction completed with a commit.No transaction is associated with the request.A transaction is associated but has been marked for rollback.The associated transaction completed with a rollback.The provider reported a state this adapter does not model, or its status query failed. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionStatusReturns 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
-
ACTIVE
A transaction is associated with the request and can still be completed. -
MARKED_ROLLBACK
A transaction is associated but has been marked for rollback. -
COMMITTED
The associated transaction completed with a commit. -
ROLLED_BACK
The associated transaction completed with a rollback. -
INACTIVE
No transaction is associated with the request. -
UNKNOWN
The provider reported a state this adapter does not model, or its status query failed.
-
-
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
-