| Modifier and Type | Class and Description |
|---|---|
| public class | JtaTransactionCoordinatorImpl.TransactionDriverControlImpl
Implementation of the LocalInflow for this TransactionCoordinator. |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private SynchronizationCallbackCoordinator | |
| private final JtaPlatform | |
| private static final Logger | |
| private transient List | |
| private final boolean | |
| private JtaTransactionCoordinatorImpl. | |
| private final boolean | |
| private boolean | |
| private final SynchronizationRegistryStandardImpl | |
| private int | |
| private final TransactionCoordinatorBuilder | |
| private final TransactionCoordinatorOwner |
| Access | Constructor and Description |
|---|---|
| pack-priv | JtaTransactionCoordinatorImpl(TransactionCoordinatorBuilder transactionCoordinatorBuilder, TransactionCoordinatorOwner
The transactionCoordinatorOwner owner, boolean Should JTA transactions be auto-joined? Or should we wait for explicit join calls? autoJoinTransactions, JtaPlatform jtaPlatform)Construct a JtaTransactionCoordinatorImpl instance. |
| public | JtaTransactionCoordinatorImpl(TransactionCoordinatorBuilder transactionCoordinatorBuilder, TransactionCoordinatorOwner owner, boolean autoJoinTransactions, JtaPlatform jtaPlatform, boolean preferUserTransactions, boolean performJtaThreadTracking, TransactionObserver... observers)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addObserver(TransactionObserver
The observer to add. observer)Implements org. |
| public void | afterCompletion(boolean
Was the transaction successful? successful, boolean delayed)
Callback of after-completion.
|
| public void | beforeCompletion()
Callback of before-completion.
|
| public IsolationDelegate | createIsolationDelegate()
Implements org. |
| public void | explicitJoin()
Implements org. |
| public JpaCompliance | |
| public SynchronizationRegistry | getLocalSynchronizations()
Implements org. |
| public SynchronizationCallbackCoordinator | |
| public int | |
| public TransactionCoordinatorBuilder | getTransactionCoordinatorBuilder()
Implements org. |
| public TransactionCoordinatorOwner | |
| public TransactionCoordinator. | getTransactionDriverControl()
Implements org. |
| public void | invalidate()
Overrides default org. |
| public boolean | isActive()
Implements org. |
| public boolean | isJoined()
Implements org. |
| public boolean | |
| public boolean | Returns: true indicates that a RegisteredSynchronization is currently registered for this coordinator;
false indicates it is not (yet) registered.Is the RegisteredSynchronization used by Hibernate for unified JTA Synchronization callbacks registered for this coordinator? |
| private void | |
| private JtaTransactionCoordinatorImpl. | |
| private JtaTransactionAdapter | |
| private JtaTransactionAdapter | |
| 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. |
| autoJoinTransactions | back to summary |
|---|---|
| private final boolean autoJoinTransactions | |
| callbackCoordinator | back to summary |
|---|---|
| private SynchronizationCallbackCoordinator callbackCoordinator | |
| jtaPlatform | back to summary |
|---|---|
| private final JtaPlatform jtaPlatform | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| observers | back to summary |
|---|---|
| private transient List<TransactionObserver> observers | |
| performJtaThreadTracking | back to summary |
|---|---|
| private final boolean performJtaThreadTracking | |
| physicalTransactionDelegate | back to summary |
|---|---|
| private JtaTransactionCoordinatorImpl. | |
| preferUserTransactions | back to summary |
|---|---|
| private final boolean preferUserTransactions | |
| synchronizationRegistered | back to summary |
|---|---|
| private boolean synchronizationRegistered | |
| 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 | |
| JtaTransactionCoordinatorImpl | back to summary |
|---|---|
| pack-priv JtaTransactionCoordinatorImpl(TransactionCoordinatorBuilder transactionCoordinatorBuilder, TransactionCoordinatorOwner owner, boolean autoJoinTransactions, JtaPlatform jtaPlatform) Construct a JtaTransactionCoordinatorImpl instance. package-protected to ensure access goes through builder.
| |
| JtaTransactionCoordinatorImpl | back to summary |
|---|---|
| public JtaTransactionCoordinatorImpl(TransactionCoordinatorBuilder transactionCoordinatorBuilder, TransactionCoordinatorOwner owner, boolean autoJoinTransactions, JtaPlatform jtaPlatform, boolean preferUserTransactions, boolean performJtaThreadTracking, TransactionObserver... observers) | |
| 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.
| |
| afterCompletion | back to summary |
|---|---|
| public void afterCompletion(boolean successful, boolean delayed) Callback of after-completion.
| |
| beforeCompletion | back to summary |
|---|---|
| public void beforeCompletion() Callback of before-completion.
| |
| 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
| |
| getSynchronizationCallbackCoordinator | back to summary |
|---|---|
| public SynchronizationCallbackCoordinator getSynchronizationCallbackCoordinator() | |
| 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
| |
| getTransactionCoordinatorOwner | back to summary |
|---|---|
| public TransactionCoordinatorOwner getTransactionCoordinatorOwner() | |
| 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
| |
| invalidate | back to summary |
|---|---|
| public void invalidate() Overrides default org.
| |
| 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.
| |
| isJtaTransactionCurrentlyActive | back to summary |
|---|---|
| public boolean isJtaTransactionCurrentlyActive() | |
| isSynchronizationRegistered | back to summary |
|---|---|
| public boolean isSynchronizationRegistered() Is the RegisteredSynchronization used by Hibernate for unified JTA Synchronization callbacks registered for this coordinator?
| |
| joinJtaTransaction | back to summary |
|---|---|
| private void joinJtaTransaction() Join to the JTA transaction. Note that the underlying meaning of joining in JTA environments is to register the RegisteredSynchronization with the JTA system | |
| makePhysicalTransactionDelegate | back to summary |
|---|---|
| private JtaTransactionCoordinatorImpl. | |
| makeTransactionManagerAdapter | back to summary |
|---|---|
| private JtaTransactionAdapter makeTransactionManagerAdapter() | |
| makeUserTransactionAdapter | back to summary |
|---|---|
| private JtaTransactionAdapter makeUserTransactionAdapter() | |
| 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. Yet try to not allocate anything for when the list is empty, as this is a common case.
| |
| 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.
| |
org.hibernate.Transaction to callback into this
TransactionCoordinator for the purpose of driving the underlying JTA transaction.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final JtaTransactionAdapter |
| 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 | |
| jtaTransactionAdapter | back to summary |
|---|---|
| private final JtaTransactionAdapter jtaTransactionAdapter | |
| TransactionDriverControlImpl | back to summary |
|---|---|
| public TransactionDriverControlImpl(JtaTransactionAdapter jtaTransactionAdapter) | |
| 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
| |