- All Implemented Interfaces:
Serializable
,Comparable<TxnState>
Transaction state when ChangeSets are sent to the ChangeSetListener.
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 Summary
Enum ConstantDescriptionThe Transaction was committed.The Transaction is still in progress.The Transaction was rolled back. -
Method Summary
-
Enum Constant Details
-
IN_PROGRESS
The Transaction is still 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.
-
COMMITTED
The Transaction was committed. -
ROLLBACK
The Transaction was rolled back.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
Return the short code for the transaction state.C - Committed, R - Rollback and I for In progress.
-