com.xenonsoft.bridgetown.aop.transaction
Interface ITransactionSession

All Known Implementing Classes:
JdbcTransactionSession, JtaTransactionSession

public interface ITransactionSession

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.

Version:
$Id: ITransactionSession.java,v 1.2 2004/11/03 04:35:22 peter_pilgrim Exp $
Author:
Peter Pilgrim, 21-Oct-2004

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

createTransactionContext

public ITransactionContext createTransactionContext(ITransactionConfig config)
                                             throws TransactionException
Creates or opens a new transaction context that is associated with the current thread.

Parameters:
config - the transaction configuration
Throws:
TransactionException - if there is problem (re-)opening or creating the transaction

closeTransactionContext

public void closeTransactionContext(ITransactionContext context)
Closes the transaction context

Parameters:
context - the transaction context
Throws:
TransactionException - if there is problem closing the transaction


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.