Service that defines how Hibernate interacts with JTA on a certain
platform. In particular, a JtaPlatform allows Hibernate to obtain
the TransactionManager and UserTransaction, and register
Synchronizations.
An implementation may be selected by specifying the configuration property
hibernate.transaction.jta.platform. Alternatively,
a JtaPlatformProvider or even a custom JtaPlatformResolver
may be used.
JtaPlatformResolver, JtaPlatformProvider
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if registering aSynchronization is currently allowed; false otherwise.Can we currently register a |
| public int | Returns: The current status.Obtain the current transaction status using whatever means is preferred for this platform |
| public @Nullable Object | Returns: An appropriate identifierThe transaction to be identified. transaction)Determine an identifier for the given transaction appropriate for use in caching/lookup usages. |
| public void | registerSynchronization(Synchronization
The synchronization to register synchronization)Register a JTA |
| public @Nullable TransactionManager | |
| public @Nullable UserTransaction |
| canRegisterSynchronization | back to summary |
|---|---|
| public boolean canRegisterSynchronization() Can we currently register a
| |
| getCurrentStatus | back to summary |
|---|---|
| public int getCurrentStatus() throws SystemException Obtain the current transaction status using whatever means is preferred for this platform
| |
| getTransactionIdentifier | back to summary |
|---|---|
| public @Nullable Object getTransactionIdentifier(Transaction transaction) Determine an identifier for the given transaction appropriate for use in caching/lookup usages. Generally speaking the transaction itself will be returned here. This method was added specifically for use in WebSphere and other unfriendly Java EE containers.
| |
| registerSynchronization | back to summary |
|---|---|
| public void registerSynchronization(Synchronization synchronization) Register a JTA
| |
| retrieveTransactionManager | back to summary |
|---|---|
| public @Nullable TransactionManager retrieveTransactionManager() Locate the
| |
| retrieveUserTransaction | back to summary |
|---|---|
| public @Nullable UserTransaction retrieveUserTransaction() Locate the
If
| |