Package org.apache.openjpa.persistence
Interface OpenJPAEntityTransaction
- 
- All Superinterfaces:
 jakarta.persistence.EntityTransaction
- All Known Implementing Classes:
 EntityManagerImpl
public interface OpenJPAEntityTransaction extends jakarta.persistence.EntityTransactionExtension of the JPAEntityTransactioninterface.- Since:
 - 1.0.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcommitAndResume()Issue a commit and then start a new transaction.ThrowablegetRollbackCause()Returns the Throwable that caused the transaction to be marked for rollback.voidrollbackAndResume()Issue a rollback and then start a new transaction.voidsetRollbackOnly(Throwable cause)Mark the current transaction for rollback with the specified cause of the rollback. 
 - 
 
- 
- 
Method Detail
- 
commitAndResume
void commitAndResume()
Issue a commit and then start a new transaction. This is identical to: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.- See Also:
 EntityTransaction.commit(),EntityTransaction.begin()
 
- 
rollbackAndResume
void rollbackAndResume()
Issue a rollback and then start a new transaction. This is identical to: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.- See Also:
 EntityTransaction.rollback(),EntityTransaction.begin()
 
- 
setRollbackOnly
void setRollbackOnly(Throwable cause)
Mark the current transaction for rollback with the specified cause of the rollback.- Since:
 - 0.9.7
 
 
- 
getRollbackCause
Throwable getRollbackCause()
Returns the Throwable that caused the transaction to be marked for rollback.- Returns:
 - the Throwable, or null if none was given
 - Since:
 - 0.9.7
 
 
 - 
 
 -