1 16 package scriptella.driver.oracle; 17 18 import scriptella.jdbc.GenericDriver; 19 import scriptella.jdbc.JdbcConnection; 20 import scriptella.spi.ConnectionParameters; 21 22 import java.sql.SQLException ; 23 import java.util.Properties ; 24 25 32 public class Driver extends GenericDriver { 33 public static final String ORACLE_DRIVER_NAME = "oracle.jdbc.driver.OracleDriver"; 34 35 public Driver() { 36 loadDrivers(ORACLE_DRIVER_NAME); 37 } 38 39 @Override 40 protected JdbcConnection connect(ConnectionParameters parameters, Properties props) throws SQLException { 41 return new OracleConnection(getConnection(parameters.getUrl(), props), parameters); 42 } 43 44 } 45 | Popular Tags |