Enum Class Transaction.State

java.lang.Object
java.lang.Enum<Transaction.State>
ch.tocco.nice2.persist.core.api.tx.Transaction.State
All Implemented Interfaces:
Serializable, Comparable<Transaction.State>, Constable
Enclosing interface:
Transaction

public static enum Transaction.State extends Enum<Transaction.State>
Enumeration describing the state of the transaction.
  • Enum Constant Details

    • NOT_RUNNING

      public static final Transaction.State NOT_RUNNING
      The transaction has not been started yet.
    • RUNNING

      public static final Transaction.State RUNNING
      The transaction is associated with a thread and running.
    • COMMITTING

      public static final Transaction.State COMMITTING
      The transaction is associated with a thread and in the process of being commited.
    • ROLLING_BACK

      public static final Transaction.State ROLLING_BACK
      The transaction is associated with a thread and in the process of being rolled back.
    • COMMITTED

      public static final Transaction.State COMMITTED
      The transaction is not associated with any thread, and has been commited. It cannot be resumed anymore.
    • ROLLED_BACK

      public static final Transaction.State ROLLED_BACK
      The transaction is not associated with any thread, and has been rolled back. It cannot be resumed anymore.
    • PANICKED

      public static final Transaction.State PANICKED
      The transaction panicked and is unusable.
  • Method Details

    • values

      public static Transaction.State[] 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

      public static Transaction.State valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isFinal

      public boolean isFinal()