Class SpringJtaPlatform
- java.lang.Object
- org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
- org.springframework.boot.orm.jpa.hibernate.SpringJtaPlatform
- All Implemented Interfaces:
Serializable
,org.hibernate.engine.transaction.jta.platform.internal.TransactionManagerAccess
,org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform
,org.hibernate.service.Service
,org.hibernate.service.spi.Configurable
,org.hibernate.service.spi.ServiceRegistryAwareService
public class SpringJtaPlatform extends org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
Generic HibernateAbstractJtaPlatform
implementation that simply resolves the JTAUserTransaction
andTransactionManager
from the Spring-configuredJtaTransactionManager
implementation.- Since:
- 1.2.0
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description SpringJtaPlatform(org.springframework.transaction.jta.JtaTransactionManager transactionManager)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TransactionManager
locateTransactionManager()
protected UserTransaction
locateUserTransaction()
Methods inherited from class org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
canCacheTransactionManager, canCacheTransactionManagerByDefault, canCacheUserTransaction, canCacheUserTransactionByDefault, canRegisterSynchronization, configure, getCurrentStatus, getSynchronizationStrategy, getTransactionIdentifier, getTransactionManager, injectServices, jndiService, registerSynchronization, retrieveTransactionManager, retrieveUserTransaction, serviceRegistry
Constructor Detail
SpringJtaPlatform
public SpringJtaPlatform(org.springframework.transaction.jta.JtaTransactionManager transactionManager)
Method Detail
locateTransactionManager
protected TransactionManager locateTransactionManager()
- Specified by:
locateTransactionManager
in classorg.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
locateUserTransaction
protected UserTransaction locateUserTransaction()
- Specified by:
locateUserTransaction
in classorg.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform