public class NoJtaPlatform extends java.lang.Object implements JtaPlatform
Modifier and Type | Field and Description |
---|---|
static NoJtaPlatform |
INSTANCE |
Constructor and Description |
---|
NoJtaPlatform() |
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 |
public static final NoJtaPlatform INSTANCE
public javax.transaction.TransactionManager retrieveTransactionManager()
JtaPlatform
TransactionManager
retrieveTransactionManager
in interface JtaPlatform
TransactionManager
public javax.transaction.UserTransaction retrieveUserTransaction()
JtaPlatform
UserTransaction
retrieveUserTransaction
in interface JtaPlatform
UserTransaction
public java.lang.Object getTransactionIdentifier(javax.transaction.Transaction transaction)
JtaPlatform
getTransactionIdentifier
in interface JtaPlatform
transaction
- The transaction to be identified.public void registerSynchronization(javax.transaction.Synchronization synchronization)
JtaPlatform
Synchronization
in the means defined by the platform.registerSynchronization
in interface JtaPlatform
synchronization
- The synchronization to registerpublic boolean canRegisterSynchronization()
JtaPlatform
Synchronization
?canRegisterSynchronization
in interface JtaPlatform
Synchronization
is currently allowed; false otherwise.public int getCurrentStatus() throws javax.transaction.SystemException
JtaPlatform
getCurrentStatus
in interface JtaPlatform
javax.transaction.SystemException
- Indicates a problem access the underlying statusCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.