public class DelegateDriver
extends java.lang.Object
| Constructor and Description |
|---|
DelegateDriver() |
| Modifier and Type | Method and Description |
|---|---|
static java.sql.Connection |
connect(java.lang.String hostAndArgs,
java.util.Properties info)
Connect using the delegate driver.
|
static java.sql.Driver |
getDriver()
Get the delegated driver instance.
|
static void |
setDelegateDriver(java.lang.String urlPrefix,
java.sql.Driver driverInstance)
Set the delegate driver and what the URL prefix should be.
|
static void |
setDelegateMysqlDriver(java.sql.Driver driverInstance)
This is the same as
setDelegateDriver(String, java.sql.Driver) except that it
defaults with a "jdbc:mysql://" connect prefix. |
public static void setDelegateDriver(java.lang.String urlPrefix,
java.sql.Driver driverInstance)
urlPrefix - Prefix expected by driver instancedriverInstance - The instance of the driver which we should make connections frompublic static void setDelegateMysqlDriver(java.sql.Driver driverInstance)
setDelegateDriver(String, java.sql.Driver) except that it
defaults with a "jdbc:mysql://" connect prefix.driverInstance - The instance of the driver which we should make connections frompublic static java.sql.Driver getDriver()
public static java.sql.Connection connect(java.lang.String hostAndArgs,
java.util.Properties info)
throws java.sql.SQLException
hostAndArgs - Host and JDBC connect arguments WITHOUT the JDBC prefixinfo - Connection propertiesnull if delegate is incorrectly configuredjava.sql.SQLException - Thrown if the delegate throws while connecting