public enum TxnState extends Enum<TxnState>
For large transactions multiple ChangeSets can be sent in a batch fashion and in this case all but the last changeSet with have IN_PROGRESS state and the last changeSet will have the COMMITTED or ROLLBACK state.
Enum Constant and Description |
---|
COMMITTED
The Transaction was committed.
|
IN_PROGRESS
The Transaction is still in progress.
|
ROLLBACK
The Transaction was rolled back.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Return the short code for the transaction state.
|
static TxnState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TxnState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TxnState IN_PROGRESS
Used when the transaction is large/long and Ebean wants to send out the changeSets in batches and a changeSet is send before the transaction has completed.
public static TxnState[] values()
for (TxnState c : TxnState.values()) System.out.println(c);
public static TxnState 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 © 2019. All rights reserved.