public interface OpenJPAEntityTransaction
extends javax.persistence.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.
|
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.commit()
,
EntityTransaction.begin()
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.rollback()
,
EntityTransaction.begin()
void setRollbackOnly(Throwable cause)
Throwable getRollbackCause()
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.