Enum TransactionState

java.lang.Object
java.lang.Enum<TransactionState>
org.dizitart.no2.transaction.TransactionState
All Implemented Interfaces:
Serializable, Comparable<TransactionState>

public enum TransactionState extends Enum<TransactionState>
An enumeration representing the possible states of a transaction.
Since:
4.0
Author:
Anindya Chatterjee
  • Enum Constant Details

    • Active

      public static final TransactionState Active
      Transaction is active.
    • PartiallyCommitted

      public static final TransactionState PartiallyCommitted
      Transaction partially committed.
    • Committed

      public static final TransactionState Committed
      Transaction fully committed.
    • Closed

      public static final TransactionState Closed
      Transaction closed.
    • Failed

      public static final TransactionState Failed
      Transaction failed and rolled back.
    • Aborted

      public static final TransactionState Aborted
      Transaction aborted.
  • Method Details

    • values

      public static TransactionState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TransactionState valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null