org.hibernate.testing.jta
Class TestingJtaPlatformImpl

java.lang.Object
  extended by org.hibernate.service.jta.platform.internal.AbstractJtaPlatform
      extended by 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
static TestingJtaPlatformImpl INSTANCE
           
 
Constructor Summary
TestingJtaPlatformImpl()
           
 
Method Summary
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.service.jta.platform.internal.AbstractJtaPlatform
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
 

Field Detail

INSTANCE

public static final TestingJtaPlatformImpl INSTANCE
Constructor Detail

TestingJtaPlatformImpl

public TestingJtaPlatformImpl()
Method Detail

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-2012 Red Hat, Inc. All Rights Reserved.