public class AutoloadedDriver
extends java.lang.Object
implements java.sql.Driver
Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance(); // or new org.apache.derby.jdbc.EmbeddedDriver();
Modifier and Type | Field and Description |
---|---|
private static AutoloadedDriver |
_autoloadedDriver |
private static java.sql.Driver |
_driverModule |
private static boolean |
_engineForcedDown |
Constructor and Description |
---|
AutoloadedDriver() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsURL(java.lang.String url)
Accept anything that starts with
jdbc:derby: . |
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info)
Connect to the URL if possible
|
private static void |
deregisterDriver(AutoloadedDriver driver) |
(package private) static java.sql.Driver |
getDriverModule() |
int |
getMajorVersion()
Returns the driver's major version number.
|
int |
getMinorVersion()
Returns the driver's minor version number.
|
java.util.logging.Logger |
getParentLogger() |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info)
Returns an array of DriverPropertyInfo objects describing possible properties.
|
private static boolean |
isBooted() |
boolean |
jdbcCompliant()
Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver.
|
private static AutoloadedDriver |
makeAutoloadedDriver()
Load the most capable driver available.
|
(package private) static void |
registerDriverModule(java.sql.Driver driver)
Record which driver module actually booted.
|
protected static void |
registerMe(AutoloadedDriver me) |
(package private) static void |
unregisterDriverModule()
Unregister the driver and the AutoloadedDriver if exists.
|
private static boolean _engineForcedDown
private static AutoloadedDriver _autoloadedDriver
private static java.sql.Driver _driverModule
protected static void registerMe(AutoloadedDriver me)
public boolean acceptsURL(java.lang.String url) throws java.sql.SQLException
jdbc:derby:
.acceptsURL
in interface java.sql.Driver
java.sql.SQLException
- if a database-access error occurs.Driver
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
connect
in interface java.sql.Driver
java.sql.SQLException
- illegal url or problem with connectiongDriver
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
getPropertyInfo
in interface java.sql.Driver
java.sql.SQLException
- if a database-access error occurs.Driver
public int getMajorVersion()
getMajorVersion
in interface java.sql.Driver
Driver
public int getMinorVersion()
getMinorVersion
in interface java.sql.Driver
Driver
public boolean jdbcCompliant()
jdbcCompliant
in interface java.sql.Driver
Driver
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
getParentLogger
in interface java.sql.Driver
java.sql.SQLFeatureNotSupportedException
static java.sql.Driver getDriverModule() throws java.sql.SQLException
java.sql.SQLException
static void registerDriverModule(java.sql.Driver driver)
driver
- the driver register to DriverManager is not AutoloadedDriverstatic void unregisterDriverModule()
private static void deregisterDriver(AutoloadedDriver driver) throws java.sql.SQLException
java.sql.SQLException
private static boolean isBooted()
private static AutoloadedDriver makeAutoloadedDriver()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.