org.apache.cocoon.webapps.session
Interface TransactionManager

All Known Implementing Classes:
DefaultTransactionManager

Deprecated. This block is deprecated and will be removed in future versions.

public interface TransactionManager

Transaction management

Transactions are a series of get/set calls to a session context which must be seen as atomic (single modification). We distingish between reading and writing. Usually parallel reading is allowed but if one thread wants to write, no other can read or write.

Version:
CVS $Id: TransactionManager.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
static String ROLE
          Deprecated. Avalon role
 
Method Summary
 void resetTransactions(SessionContext context)
          Deprecated. Reset the transaction management state.
 void startReadingTransaction(SessionContext context)
          Deprecated. Start a reading transaction.
 void startWritingTransaction(SessionContext context)
          Deprecated. Start a writing transaction.
 void stopReadingTransaction(SessionContext context)
          Deprecated. Stop a reading transaction.
 void stopWritingTransaction(SessionContext context)
          Deprecated. Stop a writing transaction.
 

Field Detail

ROLE

static final String ROLE
Deprecated. 
Avalon role

Method Detail

resetTransactions

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


startReadingTransaction

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

Throws:
ProcessingException

stopReadingTransaction

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


startWritingTransaction

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

Throws:
ProcessingException

stopWritingTransaction

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



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.