KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > appserver > server > sql > standard > StandardDBTransactionFactory


1 /*
2  * Created on May 24, 2004
3  *
4  * To change the template for this generated file go to
5  * Window>Preferences>Java>Code Generation>Code and Comments
6  */

7 package com.lutris.appserver.server.sql.standard;
8
9 import java.sql.SQLException JavaDoc;
10 import com.lutris.appserver.server.sql.AbstractDBTransactionFactory;
11 import com.lutris.appserver.server.sql.DBTransaction;
12 import com.lutris.appserver.server.sql.DBConnection;
13 import com.lutris.appserver.server.sql.LogicalDatabase;
14
15 /**
16  * @author Administrator
17  *
18  * To change the template for this generated type comment go to
19  * Window>Preferences>Java>Code Generation>Code and Comments
20  */

21 public class StandardDBTransactionFactory implements AbstractDBTransactionFactory{
22     private LogicalDatabase logicalDb = null;
23
24     public void setLogicalDb(LogicalDatabase ldb) {
25         logicalDb=ldb;
26     }
27     public LogicalDatabase getLogicalDb() {
28         return logicalDb;
29     }
30     public DBTransaction getTransaction(DBConnection conn) throws SQLException JavaDoc{
31         return new StandardDBTransaction(conn);
32     };
33 }
34
Popular Tags