Enum Class TransactionStatus

java.lang.Object
java.lang.Enum<TransactionStatus>
org.osgi.service.transaction.control.TransactionStatus
All Implemented Interfaces:
Serializable, Comparable<TransactionStatus>, Constable

public enum TransactionStatus extends Enum<TransactionStatus>
The status of the transaction A transaction may not enter all of the states in this enum, however it will always traverse the enum in ascending order. In particular if the TransactionStatus is reported as X then it will never proceed into a state Y where X.compareTo(Y) >= 0;
  • Enum Constant Details

    • NO_TRANSACTION

      public static final TransactionStatus NO_TRANSACTION
      No transaction is currently active
    • ACTIVE

      public static final TransactionStatus ACTIVE
      A transaction is currently in progress
    • MARKED_ROLLBACK

      public static final TransactionStatus MARKED_ROLLBACK
      A transaction is currently in progress and has been marked for rollback
    • PREPARING

      public static final TransactionStatus PREPARING
      A two phase commit is occurring and the transaction is being prepared
    • PREPARED

      public static final TransactionStatus PREPARED
      A two phase commit is occurring and the transaction has been prepared
    • COMMITTING

      public static final TransactionStatus COMMITTING
      The transaction is in the process of being committed
    • COMMITTED

      public static final TransactionStatus COMMITTED
      The transaction has committed
    • ROLLING_BACK

      public static final TransactionStatus ROLLING_BACK
      The transaction is in the process of rolling back
    • ROLLED_BACK

      public static final TransactionStatus ROLLED_BACK
      The transaction has been rolled back
  • Method Details

    • values

      public static TransactionStatus[] 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 TransactionStatus 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