public class EntityTransactionWrapper extends TransactionWrapperImpl implements TransactionWrapper
EntityTransactionWrapper| Modifier and Type | Field and Description |
|---|---|
protected EntityTransactionImpl |
entityTransaction |
entityManager, localUOW, txnKey| Constructor and Description |
|---|
EntityTransactionWrapper(EntityManagerImpl entityManager) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
checkForTransaction(boolean validateExistence)
INTERNAL:
This method will be used to check for a transaction and throws exception if none exists.
|
EntityManagerImpl |
getEntityManager() |
EntityTransaction |
getTransaction()
Lazy initialize the EntityTransaction.
|
boolean |
isJoinedToTransaction(UnitOfWorkImpl uow) |
void |
registerIfRequired(UnitOfWorkImpl uow) |
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() |
clear, getLocalUnitOfWork, setLocalUnitOfWorkprotected EntityTransactionImpl entityTransaction
public EntityTransactionWrapper(EntityManagerImpl entityManager)
public java.lang.Object checkForTransaction(boolean validateExistence)
checkForTransaction in class TransactionWrapperImplpublic EntityManagerImpl getEntityManager()
public EntityTransaction getTransaction()
getTransaction in interface TransactionWrapperpublic boolean isJoinedToTransaction(UnitOfWorkImpl uow)
isJoinedToTransaction in class TransactionWrapperImplpublic void setRollbackOnlyInternal()
setRollbackOnlyInternal in class TransactionWrapperImplprotected void throwCheckTransactionFailedException()
public void registerIfRequired(UnitOfWorkImpl uow)
registerIfRequired in class TransactionWrapperImpl