public static enum Transaction.State extends Enum<Transaction.State>
| Enum Constant and Description |
|---|
COMMITTED
Indicates a transaction that has successfully committed.
|
COMMITTING
Indicates a transaction that is about to be committed.
|
PREPARED
Indicates a transaction that is successfully prepared i.e.
|
PREPARING
Indicates a new transaction that is about to be prepared.
|
ROLLEDBACK
Indicates a transaction that has been rolled back and all locks are released.
|
ROLLINGBACK
Indicates a transaction that is about to be rolled back.
|
| Modifier and Type | Method and Description |
|---|---|
static Transaction.State |
valueOf(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.
|
public static final Transaction.State PREPARING
public static final Transaction.State PREPARED
public static final Transaction.State COMMITTING
public static final Transaction.State COMMITTED
public static final Transaction.State ROLLINGBACK
public static final Transaction.State ROLLEDBACK
public static Transaction.State[] values()
for (Transaction.State c : Transaction.State.values()) System.out.println(c);
public static Transaction.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015. All rights reserved.