Class TestingJtaPlatformImpl

  • All Implemented Interfaces:
    Serializable, org.hibernate.engine.transaction.jta.platform.internal.TransactionManagerAccess, JtaPlatform, Service, Configurable, ServiceRegistryAwareService

    public class TestingJtaPlatformImpl
    extends org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
    A test-specific implementation of the JtaPlatform contract for testing JTA-based functionality.
    See Also:
    Serialized Form
    • Constructor Detail

      • TestingJtaPlatformImpl

        public TestingJtaPlatformImpl()
    • Method Detail

      • tryCommit

        public static void tryCommit()
                              throws Exception
        Used by envers...
        Throws:
        Exception
      • locateTransactionManager

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

        protected boolean canCacheTransactionManager()
        Overrides:
        canCacheTransactionManager in class org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
      • locateUserTransaction

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

        protected boolean canCacheUserTransaction()
        Overrides:
        canCacheUserTransaction in class org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
      • getSynchronizationStrategy

        protected org.hibernate.engine.transaction.jta.platform.internal.JtaSynchronizationStrategy getSynchronizationStrategy()
        Overrides:
        getSynchronizationStrategy in class org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform