|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is an interface for a transaction session session. The design follows a loosely idiom for various implementations of transactions in contemporary peristance systems. Usually a transaction context is created or retrieved from a session session, if any. The transaction context is the object that knows how to begin / commit / or rollback a transaction. At the end of the operations the transaction context may or may not be handed back to the session session for closure. Some system will already have closed any connections during the commit or rollback operations.
| Method Summary | |
void |
closeTransactionContext(ITransactionContext context)
Closes the transaction context |
ITransactionContext |
createTransactionContext(ITransactionConfig config)
Creates or opens a new transaction context that is associated with the current thread. |
| Method Detail |
public ITransactionContext createTransactionContext(ITransactionConfig config)
throws TransactionException
config - the transaction configuration
TransactionException - if there is problem (re-)opening or creating the transactionpublic void closeTransactionContext(ITransactionContext context)
context - the transaction context
TransactionException - if there is problem closing the transaction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||