org.hibernate.resource.transaction.backend.jdbc.spi.JdbcResourceTransaction
org.hibernate.resource.transaction.backend.jdbc.spi.JdbcResourceTransaction
| Modifier and Type | Class and Description |
|---|---|
| public class | JdbcResourceLocalTransactionCoordinatorImpl.TransactionDriverControlImpl
The delegate bridging between the local (application facing) transaction and the "physical" notion of a transaction via the JDBC Connection. |
| Modifier and Type | Field and Description |
|---|---|
| private final JdbcResourceTransactionAccess | |
| private final JpaCompliance | |
| private static final CoreMessageLogger | |
| private transient List | |
| private JdbcResourceLocalTransactionCoordinatorImpl. | |
| private final SynchronizationRegistryStandardImpl | |
| private int | |
| private final TransactionCoordinatorBuilder | |
| private final TransactionCoordinatorOwner |
| Access | Constructor and Description |
|---|---|
| pack-priv | JdbcResourceLocalTransactionCoordinatorImpl(TransactionCoordinatorBuilder transactionCoordinatorBuilder, TransactionCoordinatorOwner
The transactionCoordinatorOwner owner, JdbcResourceTransactionAccess jdbcResourceTransactionAccess)Construct a ResourceLocalTransactionCoordinatorImpl instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addObserver(TransactionObserver
The observer to add. observer)Implements org. |
| private void | |
| private void | |
| private void | |
| public IsolationDelegate | createIsolationDelegate()
Implements org. |
| public void | explicitJoin()
Implements org. |
| public JpaCompliance | |
| public SynchronizationRegistry | getLocalSynchronizations()
Implements org. |
| public int | |
| public TransactionCoordinatorBuilder | getTransactionCoordinatorBuilder()
Implements org. |
| public TransactionCoordinator. | getTransactionDriverControl()
Implements org. |
| public boolean | isActive()
Implements org. |
| public boolean | isJoined()
Implements org. |
| private Iterable | Returns: TransactionObserverNeeded because while iterating the observers list and executing the before/update callbacks, some observers might get removed from the list. |
| public void | pulse()
Implements org. |
| public void | removeObserver(TransactionObserver
The observer to remove. observer)Implements org. |
| public void | setTimeOut(int seconds)
Implements org. |
| jdbcResourceTransactionAccess | back to summary |
|---|---|
| private final JdbcResourceTransactionAccess jdbcResourceTransactionAccess | |
| jpaCompliance | back to summary |
|---|---|
| private final JpaCompliance jpaCompliance | |
| log | back to summary |
|---|---|
| private static final CoreMessageLogger log | |
| observers | back to summary |
|---|---|
| private transient List<TransactionObserver> observers | |
| physicalTransactionDelegate | back to summary |
|---|---|
| private JdbcResourceLocalTransactionCoordinatorImpl. | |
| synchronizationRegistry | back to summary |
|---|---|
| private final SynchronizationRegistryStandardImpl synchronizationRegistry | |
| timeOut | back to summary |
|---|---|
| private int timeOut | |
| transactionCoordinatorBuilder | back to summary |
|---|---|
| private final TransactionCoordinatorBuilder transactionCoordinatorBuilder | |
| transactionCoordinatorOwner | back to summary |
|---|---|
| private final TransactionCoordinatorOwner transactionCoordinatorOwner | |
| JdbcResourceLocalTransactionCoordinatorImpl | back to summary |
|---|---|
| pack-priv JdbcResourceLocalTransactionCoordinatorImpl(TransactionCoordinatorBuilder transactionCoordinatorBuilder, TransactionCoordinatorOwner owner, JdbcResourceTransactionAccess jdbcResourceTransactionAccess) Construct a ResourceLocalTransactionCoordinatorImpl instance. package-protected to ensure access goes through builder.
| |
| addObserver | back to summary |
|---|---|
| public void addObserver(TransactionObserver observer) Implements org. Doc from org. Adds an observer to the coordinator. observers are not to be cleared on transaction completion.
| |
| afterBeginCallback | back to summary |
|---|---|
| private void afterBeginCallback() | |
| afterCompletionCallback | back to summary |
|---|---|
| private void afterCompletionCallback(boolean successful) | |
| beforeCompletionCallback | back to summary |
|---|---|
| private void beforeCompletionCallback() | |
| createIsolationDelegate | back to summary |
|---|---|
| public IsolationDelegate createIsolationDelegate() Implements org. Doc from org. Retrieve an isolation delegate appropriate for this transaction strategy.
| |
| explicitJoin | back to summary |
|---|---|
| public void explicitJoin() Implements org. Doc from org. Indicates an explicit request to join a transaction. This is mainly intended to handle the JPA requirement
around
| |
| getJpaCompliance | back to summary |
|---|---|
| public JpaCompliance getJpaCompliance() Implements org.
| |
| getLocalSynchronizations | back to summary |
|---|---|
| public SynchronizationRegistry getLocalSynchronizations() Implements org. Doc from org. Get access to the local registry of Synchronization instances
| |
| getTimeOut | back to summary |
|---|---|
| public int getTimeOut() Implements org.
| |
| getTransactionCoordinatorBuilder | back to summary |
|---|---|
| public TransactionCoordinatorBuilder getTransactionCoordinatorBuilder() Implements org. Doc from org. Access to the builder that generated this coordinator
| |
| getTransactionDriverControl | back to summary |
|---|---|
| public TransactionCoordinator. Implements org. Doc from org. Get the delegate used by the local transaction driver to control the underlying transaction
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() Implements org. Doc from org. Is this transaction still active?
Answers on a best effort basis. For example, in the case of JDBC based transactions we cannot know that a
transaction is active when it is initiated directly through the JDBC
| |
| isJoined | back to summary |
|---|---|
| public boolean isJoined() Implements org. Doc from org. Determine if there is an active transaction that this coordinator is already joined to.
| |
| observers | back to summary |
|---|---|
| private Iterable Needed because while iterating the observers list and executing the before/update callbacks, some observers might get removed from the list.
| |
| pulse | back to summary |
|---|---|
| public void pulse() Implements org. Doc from org. Used by owner of the JdbcSession as a means to indicate that implicit joining should be done if needed.
| |
| removeObserver | back to summary |
|---|---|
| public void removeObserver(TransactionObserver observer) Implements org. Doc from org. Removed an observer from the coordinator.
| |
| setTimeOut | back to summary |
|---|---|
| public void setTimeOut(int seconds) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final JdbcResourceTransaction | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | begin()
Implements org. |
| public void | commit()
Implements org. |
| protected void | |
| public TransactionStatus | |
| protected void | |
| public void | |
| public void | rollback()
Implements org. |
| invalid | back to summary |
|---|---|
| private boolean invalid | |
| jdbcResourceTransaction | back to summary |
|---|---|
| private final JdbcResourceTransaction jdbcResourceTransaction | |
| rollbackOnly | back to summary |
|---|---|
| private boolean rollbackOnly | |
| TransactionDriverControlImpl | back to summary |
|---|---|
| public TransactionDriverControlImpl(JdbcResourceTransaction jdbcResourceTransaction) | |
| begin | back to summary |
|---|---|
| public void begin() Implements org. Doc from org. Begin the physical transaction
| |
| commit | back to summary |
|---|---|
| public void commit() Implements org. Doc from org. Commit the physical transaction
| |
| errorIfInvalid | back to summary |
|---|---|
| protected void errorIfInvalid() | |
| getStatus | back to summary |
|---|---|
| public TransactionStatus getStatus() Implements org.
| |
| invalidate | back to summary |
|---|---|
| protected void invalidate() | |
| markRollbackOnly | back to summary |
|---|---|
| public void markRollbackOnly() Implements org.
| |
| rollback | back to summary |
|---|---|
| public void rollback() Implements org. Doc from org. Rollback the physical transaction
| |