1 5 package com.lutris.appserver.server.sql; 6 7 import javax.sql.DataSource ; 8 import com.lutris.appserver.server.sql.datasource.DataSourceDBConnection; 9 10 13 public class DataSourceDBConnectionFactory implements AbstractDBConnectionFactory{ 14 15 18 public DBConnection createConnection(ConnectionAllocator connectionAllocatorObj, 19 String url, String user, String password, int maxPreparedStatements, boolean logging, int generation) 20 throws java.sql.SQLException { 21 DBConnection dbConnection = new DataSourceDBConnection(connectionAllocatorObj, 22 url,user,password,maxPreparedStatements,logging,generation); 23 return dbConnection; 24 } 25 28 public DBConnection createConnection(ConnectionAllocator connectionAllocatorObj, 29 DataSource dataSource, int maxPreparedStatements, boolean logging, int generation) 30 throws java.sql.SQLException { 31 DBConnection dbConnection = new DataSourceDBConnection(connectionAllocatorObj, 32 dataSource ,maxPreparedStatements,logging,generation); 33 return dbConnection; 34 } 35 } 36 | Popular Tags |