org.hibernate.testing.jta
Class TestingJtaPlatformImpl
java.lang.Object
org.hibernate.service.jta.platform.internal.AbstractJtaPlatform
org.hibernate.testing.jta.TestingJtaPlatformImpl
- All Implemented Interfaces:
- Serializable, TransactionManagerAccess, JtaPlatform, Service, Configurable, ServiceRegistryAwareService
public class TestingJtaPlatformImpl
- extends AbstractJtaPlatform
A test-specific implementation of the JtaPlatform contract for testing JTA-based functionality.
- See Also:
- Serialized Form
| Methods inherited from class org.hibernate.service.jta.platform.internal.AbstractJtaPlatform |
canCacheTransactionManagerByDefault, canCacheUserTransactionByDefault, canRegisterSynchronization, configure, getCurrentStatus, 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 |
INSTANCE
public static final TestingJtaPlatformImpl INSTANCE
TestingJtaPlatformImpl
public TestingJtaPlatformImpl()
transactionManager
public static TransactionManager transactionManager()
userTransaction
public static UserTransaction userTransaction()
synchronizationRegistry
public static TransactionSynchronizationRegistry synchronizationRegistry()
tryCommit
public static void tryCommit()
throws Exception
- Used by envers...
- Throws:
Exception
locateTransactionManager
protected TransactionManager locateTransactionManager()
- Specified by:
locateTransactionManager in class AbstractJtaPlatform
canCacheTransactionManager
protected boolean canCacheTransactionManager()
- Overrides:
canCacheTransactionManager in class AbstractJtaPlatform
locateUserTransaction
protected UserTransaction locateUserTransaction()
- Specified by:
locateUserTransaction in class AbstractJtaPlatform
canCacheUserTransaction
protected boolean canCacheUserTransaction()
- Overrides:
canCacheUserTransaction in class AbstractJtaPlatform
getSynchronizationStrategy
protected JtaSynchronizationStrategy getSynchronizationStrategy()
- Overrides:
getSynchronizationStrategy in class AbstractJtaPlatform
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.