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
|
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.
|
getLocalUnitOfWork, setLocalUnitOfWork
public JTATransactionWrapper(EntityManagerImpl entityManager)
public java.lang.Object checkForTransaction(boolean validateExistence)
checkForTransaction
in class TransactionWrapperImpl
public void clear()
clear
in class TransactionWrapperImpl
public javax.persistence.EntityTransaction getTransaction()
getTransaction
in interface TransactionWrapper
public void setRollbackOnlyInternal()
setRollbackOnlyInternal
in class TransactionWrapperImpl
public boolean isJoinedToTransaction(UnitOfWorkImpl uow)
isJoinedToTransaction
in class TransactionWrapperImpl
public void registerIfRequired(UnitOfWorkImpl uow)
registerIfRequired
in class TransactionWrapperImpl
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference