net.sf.jso.transaction
Interface TransactionManager

All Known Implementing Classes:
JSOTransactionManager

public interface TransactionManager

Manager responsible for transaction processing.

See Also:
Transaction

Method Summary
 void addListener(TransactionListener listener)
          Starts sending transaction events to a listener.
 Transaction getTransaction()
          Gets the transaction associated to the current thread.
 TransactionInfo getTransactionInfo()
          Gets transaction processing information.
 void removeListener(TransactionListener listener)
          Stops sending transaction events to a listener.
 

Method Detail

getTransaction

public Transaction getTransaction()
                           throws StorageException
Gets the transaction associated to the current thread.

Returns:
If no transaction is currently associated to the current thread a new one is created and returned. Otherwise the associated transaction is returned.
Throws:
StorageException

getTransactionInfo

public TransactionInfo getTransactionInfo()
Gets transaction processing information.

Returns:
Information about transaction processing.

addListener

public void addListener(TransactionListener listener)
Starts sending transaction events to a listener.

Parameters:
listener - Listener to receive transaction events.

removeListener

public void removeListener(TransactionListener listener)
Stops sending transaction events to a listener.

Parameters:
listener - Listener to stop receiving transaction events.