|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.jdbc.AutoloadedDriver
public class AutoloadedDriver
This is the dummy driver which is registered with the DriverManager and which is autoloaded by JDBC4. Loading this class will NOT automatically boot the Derby engine, but it will register this class as a valid Driver with the DriverManager. Instead, the engine boots lazily when you ask for a Connection. Alternatively, you can force the engine to boot as follows:
Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
// or
new org.apache.derby.jdbc.EmbeddedDriver();
| Field Summary | |
|---|---|
private static java.sql.Driver |
_autoloadedDriver
|
private static java.sql.Driver |
_driverModule
|
private static boolean |
_engineForcedDown
|
| Constructor Summary | |
|---|---|
AutoloadedDriver()
|
|
| Method Summary | |
|---|---|
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 |
(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.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 slightly more capable driver if possible. |
(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static boolean _engineForcedDown
private static java.sql.Driver _autoloadedDriver
private static java.sql.Driver _driverModule
| Constructor Detail |
|---|
public AutoloadedDriver()
| Method Detail |
|---|
protected static void registerMe(AutoloadedDriver me)
public boolean acceptsURL(java.lang.String url)
throws java.sql.SQLException
jdbc:derby:.
acceptsURL in interface java.sql.Driverjava.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.Driverjava.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.Driverjava.sql.SQLException - if a database-access error occurs.Driverpublic int getMajorVersion()
getMajorVersion in interface java.sql.DriverDriverpublic int getMinorVersion()
getMinorVersion in interface java.sql.DriverDriverpublic boolean jdbcCompliant()
jdbcCompliant in interface java.sql.DriverDriver
static java.sql.Driver getDriverModule()
throws java.sql.SQLException
java.sql.SQLExceptionstatic void registerDriverModule(java.sql.Driver driver)
driver - the driver register to DriverManager is not AutoloadedDriverstatic void unregisterDriverModule()
private static boolean isBooted()
private static AutoloadedDriver makeAutoloadedDriver()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||