class ConfigurableJtaPlatform
extends java.lang.Object
TransactionManager
,
UserTransaction
and TransactionSynchronizationRegistry
references.Modifier and Type | Field and Description |
---|---|
private TransactionManager |
transactionManager |
private TransactionSynchronizationRegistry |
transactionSynchronizationRegistry |
private UserTransaction |
userTransaction |
Constructor and Description |
---|
ConfigurableJtaPlatform(TransactionManager tm,
UserTransaction ut,
TransactionSynchronizationRegistry tsr)
Create a new ConfigurableJtaPlatform instance with the given
JTA TransactionManager and optionally a given UserTransaction.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterSynchronization() |
int |
getCurrentStatus() |
java.lang.Object |
getTransactionIdentifier(Transaction transaction) |
void |
registerSynchronization(Synchronization synchronization) |
TransactionManager |
retrieveTransactionManager() |
UserTransaction |
retrieveUserTransaction() |
private final TransactionManager transactionManager
private final UserTransaction userTransaction
private final TransactionSynchronizationRegistry transactionSynchronizationRegistry
public ConfigurableJtaPlatform(TransactionManager tm, UserTransaction ut, TransactionSynchronizationRegistry tsr)
tm
- the JTA TransactionManager reference (required)ut
- the JTA UserTransaction reference (optional)tsr
- the JTA 1.1 TransactionSynchronizationRegistry (optional)public TransactionManager retrieveTransactionManager()
public UserTransaction retrieveUserTransaction()
public java.lang.Object getTransactionIdentifier(Transaction transaction)
public boolean canRegisterSynchronization()
public void registerSynchronization(Synchronization synchronization)
public int getCurrentStatus() throws SystemException
SystemException