jodd.jtx
Enum JtxStatus

java.lang.Object
  extended by java.lang.Enum<JtxStatus>
      extended by jodd.jtx.JtxStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JtxStatus>

public enum JtxStatus
extends java.lang.Enum<JtxStatus>

Transaction statuses.


Enum Constant Summary
STATUS_ACTIVE
          A transaction is associated with the target object and it is in the active state.
STATUS_COMMITTED
          A transaction is associated with the target object and it has been committed.
STATUS_COMMITTING
          A transaction is associated with the target object and it is in the process of committing.
STATUS_MARKED_ROLLBACK
          A transaction is associated with the target object and it has been marked for rollback, perhaps as a result of a setRollbackOnly operation.
STATUS_NO_TRANSACTION
          No transaction is currently associated with the target object.
STATUS_ROLLEDBACK
          A transaction is associated with the target object and the outcome has been determined as rollback.
STATUS_ROLLING_BACK
          A transaction is associated with the target object and it is in the process of rolling back.
STATUS_UNKNOWN
          A transaction is associated with the target object but its status is unknown.
 
Method Summary
 java.lang.String toString()
           
 int value()
           
static JtxStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JtxStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STATUS_ACTIVE

public static final JtxStatus STATUS_ACTIVE
A transaction is associated with the target object and it is in the active state.


STATUS_MARKED_ROLLBACK

public static final JtxStatus STATUS_MARKED_ROLLBACK
A transaction is associated with the target object and it has been marked for rollback, perhaps as a result of a setRollbackOnly operation.


STATUS_COMMITTED

public static final JtxStatus STATUS_COMMITTED
A transaction is associated with the target object and it has been committed.


STATUS_ROLLEDBACK

public static final JtxStatus STATUS_ROLLEDBACK
A transaction is associated with the target object and the outcome has been determined as rollback.


STATUS_UNKNOWN

public static final JtxStatus STATUS_UNKNOWN
A transaction is associated with the target object but its status is unknown.


STATUS_NO_TRANSACTION

public static final JtxStatus STATUS_NO_TRANSACTION
No transaction is currently associated with the target object. The auto-commit mode or the transaction has been completed.


STATUS_COMMITTING

public static final JtxStatus STATUS_COMMITTING
A transaction is associated with the target object and it is in the process of committing.


STATUS_ROLLING_BACK

public static final JtxStatus STATUS_ROLLING_BACK
A transaction is associated with the target object and it is in the process of rolling back.

Method Detail

values

public static JtxStatus[] 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 (JtxStatus c : JtxStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JtxStatus 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 name
java.lang.NullPointerException - if the argument is null

value

public int value()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<JtxStatus>


Copyright ©2008 Jodd Team