public class JTATransactionWrapper extends TransactionWrapperImpl
JTATransactionWrapper
,
oracle.toplink.essentials.internal.ejb.cmp3.transaction.jdk14.JTATransactionWrapper
Modifier and Type | Field and Description |
---|---|
protected AbstractTransactionController |
txnController |
entityManager, localUOW, txnKey
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.
|
RepeatableWriteUnitOfWork |
getTransactionalUnitOfWork(java.lang.Object transaction)
INTERNAL:
THis method is used to get the active UnitOfWork.
|
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
|
protected void |
throwCheckTransactionFailedException() |
protected void |
throwUserTransactionException() |
getLocalUnitOfWork, setLocalUnitOfWork
protected AbstractTransactionController txnController
public JTATransactionWrapper(EntityManagerImpl entityManager)
public java.lang.Object checkForTransaction(boolean validateExistence)
checkForTransaction
in class TransactionWrapperImpl
public void clear()
clear
in class TransactionWrapperImpl
public void setRollbackOnlyInternal()
setRollbackOnlyInternal
in class TransactionWrapperImpl
public RepeatableWriteUnitOfWork getTransactionalUnitOfWork(java.lang.Object transaction)
getTransactionalUnitOfWork
in class TransactionWrapperImpl
protected void throwUserTransactionException()
protected void throwCheckTransactionFailedException()
public void registerUnitOfWorkWithTxn(UnitOfWorkImpl uow)
registerUnitOfWorkWithTxn
in class TransactionWrapperImpl
public boolean shouldFlushBeforeQuery(UnitOfWorkImpl uow)
shouldFlushBeforeQuery
in class TransactionWrapperImpl