|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscriptella.spi.AbstractScriptellaDriver
scriptella.jdbc.GenericDriver
public class GenericDriver
Generic adapter for JDBC drivers.
| Constructor Summary | |
|---|---|
GenericDriver()
|
|
| Method Summary | |
|---|---|
JdbcConnection |
connect(ConnectionParameters params)
Implementor should create a new connection based on specified parameters. |
protected JdbcConnection |
connect(ConnectionParameters parameters,
java.util.Properties props)
Creates Scriptella JDBC connection. |
protected java.sql.Connection |
getConnection(java.lang.String url,
java.util.Properties props)
A helper method for subclasses to avoid direct interaction with DriverManager API. |
protected void |
loadDrivers(java.lang.String... drivers)
Tries to load one of the specified driver class names. |
| Methods inherited from class scriptella.spi.AbstractScriptellaDriver |
|---|
getScriptellaTitle, getScriptellaVersion, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GenericDriver()
| Method Detail |
|---|
protected void loadDrivers(java.lang.String... drivers)
drivers - database driver candidate names.
JdbcException - if no drivers were loadedpublic JdbcConnection connect(ConnectionParameters params)
ScriptellaDriver
params - connection parameters defined in <connection> element.
protected JdbcConnection connect(ConnectionParameters parameters,
java.util.Properties props)
throws java.sql.SQLException
parameters - connection parametersprops - properties to pass to jdbc driver
java.sql.SQLException - if DB exception occurs.
protected java.sql.Connection getConnection(java.lang.String url,
java.util.Properties props)
throws java.sql.SQLException
Calls DriverManager.getConnection(String,java.util.Properties)
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||