org.skife.intercept.interceptors.tx
Interface Transaction


public interface Transaction

A basic interface used to wrap whatever type of transaction is actually in use.

Instances are typically obtained from Repository.currentTransaction().


Method Summary
 void begin()
          Start the transaction
 void checkpoint()
          Set a rollback checkpoint in the transaction
 void commit()
          Commit the transaction
 boolean isOpen()
          Query whether or not the transaction is open.
 void rollback()
          rollback/abort the transaction
 

Method Detail

begin

public void begin()
Start the transaction


commit

public void commit()
Commit the transaction


rollback

public void rollback()
rollback/abort the transaction


checkpoint

public void checkpoint()
Set a rollback checkpoint in the transaction


isOpen

public boolean isOpen()
Query whether or not the transaction is open.

Returns:
true if the transaction is open, false otherwise.