Module org.eclipse.persistence.jpa
Class TransactionWrapperImpl
java.lang.Object
org.eclipse.persistence.internal.jpa.transaction.TransactionWrapperImpl
- Direct Known Subclasses:
EntityTransactionWrapper
,JTATransactionWrapper
-
Field Summary
Modifier and TypeFieldDescriptionprotected EntityManagerImpl
protected RepeatableWriteUnitOfWork
protected Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Object
checkForTransaction
(boolean validateExistence) INTERNAL: This method will be used to check for a transaction and throws exception if none exists.void
clear()
INTERNAL: Clears the transactional UnitOfWorkabstract boolean
abstract void
void
abstract void
Mark the current transaction so that the only possible outcome of the transaction is for the transaction to be rolled back.
-
Field Details
-
entityManager
-
localUOW
-
txnKey
-
-
Constructor Details
-
TransactionWrapperImpl
-
-
Method Details
-
checkForTransaction
INTERNAL: This method will be used to check for a transaction and throws exception if none exists. If this method returns without exception then a transaction exists. This method must be called before accessing the localUOW. -
clear
public void clear()INTERNAL: Clears the transactional UnitOfWork -
registerIfRequired
-
isJoinedToTransaction
-
getLocalUnitOfWork
-
setLocalUnitOfWork
-
setRollbackOnlyInternal
public abstract void setRollbackOnlyInternal()Mark the current transaction so that the only possible outcome of the transaction is for the transaction to be rolled back. This is an internal method and if the txn is not active will do nothing
-