|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<NakedObjectTransaction.State>
org.nakedobjects.runtime.transaction.NakedObjectTransaction.State
public static enum NakedObjectTransaction.State
| Enum Constant Summary | |
|---|---|
ABORTED
Completed, having aborted. |
|
COMMITTED
Completed, having successfully committed. |
|
IN_PROGRESS
Started, still in progress. |
|
MUST_ABORT
Started, but has hit an exception. |
|
| Method Summary | |
|---|---|
boolean |
canAbort()
Whether it is valid to abort this
transaction. |
boolean |
canCommit()
Whether it is valid to commit this transaction. |
boolean |
canFlush()
Whether it is valid to flush this transaction. |
boolean |
isComplete()
Whether the transaction is complete (and
so a new one can be started). |
static NakedObjectTransaction.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static NakedObjectTransaction.State[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final NakedObjectTransaction.State IN_PROGRESS
May flush, commit
or abort.
public static final NakedObjectTransaction.State MUST_ABORT
May not NakedObjectTransaction#flush() or commit
(will throw an IllegalStateException), but can only abort.
Similar to setRollbackOnly in EJBs.
public static final NakedObjectTransaction.State COMMITTED
May not NakedObjectTransaction#flush() or abort or
commit (will throw IllegalStateException).
public static final NakedObjectTransaction.State ABORTED
May not NakedObjectTransaction#flush(), commit
or abort (will throw IllegalStateException).
| Method Detail |
|---|
public static NakedObjectTransaction.State[] values()
for (NakedObjectTransaction.State c : NakedObjectTransaction.State.values()) System.out.println(c);
public static NakedObjectTransaction.State valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic boolean canFlush()
flush this transaction.
public boolean canCommit()
commit this transaction.
public boolean canAbort()
abort this
transaction.
public boolean isComplete()
transaction is complete (and
so a new one can be started).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||