|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JtxStatus>
jodd.jtx.JtxStatus
public 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 |
---|
public static final JtxStatus STATUS_ACTIVE
public static final JtxStatus STATUS_MARKED_ROLLBACK
setRollbackOnly
operation.
public static final JtxStatus STATUS_COMMITTED
public static final JtxStatus STATUS_ROLLEDBACK
public static final JtxStatus STATUS_UNKNOWN
public static final JtxStatus STATUS_NO_TRANSACTION
public static final JtxStatus STATUS_COMMITTING
public static final JtxStatus STATUS_ROLLING_BACK
Method Detail |
---|
public static JtxStatus[] values()
for (JtxStatus c : JtxStatus.values()) System.out.println(c);
public static JtxStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int value()
public java.lang.String toString()
toString
in class java.lang.Enum<JtxStatus>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |