org.hibernate.transaction

Class TransactionManagerLookupFactory


public final class TransactionManagerLookupFactory
extends java.lang.Object

Helper for generating TransactionManagerLookup instances.
Author:
Gavin King

Method Summary

static TransactionManager
getTransactionManager(Properties props)
Convenience method for locating the JTA TransactionManager from the given platform config.
static TransactionManagerLookup
getTransactionManagerLookup(Properties props)
Generate the appropriate TransactionManagerLookup given the config settings being passed.

Method Details

getTransactionManager

public static TransactionManager getTransactionManager(Properties props)
            throws HibernateException
Convenience method for locating the JTA TransactionManager from the given platform config.

Same as calling getTransactionManager(Properties).getTransactionManager( props )

Parameters:
props - The properties representing the platform config
Returns:
The located TransactionManager
Throws:
HibernateException - Indicates a problem either (a) generatng the TransactionManagerLookup or (b) asking it to locate the TransactionManager.

getTransactionManagerLookup

public static TransactionManagerLookup getTransactionManagerLookup(Properties props)
            throws HibernateException
Generate the appropriate TransactionManagerLookup given the config settings being passed.
Parameters:
props - The config settings
Returns:
The appropriate TransactionManagerLookup
Throws:
HibernateException - Indicates problem generating TransactionManagerLookup