Snapper 1.0 API

org.enhydra.snapper.api
Interface SnapperTransaction


public interface SnapperTransaction

Since Snapper tends to be a transaction oriented, this is the interface that the kernel uses to signal operations on the transaction.

Author:
Sasa Bojanic, Vladimir Puskas, Igor Smirnov

Method Summary
 void commit()
          Method commit is invoked when something has to be commited into database.
 void release()
          Method release MUST be called for each transaction.
 void rollback()
          Method rollback is called when commit method fails (throws an exception).
 

Method Detail

commit

public void commit()
            throws TransactionException
Method commit is invoked when something has to be commited into database.

Throws:
TransactionException - thrown if anything goes wrong.

rollback

public void rollback()
              throws TransactionException
Method rollback is called when commit method fails (throws an exception).

Throws:
TransactionException - thrown if anything goes wrong.

release

public void release()
             throws TransactionException
Method release MUST be called for each transaction.

Throws:
TransactionException - thrown if anything goes wrong.

Snapper 1.0 API