public static enum Repository.UnitOfWork.State extends Enum<Repository.UnitOfWork.State>
Enum Constant and Description |
---|
COMMITTED
The transaction has been committed.
|
ERROR
There was an error running the transaction.
|
NOT_STARTED
The transaction has not been run (neither commit or rollback has been called).
|
ROLLED_BACK
The transaction has been rolled back.
|
RUNNING
The transaction is currently being committed or rolled back.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFinal() |
static Repository.UnitOfWork.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Repository.UnitOfWork.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Repository.UnitOfWork.State COMMITTED
public static final Repository.UnitOfWork.State ERROR
public static final Repository.UnitOfWork.State NOT_STARTED
public static final Repository.UnitOfWork.State ROLLED_BACK
public static final Repository.UnitOfWork.State RUNNING
public static Repository.UnitOfWork.State[] values()
for (Repository.UnitOfWork.State c : Repository.UnitOfWork.State.values()) System.out.println(c);
public static Repository.UnitOfWork.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 nullpublic boolean isFinal()
true
if this state is the final, not intermediate, stateCopyright © 2013–2019. All rights reserved.