org.eclipse.persistence.internal.jpa.transaction.EntityTransactionWrapper
| Modifier and Type | Field and Description |
|---|---|
| protected EntityTransactionImpl |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | checkForTransaction(boolean validateExistence)
Implements abstract org. |
| public EntityManagerImpl | |
| public EntityTransaction | getTransaction()
Implements org. |
| public boolean | |
| public void | |
| public void | setRollbackOnlyInternal()
Implements abstract org. |
| protected void |
| entityTransaction | back to summary |
|---|---|
| protected EntityTransactionImpl entityTransaction | |
| EntityTransactionWrapper | back to summary |
|---|---|
| public EntityTransactionWrapper(EntityManagerImpl entityManager) | |
| checkForTransaction | back to summary |
|---|---|
| public Object checkForTransaction(boolean validateExistence) Implements abstract org. 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.
| |
| getEntityManager | back to summary |
|---|---|
| public EntityManagerImpl getEntityManager() | |
| getTransaction | back to summary |
|---|---|
| public EntityTransaction getTransaction() Implements org. Lazy initialize the EntityTransaction. There can only be one EntityTransaction at a time.
| |
| isJoinedToTransaction | back to summary |
|---|---|
| public boolean isJoinedToTransaction(UnitOfWorkImpl uow) Implements abstract org.
| |
| registerIfRequired | back to summary |
|---|---|
| public void registerIfRequired(UnitOfWorkImpl uow) Implements abstract org.
| |
| setRollbackOnlyInternal | back to summary |
|---|---|
| public void setRollbackOnlyInternal() Implements abstract org. 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
| |
| throwCheckTransactionFailedException | back to summary |
|---|---|
| protected void throwCheckTransactionFailedException() | |