intarsys runtime library

de.intarsys.tools.transaction
Interface ITransaction

All Known Implementing Classes:
RootTransaction, SubTransaction, Transaction

public interface ITransaction

A transactional process.


Method Summary
 void commit()
          Commit all changes that belong to this transaction.
 void commitResume()
          Commit all changes that belong to this transaction.
 ITransaction getParent()
          An optional parent for nested transactions.
 void rollback()
          Rollback all changes that belong to this transaction.
 void rollbackResume()
          Rollback all changes that belong to this transaction.
 

Method Detail

commit

void commit()
            throws TransactionException
Commit all changes that belong to this transaction. The transaction is no longer usable, all resources are released.

Throws:
TransactionException

commitResume

void commitResume()
                  throws TransactionException
Commit all changes that belong to this transaction. The transaction may be reused.

Throws:
TransactionException

getParent

ITransaction getParent()
An optional parent for nested transactions.

Returns:
The optional parent transaction.

rollback

void rollback()
              throws TransactionException
Rollback all changes that belong to this transaction. The transaction is no longer usable.

Throws:
TransactionException

rollbackResume

void rollbackResume()
                    throws TransactionException
Rollback all changes that belong to this transaction. The transaction may be reused.

Throws:
TransactionException

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.