public interface JtaPlatform extends Service
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterSynchronization()
Can we currently register a
Synchronization ? |
int |
getCurrentStatus()
Obtain the current transaction status using whatever means is preferred for this platform
|
java.lang.Object |
getTransactionIdentifier(javax.transaction.Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages.
|
void |
registerSynchronization(javax.transaction.Synchronization synchronization)
Register a JTA
Synchronization in the means defined by the platform. |
javax.transaction.TransactionManager |
retrieveTransactionManager()
Locate the
TransactionManager |
javax.transaction.UserTransaction |
retrieveUserTransaction()
Locate the
UserTransaction |
javax.transaction.TransactionManager retrieveTransactionManager()
TransactionManager
TransactionManager
javax.transaction.UserTransaction retrieveUserTransaction()
UserTransaction
UserTransaction
java.lang.Object getTransactionIdentifier(javax.transaction.Transaction transaction)
transaction
- The transaction to be identified.boolean canRegisterSynchronization()
Synchronization
?Synchronization
is currently allowed; false otherwise.void registerSynchronization(javax.transaction.Synchronization synchronization)
Synchronization
in the means defined by the platform.synchronization
- The synchronization to registerint getCurrentStatus() throws javax.transaction.SystemException
javax.transaction.SystemException
- Indicates a problem access the underlying statusCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.