public class EntityTransactionWrapper extends TransactionWrapperImpl
EntityTransactionWrapper
,
oracle.toplink.essentials.internal.ejb.cmp3.transaction.jdk14.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 |
---|---|
Object |
checkForTransaction(boolean validateExistence)
INTERNAL:
This method will be used to check for a transaction and throws exception if none exists.
|
EntityManagerImpl |
getEntityManager() |
RepeatableWriteUnitOfWork |
getTransactionalUnitOfWork(Object transaction)
INTERNAL:
THis method is used to get the active UnitOfWork.
|
void |
registerUnitOfWorkWithTxn(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.
|
boolean |
shouldFlushBeforeQuery(UnitOfWorkImpl uow)
This method will be called when a query is executed.
|
protected void |
throwCheckTransactionFailedException() |
clear, getLocalUnitOfWork, setLocalUnitOfWork
protected EntityTransactionImpl entityTransaction
public EntityTransactionWrapper(EntityManagerImpl entityManager)
public Object checkForTransaction(boolean validateExistence)
checkForTransaction
in class TransactionWrapperImpl
public RepeatableWriteUnitOfWork getTransactionalUnitOfWork(Object transaction)
getTransactionalUnitOfWork
in class TransactionWrapperImpl
public EntityManagerImpl getEntityManager()
public void registerUnitOfWorkWithTxn(UnitOfWorkImpl uow)
registerUnitOfWorkWithTxn
in class TransactionWrapperImpl
public void setRollbackOnlyInternal()
setRollbackOnlyInternal
in class TransactionWrapperImpl
public boolean shouldFlushBeforeQuery(UnitOfWorkImpl uow)
TransactionWrapperImpl
shouldFlushBeforeQuery
in class TransactionWrapperImpl
protected void throwCheckTransactionFailedException()
Copyright © 2023. All rights reserved.