|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.transaction.JNDITransactionManagerLookup
public abstract class JNDITransactionManagerLookup
Template implementation of TransactionManagerLookup
where the
underlying TransactionManager
is available via JNDI lookup at the
specified location - getName()
.
Constructor Summary | |
---|---|
JNDITransactionManagerLookup()
|
Method Summary | |
---|---|
protected abstract java.lang.String |
getName()
Get the JNDI namespace under wich we can locate the TransactionManager . |
java.lang.Object |
getTransactionIdentifier(javax.transaction.Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages. |
javax.transaction.TransactionManager |
getTransactionManager(java.util.Properties props)
Obtain the JTA TransactionManager . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.hibernate.transaction.TransactionManagerLookup |
---|
getUserTransactionName |
Constructor Detail |
---|
public JNDITransactionManagerLookup()
Method Detail |
---|
protected abstract java.lang.String getName()
TransactionManager
.
TransactionManager
JNDI namespacepublic javax.transaction.TransactionManager getTransactionManager(java.util.Properties props) throws HibernateException
TransactionManager
.
getTransactionManager
in interface TransactionManagerLookup
props
- The configuration properties.
TransactionManager
.
HibernateException
- Indicates problem locating TransactionManager
.public java.lang.Object getTransactionIdentifier(javax.transaction.Transaction transaction)
getTransactionIdentifier
in interface TransactionManagerLookup
transaction
- The transaction to be identified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |