public class GenericDriver extends AbstractScriptellaDriver
| Constructor and Description |
|---|
GenericDriver() |
| Modifier and Type | Method and Description |
|---|---|
JdbcConnection |
connect(ConnectionParameters params)
Implementor should create a new connection based on specified parameters.
|
protected JdbcConnection |
connect(ConnectionParameters parameters,
Properties props)
Creates Scriptella JDBC connection.
|
protected Connection |
getConnection(String url,
Properties props)
A helper method for subclasses to avoid direct interaction with DriverManager API.
|
protected void |
loadDrivers(String... drivers)
Tries to load one of the specified driver class names.
|
getScriptellaTitle, getScriptellaVersion, toStringprotected void loadDrivers(String... drivers)
drivers - database driver candidate names.JdbcException - if no drivers were loadedpublic JdbcConnection connect(ConnectionParameters params)
ScriptellaDriverparams - connection parameters defined in <connection> element.protected JdbcConnection connect(ConnectionParameters parameters, Properties props) throws SQLException
parameters - connection parametersprops - properties to pass to jdbc driverSQLException - if DB exception occurs.protected Connection getConnection(String url, Properties props) throws SQLException
Calls DriverManager.getConnection(String,java.util.Properties)
SQLExceptionCopyright © 2006-2012. All Rights Reserved.