|
TrueUpdate Manager Specification 0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.java.trueupdate.manager.spec.tx.Transaction
net.java.trueupdate.manager.spec.tx.CompositeTransaction
public final class CompositeTransaction
A composite transaction.
| Constructor Summary | |
|---|---|
CompositeTransaction(Transaction... txs)
|
|
| Method Summary | |
|---|---|
void |
commit()
Commits the visible side effects of the body of this transaction. |
void |
perform()
Executes the body of this transaction. |
void |
prepare()
Sets up this transaction for execution. |
void |
rollback()
Reverts any visible side effects of the body of this transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeTransaction(Transaction... txs)
| Method Detail |
|---|
public void commit()
throws Exception
TransactionTransaction.perform()
must be durable.
If this method fails, the state of this transaction is undefined and may
be inconsistent.
If this method fails and this transaction is part of a composite
transaction, then the previous transactions get neither committed nor
rolled back and their state is undefined and may be inconsistent.
commit in class TransactionException
public void perform()
throws Exception
TransactionTransaction.rollback(), so it may leave some visible side effects.
If this method fails and this transaction is part of a composite
transaction, then the previous transactions get properly rolled back.
perform in class TransactionException
public void prepare()
throws Exception
TransactionTransaction.rollback(), so it must not leave any visible side effects.
If this method fails and this transaction is part of a composite
transaction, then the previous transactions get properly rolled back.
prepare in class TransactionException
public void rollback()
throws Exception
TransactionTransaction.perform().
If this method fails, the state of this transaction is undefined and may
be inconsistent.
If this method fails and this transaction is part of a composite
transaction, then the previous transactions get neither committed nor
rolled back and their state is undefined and may be inconsistent.
rollback in class TransactionException
|
TrueUpdate Manager Specification 0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||