KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > appserver > server > sql > SimpleDataSourceDBConnectionFactory


1 /*
2  * Created on Jun 7, 2004
3  *
4  */

5 package com.lutris.appserver.server.sql;
6
7 import com.lutris.appserver.server.sql.datasource.SimpleDataSourceDBConnection;
8
9 /**
10  *
11  */

12 public class SimpleDataSourceDBConnectionFactory implements AbstractDBConnectionFactory{
13
14     /**
15      *
16      */

17     public DBConnection createConnection(ConnectionAllocator connectionAllocatorObj,
18       String JavaDoc url, String JavaDoc user, String JavaDoc password, int maxPreparedStatements, boolean logging, int generation)
19       throws java.sql.SQLException JavaDoc{
20          DBConnection dbConnection = new SimpleDataSourceDBConnection(connectionAllocatorObj,
21                                           url,user,password,maxPreparedStatements,logging,generation);
22          return dbConnection;
23     }
24 }
25
Popular Tags