Top Description Fields Constructors Methods
org.hibernate.transaction

public final Class TransactionManagerLookupFactory

extends Object
Class Inheritance
Imports
java.util.Properties, javax.transaction.TransactionManager, org.slf4j.Logger, .LoggerFactory, org.hibernate.HibernateException, org.hibernate.cfg.Environment, org.hibernate.util.ReflectHelper

Helper for generating TransactionManagerLookup instances.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
private
TransactionManagerLookupFactory()

Disallow instantiation

Method Summary

Modifier and TypeMethod and Description
public static TransactionManager

Returns:

The located TransactionManager
getTransactionManager
(Properties
The properties representing the platform config
props
)

Convenience method for locating the JTA TransactionManager from the given platform config.

public static TransactionManagerLookup

Returns:

The appropriate TransactionManagerLookup
getTransactionManagerLookup
(Properties
The config settings
props
)

Generate the appropriate TransactionManagerLookup given the config settings being passed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log

Constructor Detail

TransactionManagerLookupFactoryback to summary
private TransactionManagerLookupFactory()

Disallow instantiation

Method Detail

getTransactionManagerback to summary
public static TransactionManager getTransactionManager(Properties props) throws HibernateException

Convenience method for locating the JTA TransactionManager from the given platform config.

Same as calling getTransactionManager.getTransactionManager( props )

Parameters
props:Properties

The properties representing the platform config

Returns:TransactionManager

The located TransactionManager

Exceptions
HibernateException:
Indicates a problem either (a) generatng the TransactionManagerLookup or (b) asking it to locate the TransactionManager.
getTransactionManagerLookupback to summary
public static TransactionManagerLookup getTransactionManagerLookup(Properties props) throws HibernateException

Generate the appropriate TransactionManagerLookup given the config settings being passed.

Parameters
props:Properties

The config settings

Returns:TransactionManagerLookup

The appropriate TransactionManagerLookup

Exceptions
HibernateException:
Indicates problem generating TransactionManagerLookup