Enum Class TransactionFailure

java.lang.Object
java.lang.Enum<TransactionFailure>
com.jsgalactic.axiom.jta.TransactionFailure
All Implemented Interfaces:
Serializable, Comparable<TransactionFailure>, Constable

public enum TransactionFailure extends Enum<TransactionFailure>
A transaction-boundary operation that failed, used to choose a client-visible problem status.
  • Enum Constant Details

    • SUSPEND

      public static final TransactionFailure SUSPEND
      Suspending a transaction already associated with the thread failed.
    • BEGIN

      public static final TransactionFailure BEGIN
      Setting the transaction timeout or beginning the transaction failed.
    • COMMIT

      public static final TransactionFailure COMMIT
      Committing the transaction failed.
    • ROLLBACK

      public static final TransactionFailure ROLLBACK
      Rolling the transaction back failed.
    • RESUME

      public static final TransactionFailure RESUME
      Resuming the previously associated transaction failed.
    • MARK

      public static final TransactionFailure MARK
      Marking the active transaction rollback-only failed.
    • INACTIVE

      public static final TransactionFailure INACTIVE
      No transaction was active where the boundary needed one.
    • TIMEOUT

      public static final TransactionFailure TIMEOUT
      The configured timeout could not be applied by the provider.
  • Method Details

    • values

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