public static enum Transaction.TransactionState extends java.lang.Enum<Transaction.TransactionState>
Enum Constant and Description |
---|
AWAITING_COMMIT |
AWAITING_PREPARE |
AWAITING_ROLLBACK |
COMMITED |
LOCKS_STOLEN |
PREPARED |
ROLLEDBACK |
STARTED |
Modifier and Type | Method and Description |
---|---|
static Transaction.TransactionState |
getTransactionState(byte value)
Get TransactionState by byte value.
|
static Transaction.TransactionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Transaction.TransactionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transaction.TransactionState STARTED
public static final Transaction.TransactionState AWAITING_PREPARE
public static final Transaction.TransactionState PREPARED
public static final Transaction.TransactionState AWAITING_COMMIT
public static final Transaction.TransactionState COMMITED
public static final Transaction.TransactionState AWAITING_ROLLBACK
public static final Transaction.TransactionState ROLLEDBACK
public static final Transaction.TransactionState LOCKS_STOLEN
public static Transaction.TransactionState[] values()
for (Transaction.TransactionState c : Transaction.TransactionState.values()) System.out.println(c);
public static Transaction.TransactionState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Transaction.TransactionState getTransactionState(byte value)
value
- byte representation of TransactionState.Transaction.TransactionState
instance or null.java.lang.IllegalArgumentException
- if an invalid
value is provided.