1 6 package org.logicalcobwebs.proxool; 7 8 import java.sql.Connection ; 9 import java.sql.DriverManager ; 10 import java.sql.SQLException ; 11 import java.util.Properties ; 12 13 17 public class DefaultConnectionBuilder implements ConnectionBuilderIF { 18 19 22 public DefaultConnectionBuilder() { 23 super(); 24 } 25 26 27 31 34 public Connection buildConnection(ConnectionPoolDefinitionIF cpd) throws SQLException { 35 Connection realConnection = null; 36 final String url = cpd.getUrl(); 37 38 Properties info = cpd.getDelegateProperties(); 39 return DriverManager.getConnection(url, info); 40 } 41 42 } 43 44 52 | Popular Tags |