Package org.hibernate.testing.jta
Class TestingJtaPlatformImpl
- java.lang.Object
-
- org.hibernate.engine.transaction.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
-
-
Field Summary
Fields Modifier and Type Field Description static TestingJtaPlatformImpl
INSTANCE
static String
NAME
-
Constructor Summary
Constructors Constructor Description TestingJtaPlatformImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canCacheTransactionManager()
protected boolean
canCacheUserTransaction()
protected JtaSynchronizationStrategy
getSynchronizationStrategy()
protected TransactionManager
locateTransactionManager()
protected UserTransaction
locateUserTransaction()
static TransactionSynchronizationRegistry
synchronizationRegistry()
static TransactionManager
transactionManager()
static void
tryCommit()
Used by envers...static UserTransaction
userTransaction()
-
Methods inherited from class org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
canCacheTransactionManagerByDefault, canCacheUserTransactionByDefault, canRegisterSynchronization, configure, getCurrentStatus, getTransactionIdentifier, getTransactionManager, injectServices, jndiService, registerSynchronization, retrieveTransactionManager, retrieveUserTransaction, serviceRegistry
-
-
-
-
Field Detail
-
NAME
public static final String NAME
-
INSTANCE
public static final TestingJtaPlatformImpl INSTANCE
-
-
Method Detail
-
transactionManager
public static TransactionManager transactionManager()
-
userTransaction
public static UserTransaction userTransaction()
-
synchronizationRegistry
public static TransactionSynchronizationRegistry synchronizationRegistry()
-
locateTransactionManager
protected TransactionManager locateTransactionManager()
- Specified by:
locateTransactionManager
in classAbstractJtaPlatform
-
canCacheTransactionManager
protected boolean canCacheTransactionManager()
- Overrides:
canCacheTransactionManager
in classAbstractJtaPlatform
-
locateUserTransaction
protected UserTransaction locateUserTransaction()
- Specified by:
locateUserTransaction
in classAbstractJtaPlatform
-
canCacheUserTransaction
protected boolean canCacheUserTransaction()
- Overrides:
canCacheUserTransaction
in classAbstractJtaPlatform
-
getSynchronizationStrategy
protected JtaSynchronizationStrategy getSynchronizationStrategy()
- Overrides:
getSynchronizationStrategy
in classAbstractJtaPlatform
-
-