org.objectweb.speedo.workingset.api
Interface Transaction
- All Superinterfaces:
- Transaction, TransactionalWorkingSet, WorkingSet
- All Known Implementing Classes:
- SpeedoTransaction
- public interface Transaction
- extends Transaction, TransactionalWorkingSet
This interfaces defines the transaction concept in Speedo. It is based on a
working set represented by the inheritance of the TransactionalWorkingSet
interface, and the required javax.jdo.Transaction interface.
- Author:
- S.Chassande-Barrioz
Methods inherited from interface javax.jdo.Transaction |
begin, commit, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getPersistenceManager, getRestoreValues, getRetainValues, getRollbackOnly, getSynchronization, isActive, rollback, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setRestoreValues, setRetainValues, setRollbackOnly, setSynchronization |
Methods inherited from interface org.objectweb.perseus.persistence.api.WorkingSet |
bind, clear, entries, getConnectionHolder, getStatus, getUserObject, getWSRestoreValues, getWSRetainValues, lookup, oids, setStatus, setWSRestoreValues, setWSRetainValues, unbind |
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 transaction managed by speedo.
rollBackOnInternalError
public JDOFatalException rollBackOnInternalError(java.lang.Exception e)
setConnectionHolder
public void setConnectionHolder(ConnectionHolder ch)
- Assignes the connection holder. The connection holder is able to allocate
a connection to the underlying data support and to kept it until the
working set / transaction end.