|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionItf
Defines the transaction concept. It offers - demarcation methods (begin, commit rollback) - status checking - management of the connection to the underlying data support
Field Summary |
---|
Fields inherited from interface org.objectweb.perseus.persistence.api.TransactionalWorkingSet |
---|
CTX_ABORTED, CTX_ACTIVE_TRANSACTIONAL, CTX_COMMITTED, CTX_PREPARED, CTX_PREPARED_FAIL, CTX_PREPARED_OK |
Fields inherited from interface org.objectweb.perseus.persistence.api.WorkingSet |
---|
CTX_ACTIVE, CTX_CLOSED, READ_INTENTION, UNKNOWN_INTENTION, WRITE_INTENTION |
Method Summary | |
---|---|
void |
activate()
It activates the working set. |
void |
begin()
Starts the transaction. |
void |
commit()
Commits the transaction. |
POManagerItf |
getPOManager()
|
boolean |
getRollbackOnly()
|
boolean |
isActive()
|
boolean |
isManagedEnv()
Indicates if the transaction environnement is managed. |
void |
rollback()
Rolles back the transaction. |
java.lang.RuntimeException |
rollBackOnInternalError(java.lang.Exception e)
|
void |
setConnectionHolder(ConnectionHolder ch)
Assignes the connection holder. |
void |
setRollbackOnly()
Marks the current transaction as rollback only. |
Methods inherited from interface org.objectweb.perseus.persistence.api.TransactionalWorkingSet |
---|
getWSRollBackOnly, setWSRollBackOnly |
Methods inherited from interface org.objectweb.perseus.persistence.api.WorkingSet |
---|
bind, clear, entries, getConnectionHolder, getOid2Entry, getStatus, getUserObject, getWSObjectSharing, getWSRestoreValues, getWSRetainValues, lookup, oids, setStatus, setWSObjectSharing, setWSRestoreValues, setWSRetainValues, unbind |
Method Detail |
---|
boolean isActive()
void begin()
SpeedoRuntimeException
- If the transaction is already startedvoid commit()
SpeedoRuntimeException
- If the commit process failsvoid rollback()
SpeedoRuntimeException
- If the rollback process failsvoid activate() throws PersistenceException
PersistenceException
boolean isManagedEnv()
void setConnectionHolder(ConnectionHolder ch)
void setRollbackOnly()
boolean getRollbackOnly()
java.lang.RuntimeException rollBackOnInternalError(java.lang.Exception e)
POManagerItf getPOManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |