org.objectweb.speedo.workingset.api
Interface Transaction

All Known Implementing Classes:
SpeedoTransaction

public interface Transaction

This interfaces defines the transaction concept in Speedo. It is based on a working set represented by the inheritance of the PersistenceManager interface, and the required javax.jdo.Transaction interface.

Author:
S.Chassande-Barrioz

Method Summary
 void active()
          It activates the working set.
 boolean isManagedEnv()
          Indicates if the transaction environnement is managed.
 JDOFatalException rollBackOnInternalError(java.lang.Exception e)
           
 void setConnectionHolder(ConnectionHolder ch)
           
 

Method Detail

active

public void active()
            throws PersistenceException
It activates the working set. This is used to delimit the begining of the working set.

Throws:
PersistenceException

isManagedEnv

public boolean isManagedEnv()
Indicates if the transaction environnement is managed. If the 'false' value is returned then that means that a user transaction matches to a local transactioni managed by speedo.


rollBackOnInternalError

public JDOFatalException rollBackOnInternalError(java.lang.Exception e)

setConnectionHolder

public void setConnectionHolder(ConnectionHolder ch)