Package com.zfabrik.hibernate
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
-
Method Summary
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 Details
-
Z2JtaPlatform
public Z2JtaPlatform()
-
-
Method Details
-
locateTransactionManager
protected javax.transaction.TransactionManager locateTransactionManager()- Specified by:
locateTransactionManager
in classorg.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
-
locateUserTransaction
protected javax.transaction.UserTransaction locateUserTransaction()- Specified by:
locateUserTransaction
in classorg.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
-
tm
public javax.transaction.TransactionManager tm() -
ut
public javax.transaction.UserTransaction ut()
-