| Modifier and Type | Field and Description |
|---|---|
| private final JpaCompliance | |
| private static final Logger | |
| private final AbstractSharedSessionContract | |
| private final TransactionCoordinator | |
| private TransactionCoordinator. |
| Access | Constructor and Description |
|---|---|
| public | TransactionImpl(TransactionCoordinator transactionCoordinator, AbstractSharedSessionContract session)
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| public void | |
| public void | commit()
Implements javax. |
| public boolean | getRollbackOnly()
Implements javax. |
| public TransactionStatus | getStatus()
Implements org. |
| public int | getTimeout()
Implements org. |
| public TransactionCoordinator. | |
| public boolean | isActive()
Implements javax. |
| public boolean | isActive(boolean
whether to consider isMarkedForRollbackConsideredActive)TransactionStatus#MARKED_ROLLBACK as active.Implements org. |
| public void | markRollbackOnly()
Overrides default org. |
| public void | registerSynchronization(Synchronization
The Synchronization callback to register. synchronization)Implements org. |
| public void | rollback()
Implements javax. |
| public void | setRollbackOnly()
Implements javax. |
| public void | setTimeout(int
The number of seconds before a timeout. seconds)Implements org. begin on this instance.
|
| jpaCompliance | back to summary |
|---|---|
| private final JpaCompliance jpaCompliance | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| session | back to summary |
|---|---|
| private final AbstractSharedSessionContract session | |
| transactionCoordinator | back to summary |
|---|---|
| private final TransactionCoordinator transactionCoordinator | |
| transactionDriverControl | back to summary |
|---|---|
| private TransactionCoordinator. | |
| TransactionImpl | back to summary |
|---|---|
| public TransactionImpl(TransactionCoordinator transactionCoordinator, AbstractSharedSessionContract session) | |
| allowFailedCommitToPhysicallyRollback | back to summary |
|---|---|
| protected boolean allowFailedCommitToPhysicallyRollback() | |
| begin | back to summary |
|---|---|
| public void begin() Implements javax. Doc from javax. Start a resource transaction.
| |
| commit | back to summary |
|---|---|
| public void commit() Implements javax. Doc from javax. Commit the current resource transaction, writing any unflushed changes to the database.
| |
| getRollbackOnly | back to summary |
|---|---|
| public boolean getRollbackOnly() Implements javax. Doc from javax. Determine whether the current resource transaction has been marked for rollback.
| |
| getStatus | back to summary |
|---|---|
| public TransactionStatus getStatus() Implements org. Doc from org. Get the current local status of this transaction. This only accounts for the local view of the transaction status. In other words it does not check the status of the actual underlying transaction.
| |
| getTimeout | back to summary |
|---|---|
| public int getTimeout() Implements org. Doc from org. Retrieve the transaction timeout set for this transaction. A negative indicates no timeout has been set.
| |
| internalGetTransactionDriverControl | back to summary |
|---|---|
| public TransactionCoordinator. | |
| isActive | back to summary |
|---|---|
| public boolean isActive() Implements javax. Doc from javax. Indicate whether a resource transaction is in progress.
| |
| isActive | back to summary |
|---|---|
| public boolean isActive(boolean isMarkedForRollbackConsideredActive) Implements org. Doc from org. Indicate whether a resource transaction is in progress.
| |
| markRollbackOnly | back to summary |
|---|---|
| public void markRollbackOnly() Overrides default org. Doc from org. Make a best effort to mark the underlying transaction for rollback only.
| |
| registerSynchronization | back to summary |
|---|---|
| public void registerSynchronization(Synchronization synchronization) throws HibernateException Implements org. Doc from org. Register a user synchronization callback for this transaction.
| |
| rollback | back to summary |
|---|---|
| public void rollback() Implements javax. Doc from javax. Roll back the current resource transaction.
| |
| setRollbackOnly | back to summary |
|---|---|
| public void setRollbackOnly() Implements javax. Doc from javax. Mark the current resource transaction so that the only possible outcome of the transaction is for the transaction to be rolled back.
| |
| setTimeout | back to summary |
|---|---|
| public void setTimeout(int seconds) Implements org. Doc from org. Set the transaction timeout for any transaction started by a subsequent call to
| |