public class EntityTransactionWrapper extends EntityTransactionWrapper implements TransactionWrapper
EntityTransactionWrapper
entityTransaction
entityManager, localUOW, txnKey
Constructor and Description |
---|
EntityTransactionWrapper(EntityManagerImpl entityManager) |
Modifier and Type | Method and Description |
---|---|
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, shouldFlushBeforeQuery
clear, getLocalUnitOfWork, setLocalUnitOfWork
public EntityTransactionWrapper(EntityManagerImpl entityManager)
public EntityTransaction getTransaction()
getTransaction
in interface TransactionWrapper
public void setRollbackOnlyInternal()
setRollbackOnlyInternal
in class EntityTransactionWrapper
protected void throwCheckTransactionFailedException()
throwCheckTransactionFailedException
in class EntityTransactionWrapper
Copyright © 2023. All rights reserved.