ome.tools.hibernate
Class JBossTsTransactionManagerLookup

java.lang.Object
  extended by ome.tools.hibernate.JBossTsTransactionManagerLookup
All Implemented Interfaces:
org.hibernate.transaction.TransactionManagerLookup

public class JBossTsTransactionManagerLookup
extends Object
implements org.hibernate.transaction.TransactionManagerLookup

Simple helper class copied from http://docs.codehaus.org/display/BTM/Hibernate This implementation is available in Hibernate 3.3 at which point this can be removed.


Constructor Summary
JBossTsTransactionManagerLookup()
          Default constructor used by Hibernate.
JBossTsTransactionManagerLookup(TransactionManager tm, UserTransaction ut, Map<String,Object> map)
          Constructor used to publish a UserTransaction to JNDI.
 
Method Summary
 TransactionManager getTransactionManager(Properties props)
           
 String getUserTransactionName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossTsTransactionManagerLookup

public JBossTsTransactionManagerLookup()
Default constructor used by Hibernate.


JBossTsTransactionManagerLookup

public JBossTsTransactionManagerLookup(TransactionManager tm,
                                       UserTransaction ut,
                                       Map<String,Object> map)
Constructor used to publish a UserTransaction to JNDI.

Parameters:
ds -
Method Detail

getTransactionManager

public TransactionManager getTransactionManager(Properties props)
                                         throws org.hibernate.HibernateException
Specified by:
getTransactionManager in interface org.hibernate.transaction.TransactionManagerLookup
Throws:
org.hibernate.HibernateException

getUserTransactionName

public String getUserTransactionName()
Specified by:
getUserTransactionName in interface org.hibernate.transaction.TransactionManagerLookup


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.