intarsys runtime library

de.intarsys.tools.transaction
Class CommonTransactionManager

java.lang.Object
  extended by de.intarsys.tools.transaction.CommonTransactionManager
All Implemented Interfaces:
ITransactionManager
Direct Known Subclasses:
ThreadLocalTransactionManager

public abstract class CommonTransactionManager
extends Object
implements ITransactionManager

A common superclass for implementing the ITransactionManager.


Constructor Summary
CommonTransactionManager()
           
 
Method Summary
 void begin()
          Begin a new transaction in the current context.
 void commit()
          Commit the currently active transaction.
 void commitResume()
          Commit and resume the currently active transaction.
 ITransaction getTransaction()
          The currently active transaction.
 void resume(ITransaction transaction)
          Resume a suspended transaction.
 void rollback()
          Rollback the currently active transaction.
 void rollbackResume()
          Rollback and resume the currently active transaction.
 ITransaction suspend()
          Suspend the currently active transaction.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonTransactionManager

public CommonTransactionManager()
Method Detail

begin

public void begin()
Description copied from interface: ITransactionManager
Begin a new transaction in the current context.

Specified by:
begin in interface ITransactionManager

commit

public void commit()
            throws TransactionException
Description copied from interface: ITransactionManager
Commit the currently active transaction.

Specified by:
commit in interface ITransactionManager
Throws:
TransactionException

commitResume

public void commitResume()
                  throws TransactionException
Description copied from interface: ITransactionManager
Commit and resume the currently active transaction.

Specified by:
commitResume in interface ITransactionManager
Throws:
TransactionException

getTransaction

public ITransaction getTransaction()
Description copied from interface: ITransactionManager
The currently active transaction.

Specified by:
getTransaction in interface ITransactionManager

resume

public void resume(ITransaction transaction)
Description copied from interface: ITransactionManager
Resume a suspended transaction.

Specified by:
resume in interface ITransactionManager

rollback

public void rollback()
              throws TransactionException
Description copied from interface: ITransactionManager
Rollback the currently active transaction.

Specified by:
rollback in interface ITransactionManager
Throws:
TransactionException

rollbackResume

public void rollbackResume()
                    throws TransactionException
Description copied from interface: ITransactionManager
Rollback and resume the currently active transaction.

Specified by:
rollbackResume in interface ITransactionManager
Throws:
TransactionException

suspend

public ITransaction suspend()
Description copied from interface: ITransactionManager
Suspend the currently active transaction.

Specified by:
suspend in interface ITransactionManager

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.