org.objectweb.speedo.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.
 void assignDataAccess(java.lang.Object dataaccess)
          Attach an object which permits to access the data stored in a support, to the working set.
 java.lang.Object getDataAccess()
          Retrieves the data access object
 boolean isManagedEnv()
          Indicates if the transaction environnement is managed.
 void removeDataAccess(java.lang.Object dataaccess)
          Dettach the data access to the working set
 

Method Detail

active

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

assignDataAccess

public void assignDataAccess(java.lang.Object dataaccess)
Attach an object which permits to access the data stored in a support, to the working set.
Parameters:
dataaccess -  

getDataAccess

public java.lang.Object getDataAccess()
Retrieves the data access object

removeDataAccess

public void removeDataAccess(java.lang.Object dataaccess)
Dettach the data access to the working set
Parameters:
dataaccess -  

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.