Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
// or
new org.apache.derby.jdbc.EmbeddedDriver();
| Modifier and Type | Field and Description |
|---|---|
| private static AutoloadedDriver | |
| private static Driver | |
| private static boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | acceptsURL(String
the URL of the database url)Implements java. Accept anything that starts with |
| public Connection | connect(String
the URL of the database to which to connect url, Properties a list of arbitrary string tag/value pairs as
connection arguments. Normally at least a "user" and
"password" property should be included. info)Implements java. Connect to the URL if possible |
| private static void | |
| public static Driver | |
| public int | getMajorVersion()
Implements java. Returns the driver's major version number. |
| public int | getMinorVersion()
Implements java. Returns the driver's minor version number. |
| public Logger | getParentLogger()
Implements java. Return the parent Logger of all the Loggers used by this driver. |
| public DriverPropertyInfo[] | getPropertyInfo(String
the URL of the database to which to connect url, Properties a proposed list of tag/value pairs that will be sent on
connect open info)Implements java. Returns an array of DriverPropertyInfo objects describing possible properties. |
| private static boolean | |
| public boolean | jdbcCompliant()
Implements java. Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver. |
| private static AutoloadedDriver | |
| public static void | registerDriverModule(Driver
the driver register to DriverManager is not AutoloadedDriver driver)Record which driver module actually booted. |
| protected static void | |
| public static void |
| _autoloadedDriver | back to summary |
|---|---|
| private static AutoloadedDriver _autoloadedDriver | |
| _driverModule | back to summary |
|---|---|
| private static Driver _driverModule | |
| _engineForcedDown | back to summary |
|---|---|
| private static boolean _engineForcedDown | |
| AutoloadedDriver | back to summary |
|---|---|
| public AutoloadedDriver() | |
| acceptsURL | back to summary |
|---|---|
| public boolean acceptsURL(String url) throws SQLException Implements java. Accept anything that starts with
| |
| connect | back to summary |
|---|---|
| public Connection connect(String url, Properties info) throws SQLException Implements java. Connect to the URL if possible
| |
| deregisterDriver | back to summary |
|---|---|
| private static void deregisterDriver(final AutoloadedDriver driver) throws SQLException | |
| getDriverModule | back to summary |
|---|---|
| public static Driver getDriverModule() throws SQLException | |
| getMajorVersion | back to summary |
|---|---|
| public int getMajorVersion() Implements java. Returns the driver's major version number.
| |
| getMinorVersion | back to summary |
|---|---|
| public int getMinorVersion() Implements java. Returns the driver's minor version number.
| |
| getParentLogger | back to summary |
|---|---|
| public Logger getParentLogger() throws SQLFeatureNotSupportedException Implements java. Doc from java. Return the parent Logger of all the Loggers used by this driver. This should be the Logger farthest from the root Logger that is still an ancestor of all of the Loggers used by this driver. Configuring this Logger will affect all of the log messages generated by the driver. In the worst case, this may be the root Logger.
| |
| getPropertyInfo | back to summary |
|---|---|
| public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException Implements java. Returns an array of DriverPropertyInfo objects describing possible properties.
| |
| isBooted | back to summary |
|---|---|
| private static boolean isBooted() | |
| jdbcCompliant | back to summary |
|---|---|
| public boolean jdbcCompliant() Implements java. Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver.
| |
| makeAutoloadedDriver | back to summary |
|---|---|
| private static AutoloadedDriver makeAutoloadedDriver() Load the most capable driver available. But if the vm level doesn't support it, then we fall back on a lower-level driver.
| |
| registerDriverModule | back to summary |
|---|---|
| public static void registerDriverModule(Driver driver) Record which driver module actually booted.
| |
| registerMe | back to summary |
|---|---|
| protected static void registerMe(AutoloadedDriver me) | |
| unregisterDriverModule | back to summary |
|---|---|
| public static void unregisterDriverModule() Unregister the driver and the AutoloadedDriver if exists. This happens when the engine is forcibly shut down. | |