intarsys runtime library

de.intarsys.tools.transaction
Interface ITransactionManager

All Known Implementing Classes:
CommonTransactionManager, ThreadLocalTransactionManager

public interface ITransactionManager

The public interface for client driven transaction management.


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 tx)
          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.
 

Method Detail

begin

void begin()
           throws TransactionException
Begin a new transaction in the current context.

Throws:
TransactionException

commit

void commit()
            throws TransactionException
Commit the currently active transaction.

Throws:
TransactionException

commitResume

void commitResume()
                  throws TransactionException
Commit and resume the currently active transaction.

Throws:
TransactionException

getTransaction

ITransaction getTransaction()
The currently active transaction.


resume

void resume(ITransaction tx)
            throws TransactionException
Resume a suspended transaction.

Throws:
TransactionException

rollback

void rollback()
              throws TransactionException
Rollback the currently active transaction.

Throws:
TransactionException

rollbackResume

void rollbackResume()
                    throws TransactionException
Rollback and resume the currently active transaction.

Throws:
TransactionException

suspend

ITransaction suspend()
                     throws TransactionException
Suspend the currently active transaction.

Throws:
TransactionException

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.