Enum UnitOfWorkStatus
- java.lang.Object
-
- java.lang.Enum<UnitOfWorkStatus>
-
- dk.cloudcreate.essentials.components.foundation.transaction.UnitOfWorkStatus
-
- All Implemented Interfaces:
Serializable,Comparable<UnitOfWorkStatus>
public enum UnitOfWorkStatus extends Enum<UnitOfWorkStatus>
The status of aUnitOfWork
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CommittedTheUnitOfWorkhas been committedMarkedForRollbackOnlyTheUnitOfWorkmarked as it MUST be rolled back at the end of the transactionReadyTheUnitOfWorkhas just been created, but not yetStartedRolledBackTheUnitOfWorkhas been rolled backStartedTheUnitOfWorkhas been started (i.e.
-
Field Summary
Fields Modifier and Type Field Description booleanisCompleted
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCompleted()static UnitOfWorkStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static UnitOfWorkStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Ready
public static final UnitOfWorkStatus Ready
TheUnitOfWorkhas just been created, but not yetStarted
-
Started
public static final UnitOfWorkStatus Started
TheUnitOfWorkhas been started (i.e. any underlying transaction has begun)
-
Committed
public static final UnitOfWorkStatus Committed
TheUnitOfWorkhas been committed
-
RolledBack
public static final UnitOfWorkStatus RolledBack
TheUnitOfWorkhas been rolled back
-
MarkedForRollbackOnly
public static final UnitOfWorkStatus MarkedForRollbackOnly
TheUnitOfWorkmarked as it MUST be rolled back at the end of the transaction
-
-
Method Detail
-
values
public static UnitOfWorkStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UnitOfWorkStatus c : UnitOfWorkStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnitOfWorkStatus valueOf(String name)
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
-
isCompleted
public boolean isCompleted()
-
-