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 |
|---|---|
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.
|
jakarta.persistence.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, setLocalUnitOfWorkprotected AbstractTransactionController txnController
public JTATransactionWrapper(EntityManagerImpl entityManager)
public Object checkForTransaction(boolean validateExistence)
checkForTransaction in class TransactionWrapperImplpublic void clear()
clear in class TransactionWrapperImplpublic jakarta.persistence.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 TransactionWrapperImplCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.