Top Fields Constructors Methods
org.eclipse.persistence.internal.jpa.transaction

public abstract Class TransactionWrapperImpl

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.internal.jpa.transaction.EntityTransactionWrapper, org.eclipse.persistence.internal.jpa.transaction.JTATransactionWrapper
Imports
org.eclipse.persistence.internal.jpa.*, org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork, .UnitOfWorkImpl

Field Summary

Modifier and TypeField and Description
protected EntityManagerImpl
protected RepeatableWriteUnitOfWork
protected Object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract Object
checkForTransaction(boolean validateExistence)

INTERNAL: This method will be used to check for a transaction and throws exception if none exists.

public void
clear()

INTERNAL: Clears the transactional UnitOfWork

public UnitOfWorkImpl
public abstract boolean
public abstract void
public void
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entityManagerback to summary
protected EntityManagerImpl entityManager
localUOWback to summary
protected RepeatableWriteUnitOfWork localUOW
txnKeyback to summary
protected Object txnKey

Constructor Detail

TransactionWrapperImplback to summary
public TransactionWrapperImpl(EntityManagerImpl entityManager)

Method Detail

checkForTransactionback to summary
public abstract Object checkForTransaction(boolean validateExistence)

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.

clearback to summary
public void clear()

INTERNAL: Clears the transactional UnitOfWork

getLocalUnitOfWorkback to summary
public UnitOfWorkImpl getLocalUnitOfWork()
isJoinedToTransactionback to summary
public abstract boolean isJoinedToTransaction(UnitOfWorkImpl uow)
registerIfRequiredback to summary
public abstract void registerIfRequired(UnitOfWorkImpl uow)
setLocalUnitOfWorkback to summary
public void setLocalUnitOfWork(RepeatableWriteUnitOfWork uow)
setRollbackOnlyInternalback to summary
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