Class Z2JtaPlatform

java.lang.Object
org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
com.zfabrik.hibernate.Z2JtaPlatform
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 Z2JtaPlatform extends org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
Use this JTA platform implementation, if you use Hibernate in conjunction with Z2's built-in transaction management system (see also How to transaction management).

In a persistence unit you can declare the JTA platform manager lookup implementation as

 <property name="hibernate.transaction.jta.platform" value="com.zfabrik.hibernate.Z2JtaPlatform"/>
 
in the <properties> section of the persistence.xml.
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected javax.transaction.TransactionManager
     
    protected javax.transaction.UserTransaction
     
    javax.transaction.TransactionManager
    tm()
     
    javax.transaction.UserTransaction
    ut()
     

    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

    • Z2JtaPlatform

      public Z2JtaPlatform()
  • Method Details

    • locateTransactionManager

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

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

      public javax.transaction.TransactionManager tm()
    • ut

      public javax.transaction.UserTransaction ut()