| Modifier and Type | Field and Description |
|---|---|
| protected EntityManagerImpl | |
| protected RepeatableWriteUnitOfWork | |
| protected Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method 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 | |
| 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. |
| entityManager | back to summary |
|---|---|
| protected EntityManagerImpl entityManager | |
| localUOW | back to summary |
|---|---|
| protected RepeatableWriteUnitOfWork localUOW | |
| txnKey | back to summary |
|---|---|
| protected Object txnKey | |
| TransactionWrapperImpl | back to summary |
|---|---|
| public TransactionWrapperImpl(EntityManagerImpl entityManager) | |
| checkForTransaction | back 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. | |
| clear | back to summary |
|---|---|
| public void clear() INTERNAL: Clears the transactional UnitOfWork | |
| getLocalUnitOfWork | back to summary |
|---|---|
| public UnitOfWorkImpl getLocalUnitOfWork() | |
| isJoinedToTransaction | back to summary |
|---|---|
| public abstract boolean isJoinedToTransaction(UnitOfWorkImpl uow) | |
| registerIfRequired | back to summary |
|---|---|
| public abstract void registerIfRequired(UnitOfWorkImpl uow) | |
| setLocalUnitOfWork | back to summary |
|---|---|
| public void setLocalUnitOfWork(RepeatableWriteUnitOfWork uow) | |
| setRollbackOnlyInternal | back 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 | |