|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OpenJPAEntityTransaction
Extension of the JPA EntityTransaction
interface.
Method Summary | |
---|---|
void |
commitAndResume()
Issue a commit and then start a new transaction. |
Throwable |
getRollbackCause()
Returns the Throwable that caused the transaction to be marked for rollback. |
void |
rollbackAndResume()
Issue a rollback and then start a new transaction. |
void |
setRollbackOnly(Throwable cause)
Mark the current transaction for rollback with the specified cause of the rollback. |
Method Detail |
---|
void commitAndResume()
manager.commit (); manager.begin ();except that the entity manager's internal atomic lock is utilized, so this method can be safely executed from multiple threads.
EntityTransaction
,
EntityTransaction
void rollbackAndResume()
manager.rollback (); manager.begin ();except that the entity manager's internal atomic lock is utilized, so this method can be safely executed from multiple threads.
EntityTransaction
,
EntityTransaction
void setRollbackOnly(Throwable cause)
Throwable getRollbackCause()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |