public class JTATransactionWrapper extends TransactionWrapperImpl implements TransactionWrapper
| Constructor and Description |
|---|
JTATransactionWrapper(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.
|
void |
clear()
INTERNAL:
Internal clear the underlying data structures that this transaction owns.
|
javax.persistence.EntityTransaction |
getTransaction()
An ENtityTransaction cannot be used at the same time as a JTA transaction
throw an exception
|
void |
registerUnitOfWorkWithTxn(UnitOfWorkImpl uow) |
void |
setRollbackOnlyInternal()
INTERNAL:
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)
We should only flush the entity manager before the query if the query is
joined to a transaction
|
void |
verifyRegisterUnitOfWorkWithTxn() |
getLocalUnitOfWork, setLocalUnitOfWorkpublic JTATransactionWrapper(EntityManagerImpl entityManager)
public java.lang.Object checkForTransaction(boolean validateExistence)
checkForTransaction in class TransactionWrapperImplpublic void clear()
clear in class TransactionWrapperImplpublic javax.persistence.EntityTransaction getTransaction()
getTransaction in interface TransactionWrapperpublic void setRollbackOnlyInternal()
setRollbackOnlyInternal in class TransactionWrapperImplpublic void registerUnitOfWorkWithTxn(UnitOfWorkImpl uow)
registerUnitOfWorkWithTxn in class TransactionWrapperImplpublic void verifyRegisterUnitOfWorkWithTxn()
verifyRegisterUnitOfWorkWithTxn in class TransactionWrapperImplpublic boolean shouldFlushBeforeQuery(UnitOfWorkImpl uow)
shouldFlushBeforeQuery in class TransactionWrapperImplEclipseLink 2.4.2, "build v20130514-5956486" API Reference