Class SpringJtaPlatform

java.lang.Object
org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
org.springframework.boot.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 Hibernate AbstractJtaPlatform implementation that simply resolves the JTA UserTransaction and TransactionManager from the Spring-configured JtaTransactionManager implementation.
Since:
4.0.0
Author:
Josh Long, Phillip Webb
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected @Nullable TransactionManager
     
    protected @Nullable UserTransaction
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • locateTransactionManager

      protected @Nullable TransactionManager locateTransactionManager()
      Specified by:
      locateTransactionManager in class org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
    • locateUserTransaction

      protected @Nullable UserTransaction locateUserTransaction()
      Specified by:
      locateUserTransaction in class org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform