class ConfigurableJtaPlatform
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
TransactionManager
,
UserTransaction
and TransactionSynchronizationRegistry
references.Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.Class<? extends Service> |
jtaPlatformClass |
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() |
(package private) static java.lang.String |
getJtaPlatformBasePackage() |
java.lang.Object |
getJtaPlatformProxy()
Obtain a proxy that implements the current Hibernate version's JtaPlatform interface
in the right package location, delegating all invocations to the same-named methods
on this ConfigurableJtaPlatform class itself.
|
java.lang.Object |
getTransactionIdentifier(Transaction transaction) |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
void |
registerSynchronization(Synchronization synchronization) |
TransactionManager |
retrieveTransactionManager() |
UserTransaction |
retrieveUserTransaction() |
static final java.lang.Class<? extends Service> jtaPlatformClass
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)static java.lang.String getJtaPlatformBasePackage()
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
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
public java.lang.Object getJtaPlatformProxy()