public final class

TransactionManagerLookupFactory

extends Object
java.lang.Object
   ↳ org.hibernate.transaction.TransactionManagerLookupFactory

Class Overview

Helper for generating TransactionManagerLookup instances.

Summary

Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static TransactionManager getTransactionManager (Properties props)

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.

public static TransactionManagerLookup getTransactionManagerLookup (Properties props)

Generate the appropriate TransactionManagerLookup given the config settings being passed.

Parameters
props The config settings
Returns
Throws
HibernateException Indicates problem generating TransactionManagerLookup