Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public java.lang.String toString()
toString
in class java.lang.Enum<JtxStatus>
Copyright © 2003-present Jodd Team