Package org.hibernate.transaction
Class TransactionManagerLookupFactory
java.lang.Object
org.hibernate.transaction.TransactionManagerLookupFactory
Helper for generating
TransactionManagerLookup instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionManagergetTransactionManager(Properties props) Convenience method for locating the JTATransactionManagerfrom the given platform config.static TransactionManagerLookupGenerate the appropriateTransactionManagerLookupgiven the config settings being passed.
-
Method Details
-
getTransactionManager
Convenience method for locating the JTATransactionManagerfrom the given platform config. Same as callinggetTransactionManager(java.util.Properties).getTransactionManager( props )- Parameters:
props- The properties representing the platform config- Returns:
- The located
TransactionManager - Throws:
HibernateException- Indicates a problem either (a) generatng theTransactionManagerLookupor (b) asking it to locate theTransactionManager.
-
getTransactionManagerLookup
public static TransactionManagerLookup getTransactionManagerLookup(Properties props) throws HibernateException Generate the appropriateTransactionManagerLookupgiven the config settings being passed.- Parameters:
props- The config settings- Returns:
- The appropriate
TransactionManagerLookup - Throws:
HibernateException- Indicates problem generatingTransactionManagerLookup
-