public interface OpenJPAEntityTransaction extends EntityTransaction
EntityTransaction
interface.Modifier and Type | Method and Description |
---|---|
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.
|
begin, commit, getRollbackOnly, isActive, rollback, setRollbackOnly
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.
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.
void setRollbackOnly(Throwable cause)
Throwable getRollbackCause()
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.