KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > transaction > TransactionManagerLookup


1 //$Id: TransactionManagerLookup.java,v 1.1 2004/06/03 16:31:29 steveebersole Exp $
2
package org.hibernate.transaction;
3
4 import java.util.Properties JavaDoc;
5 import javax.transaction.TransactionManager JavaDoc;
6
7 import org.hibernate.HibernateException;
8
9 /**
10  * Concrete implementations locate and return the JTA
11  * <tt>TransactionManager</tt>.
12  * @author Gavin King
13  */

14 public interface TransactionManagerLookup {
15
16     /**
17      * Obtain the JTA <tt>TransactionManager</tt>
18      */

19     public TransactionManager JavaDoc getTransactionManager(Properties JavaDoc props) throws HibernateException;
20
21     /**
22      * Return the JNDI name of the JTA <tt>UserTransaction</tt>
23      * or <tt>null</tt> (optional operation).
24      */

25     public String JavaDoc getUserTransactionName();
26
27 }
28
29
30
31
32
33
34
Popular Tags