org.apache.cocoon.webapps.session.components
Class DefaultTransactionManager

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.webapps.session.components.DefaultTransactionManager
All Implemented Interfaces:
Contextualizable, LogEnabled, ThreadSafe, TransactionManager

public final class DefaultTransactionManager
extends AbstractLogEnabled
implements ThreadSafe, TransactionManager, Contextualizable

This is the default implementation for the transaction manager.

Version:
CVS $Id: DefaultTransactionManager.java 55383 2004-10-23 15:10:46Z cziegeler $
Author:
Carsten Ziegeler

Field Summary
protected  Context context
           
 
Fields inherited from interface org.apache.cocoon.webapps.session.TransactionManager
ROLE
 
Constructor Summary
DefaultTransactionManager()
           
 
Method Summary
 void contextualize(Context context)
           
 void resetTransactions(SessionContext context)
          Reset the transaction management state.
 void startReadingTransaction(SessionContext context)
          Start a reading transaction.
 void startWritingTransaction(SessionContext context)
          Start a writing transaction.
 void stopReadingTransaction(SessionContext context)
          Stop a reading transaction.
 void stopWritingTransaction(SessionContext context)
          Stop a writing transaction.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected Context context
Constructor Detail

DefaultTransactionManager

public DefaultTransactionManager()
Method Detail

resetTransactions

public void resetTransactions(SessionContext context)
Reset the transaction management state.

Specified by:
resetTransactions in interface TransactionManager

startReadingTransaction

public void startReadingTransaction(SessionContext context)
                             throws ProcessingException
Start a reading transaction. This call must always be matched with a stopReadingTransaction(). Otherwise the session context is blocked.

Specified by:
startReadingTransaction in interface TransactionManager
Throws:
ProcessingException

stopReadingTransaction

public void stopReadingTransaction(SessionContext context)
Stop a reading transaction. This call must always be done for each startReadingTransaction(). Otherwise the session context is blocked.

Specified by:
stopReadingTransaction in interface TransactionManager

startWritingTransaction

public void startWritingTransaction(SessionContext context)
                             throws ProcessingException
Start a writing transaction. This call must always be matched with a stopWritingTransaction(). Otherwise the session context is blocked.

Specified by:
startWritingTransaction in interface TransactionManager
Throws:
ProcessingException

stopWritingTransaction

public void stopWritingTransaction(SessionContext context)
Stop a writing transaction. This call must always be done for each startWritingTransaction(). Otherwise the session context is blocked.

Specified by:
stopWritingTransaction in interface TransactionManager

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.