|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
It defines a persistence manager able to manage context transactional or not.
Method Summary | |
---|---|
void |
begin(TransactionalWorkingSet context)
converts a context to a transaction |
void |
commit(TransactionalWorkingSet context)
commits a transactional context. |
boolean |
prepare(TransactionalWorkingSet context)
Prepare the transactinal context. |
void |
rollback(TransactionalWorkingSet context)
rollbacks a transactional context. |
Methods inherited from interface org.objectweb.perseus.persistence.api.PersistenceManager |
---|
accessCompletion, close, createWS, createWS, evict, evictAll, export, export, flush, flush, getObjectById, readIntention, refresh, unbind, unexport, writeIntention |
Method Detail |
public void begin(TransactionalWorkingSet context) throws PersistenceException
context
- becomes transactional
PersistenceException
- if the context is already transactional.public boolean prepare(TransactionalWorkingSet context) throws PersistenceException
context
- the
PersistenceException
- if an error raised during the prepare
operation, or if the context is not a transactional context.public void commit(TransactionalWorkingSet context) throws PersistenceException
context
-
PersistenceException
- if an error raised during the commit
operation, or if the context is not a transactional context.public void rollback(TransactionalWorkingSet context) throws PersistenceException
context
-
PersistenceException
- if an error raised during the rollback
operation, or if the context is not a transactional context.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |