|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Transaction.State> i3.dragos.core.services.transactions.Transaction.State
public static enum Transaction.State
Specifies the different state transactions can be in. It is used for both
user transactions and
DataSourceTransactions
.
Enum Constant Summary | |
---|---|
BEGUN
A transaction has begun and commands can be issued. |
|
COMMITTED
A transaction is committed to the database. |
|
CREATED
A user transaction has started, but has not yet been begun, meaning it is not associated with any database transactions yet. |
|
PRECOMMIT
A nested transaction is finished, but not all parent transactions have been committed yet, meaning the changes are not yet finally written to the database. |
|
PREPARED
A transaction has been prepared for commit, but is not yet committed as part of the two-phase commit protocol. |
|
ROLLBACK_ONLY
A transaction that once has entered this state is prevented from ever committing, and can only be aborted. |
|
ROLLED_BACK
A transaction was rolled back, meaning all changes were discarded. |
Method Summary | |
---|---|
static Transaction.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Transaction.State[] |
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, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Transaction.State CREATED
public static final Transaction.State BEGUN
TransactionManager.requestTransaction()
public static final Transaction.State PRECOMMIT
public static final Transaction.State PREPARED
DataSourceTransactions
.
public static final Transaction.State COMMITTED
TransactionManager
.
public static final Transaction.State ROLLBACK_ONLY
public static final Transaction.State ROLLED_BACK
TransactionManager
.
Method Detail |
---|
public static Transaction.State[] values()
for (Transaction.State c : Transaction.State.values()) System.out.println(c);
public static Transaction.State 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 null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |