public class EntityTransactionWrapper extends TransactionWrapperImpl implements TransactionWrapper
EntityTransactionWrapper| 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() |
javax.persistence.EntityTransaction |
getTransaction()
Lazy initialize the EntityTransaction.
|
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.
|
void |
verifyRegisterUnitOfWorkWithTxn() |
clear, getLocalUnitOfWork, setLocalUnitOfWorkpublic EntityTransactionWrapper(EntityManagerImpl entityManager)
public java.lang.Object checkForTransaction(boolean validateExistence)
checkForTransaction in class TransactionWrapperImplpublic EntityManagerImpl getEntityManager()
public javax.persistence.EntityTransaction getTransaction()
getTransaction in interface TransactionWrapperpublic void registerUnitOfWorkWithTxn(UnitOfWorkImpl uow)
registerUnitOfWorkWithTxn in class TransactionWrapperImplpublic void verifyRegisterUnitOfWorkWithTxn()
verifyRegisterUnitOfWorkWithTxn in class TransactionWrapperImplpublic void setRollbackOnlyInternal()
setRollbackOnlyInternal in class TransactionWrapperImplpublic boolean shouldFlushBeforeQuery(UnitOfWorkImpl uow)
TransactionWrapperImplshouldFlushBeforeQuery in class TransactionWrapperImplEclipseLink 2.4.2, "build v20130514-5956486" API Reference