| 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 jakarta. |
| public boolean | getRollbackOnly()
Implements jakarta. |
| public TransactionStatus | getStatus()
Implements org. |
| public int | getTimeout()
Implements org. |
| public TransactionCoordinator. | |
| public boolean | isActive()
Implements jakarta. |
| 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)Synchronization callback to register.Implements org. synchronization callback for this transaction.
|
| public void | rollback()
Implements jakarta. |
| public void | setRollbackOnly()
Implements jakarta. |
| 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 jakarta. Doc from jakarta. Start a resource transaction.
| |
| commit | back to summary |
|---|---|
| public void commit() Implements jakarta. Doc from jakarta. Commit the current resource transaction, writing any unflushed changes to the database.
| |
| getRollbackOnly | back to summary |
|---|---|
| public boolean getRollbackOnly() Implements jakarta. Doc from jakarta. 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 status of this transaction.
| |
| getTimeout | back to summary |
|---|---|
| public int getTimeout() Implements org. Doc from org. Retrieve the transaction timeout set for this instance. A negative integer indicates that no timeout has been set.
| |
| internalGetTransactionDriverControl | back to summary |
|---|---|
| public TransactionCoordinator. | |
| isActive | back to summary |
|---|---|
| public boolean isActive() Implements jakarta. Doc from jakarta. 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. Attempt 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
| |
| rollback | back to summary |
|---|---|
| public void rollback() Implements jakarta. Doc from jakarta. Roll back the current resource transaction.
| |
| setRollbackOnly | back to summary |
|---|---|
| public void setRollbackOnly() Implements jakarta. Doc from jakarta. 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 any subsequent call to
| |