org.hibernate.transaction
public final class TransactionManagerLookupFactory extends java.lang.Object
TransactionManagerLookup
instances.Modifier and Type | Method and Description |
---|---|
static javax.transaction.TransactionManager |
getTransactionManager(java.util.Properties props)
Convenience method for locating the JTA
TransactionManager from the
given platform config. |
static TransactionManagerLookup |
getTransactionManagerLookup(java.util.Properties props)
Generate the appropriate
TransactionManagerLookup given the
config settings being passed. |
public static javax.transaction.TransactionManager getTransactionManager(java.util.Properties props) throws HibernateException
TransactionManager
from the
given platform config.
Same as calling getTransactionManager(java.util.Properties)
.getTransactionManager( props )props
- The properties representing the platform configTransactionManager
HibernateException
- Indicates a problem either (a) generatng the
TransactionManagerLookup
or (b) asking it to locate the TransactionManager
.public static TransactionManagerLookup getTransactionManagerLookup(java.util.Properties props) throws HibernateException
TransactionManagerLookup
given the
config settings being passed.props
- The config settingsTransactionManagerLookup
HibernateException
- Indicates problem generating TransactionManagerLookup
Copyright © 2014. All Rights Reserved.