public class DirectConnector extends DefaultConnector
Purpose:Use this Connector to build a java.sql.Connection by directly instantiating the Driver, as opposed to using the DriverManager.
databaseURL, driver, driverClass, driverClassName, driverURLHeader
Constructor and Description |
---|
DirectConnector()
PUBLIC:
Construct a Connector with default settings (Sun JDBC-ODBC bridge).
|
DirectConnector(java.lang.String driverClassName,
java.lang.String driverURLHeader,
java.lang.String databaseURL)
PUBLIC:
Construct a Connector with the specified settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
shouldUseDriverManager(java.util.Properties properties,
Session session)
INTERNAL:
Indicates whether DriverManager should be used.
|
clearDriverClassAndDriver, clone, connect, directConnect, getConnectionDetails, getConnectionString, getDatabaseURL, getDriverClassName, getDriverURLHeader, initialize, instantiateDriver, loadDriverClass, setDatabaseURL, setDriverClassName, setDriverURLHeader, toString, toString
public DirectConnector()
public DirectConnector(java.lang.String driverClassName, java.lang.String driverURLHeader, java.lang.String databaseURL)
public boolean shouldUseDriverManager(java.util.Properties properties, Session session)
shouldUseDriverManager
in class DefaultConnector