class ConfigurableJtaPlatform
extends AbstractJtaPlatform
org.hibernate.service.jta.platform.spi.JtaPlatform
SPI, exposing passed-in TransactionManager
and UserTransaction
references.Modifier and Type | Field and Description |
---|---|
private TransactionManager |
transactionManager |
private UserTransaction |
userTransaction |
Constructor and Description |
---|
ConfigurableJtaPlatform(TransactionManager tm,
UserTransaction ut)
Create a new ConfigurableJtaPlatform instance with the given
JTA TransactionManager and optionally a given UserTransaction.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canCacheTransactionManager() |
protected boolean |
canCacheUserTransaction() |
protected TransactionManager |
locateTransactionManager() |
protected UserTransaction |
locateUserTransaction() |
private final TransactionManager transactionManager
private final UserTransaction userTransaction
public ConfigurableJtaPlatform(TransactionManager tm, UserTransaction ut)
tm
- the JTA TransactionManager reference (required)ut
- the JTA UserTransaction reference (optional)protected TransactionManager locateTransactionManager()
protected UserTransaction locateUserTransaction()
protected boolean canCacheTransactionManager()
protected boolean canCacheUserTransaction()