public class JTATransactionWrapper extends TransactionWrapperImpl implements TransactionWrapper
| 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.
|
EntityTransaction |
getTransaction()
An ENtityTransaction cannot be used at the same time as a JTA transaction
throw an exception
|
boolean |
isJoinedToTransaction(UnitOfWorkImpl uow) |
void |
registerIfRequired(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.
|
protected void |
throwCheckTransactionFailedException() |
protected void |
throwUserTransactionException() |
getLocalUnitOfWork, setLocalUnitOfWorkpublic JTATransactionWrapper(EntityManagerImpl entityManager)
public java.lang.Object checkForTransaction(boolean validateExistence)
checkForTransaction in class TransactionWrapperImplpublic void clear()
clear in class TransactionWrapperImplpublic EntityTransaction getTransaction()
getTransaction in interface TransactionWrapperpublic void setRollbackOnlyInternal()
setRollbackOnlyInternal in class TransactionWrapperImplprotected void throwUserTransactionException()
protected void throwCheckTransactionFailedException()
public boolean isJoinedToTransaction(UnitOfWorkImpl uow)
isJoinedToTransaction in class TransactionWrapperImplpublic void registerIfRequired(UnitOfWorkImpl uow)
registerIfRequired in class TransactionWrapperImpl