Package org.rocksdb
Enum Transaction.TransactionState
- java.lang.Object
-
- java.lang.Enum<Transaction.TransactionState>
-
- org.rocksdb.Transaction.TransactionState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Transaction.TransactionState>
- Enclosing class:
- Transaction
public static enum Transaction.TransactionState extends java.lang.Enum<Transaction.TransactionState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AWAITING_COMMITAWAITING_PREPAREAWAITING_ROLLBACKCOMMITTEDLOCKS_STOLENPREPAREDROLLEDBACKSTARTED
-
Field Summary
Fields Modifier and Type Field Description static Transaction.TransactionStateCOMMITED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Transaction.TransactionStategetTransactionState(byte value)Get TransactionState by byte value.static Transaction.TransactionStatevalueOf(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.
-
-
-
Enum Constant Detail
-
STARTED
public static final Transaction.TransactionState STARTED
-
AWAITING_PREPARE
public static final Transaction.TransactionState AWAITING_PREPARE
-
PREPARED
public static final Transaction.TransactionState PREPARED
-
AWAITING_COMMIT
public static final Transaction.TransactionState AWAITING_COMMIT
-
COMMITTED
public static final Transaction.TransactionState COMMITTED
-
AWAITING_ROLLBACK
public static final Transaction.TransactionState AWAITING_ROLLBACK
-
ROLLEDBACK
public static final Transaction.TransactionState ROLLEDBACK
-
LOCKS_STOLEN
public static final Transaction.TransactionState LOCKS_STOLEN
-
-
Field Detail
-
COMMITED
public static final Transaction.TransactionState COMMITED
-
-
Method Detail
-
values
public static Transaction.TransactionState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Transaction.TransactionState c : Transaction.TransactionState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Transaction.TransactionState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getTransactionState
public static Transaction.TransactionState getTransactionState(byte value)
Get TransactionState by byte value.- Parameters:
value- byte representation of TransactionState.- Returns:
Transaction.TransactionStateinstance or null.- Throws:
java.lang.IllegalArgumentException- if an invalid value is provided.
-
-