public class EntityTransactionWrapper extends EntityTransactionWrapper implements TransactionWrapper
EntityTransactionWrapperentityTransactionentityManager, localUOW, txnKey| Constructor and Description |
|---|
EntityTransactionWrapper(EntityManagerImpl entityManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.EntityTransaction |
getTransaction()
Lazy initialize the EntityTransaction.
|
void |
setRollbackOnlyInternal()
Mark the current transaction so that the only possible
outcome of the transaction is for the transaction to be
rolled back.
|
protected void |
throwCheckTransactionFailedException() |
checkForTransaction, getEntityManager, getTransactionalUnitOfWork, registerUnitOfWorkWithTxn, shouldFlushBeforeQueryclear, getLocalUnitOfWork, setLocalUnitOfWorkpublic EntityTransactionWrapper(EntityManagerImpl entityManager)
public javax.persistence.EntityTransaction getTransaction()
getTransaction in interface TransactionWrapperpublic void setRollbackOnlyInternal()
setRollbackOnlyInternal in class EntityTransactionWrapperprotected void throwCheckTransactionFailedException()
throwCheckTransactionFailedException in class EntityTransactionWrapper