| java.lang.Object uk.org.ponder.transaction.NestedTransactionWrapper
NestedTransactionWrapper | public class NestedTransactionWrapper implements Transaction(Code) | | author: Antranig Basman (antranig@caret.cam.ac.uk) |
Method Summary | |
public static NestedTransactionWrapper | beginNestedTransaction(TransactionFactory mainfactory, TransactionFactory listenerfactory, TransactionThreadMap transmap) Given factories for the main target and listener "flat" transactions
that will be wrapped by the required NestedTransactionFactory,
inspect the current threadmap and return any existing NestedTransaction
which is in progress with its use count updated, or create a new one
using the factories if requred and store it.
Parameters: mainfactory - A factory producing the main logic flat transactionto be wrapped. Parameters: listenerfactory - A factory producing a "listener" transactionthat requires (synchronous) notification AFTER successful conclusion of transation events. | public void | commit() | public boolean | equals(Object other) | public int | hashCode() | public void | increment() | public void | rollback() | public String | toString() |
ROLLED_BACK | final static int ROLLED_BACK(Code) | | |
nestingdepth | int nestingdepth(Code) | | |
NestedTransactionWrapper | public NestedTransactionWrapper(Transaction target, Transaction listener, TransactionThreadMap transmap)(Code) | | Accepts two Transactions objects, the first being the "important" concrete
transaction object returned by the application, the second being a
subsidiary listener. Both will be notified of transaction events, the
listener receiving notification second and with lower priority in the case
of exceptions.
Parameters: target - Parameters: listener - |
beginNestedTransaction | public static NestedTransactionWrapper beginNestedTransaction(TransactionFactory mainfactory, TransactionFactory listenerfactory, TransactionThreadMap transmap)(Code) | | Given factories for the main target and listener "flat" transactions
that will be wrapped by the required NestedTransactionFactory,
inspect the current threadmap and return any existing NestedTransaction
which is in progress with its use count updated, or create a new one
using the factories if requred and store it.
Parameters: mainfactory - A factory producing the main logic flat transactionto be wrapped. Parameters: listenerfactory - A factory producing a "listener" transactionthat requires (synchronous) notification AFTER successful conclusion of transation events. This parameter may be null |
commit | public void commit()(Code) | | |
hashCode | public int hashCode()(Code) | | |
increment | public void increment()(Code) | | |
rollback | public void rollback()(Code) | | |
|
|