org.apache.derby.jdbc
Class AutoloadedDriver
- java.lang.Object
-
- org.apache.derby.jdbc.AutoloadedDriver
-
- All Implemented Interfaces:
- java.sql.Driver
public class AutoloadedDriver extends java.lang.Object implements java.sql.DriverThis 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();
-
-
Constructor Summary
Constructors Constructor and Description AutoloadedDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanacceptsURL(java.lang.String url)Accept anything that starts withjdbc:derby:.java.sql.Connectionconnect(java.lang.String url, java.util.Properties info)Connect to the URL if possibleintgetMajorVersion()Returns the driver's major version number.intgetMinorVersion()Returns the driver's minor version number.java.util.logging.LoggergetParentLogger()java.sql.DriverPropertyInfo[]getPropertyInfo(java.lang.String url, java.util.Properties info)Returns an array of DriverPropertyInfo objects describing possible properties.booleanjdbcCompliant()Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver.
-
-
-
Method Detail
-
acceptsURL
public boolean acceptsURL(java.lang.String url) throws java.sql.SQLExceptionAccept anything that starts withjdbc:derby:.- Specified by:
acceptsURLin interfacejava.sql.Driver- Throws:
java.sql.SQLException- if a database-access error occurs.- See Also:
Driver
-
connect
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLExceptionConnect to the URL if possible- Specified by:
connectin interfacejava.sql.Driver- Throws:
java.sql.SQLException- illegal url or problem with connectiong- See Also:
Driver
-
getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLExceptionReturns an array of DriverPropertyInfo objects describing possible properties.- Specified by:
getPropertyInfoin interfacejava.sql.Driver- Throws:
java.sql.SQLException- if a database-access error occurs.- See Also:
Driver
-
getMajorVersion
public int getMajorVersion()
Returns the driver's major version number.- Specified by:
getMajorVersionin interfacejava.sql.Driver- See Also:
Driver
-
getMinorVersion
public int getMinorVersion()
Returns the driver's minor version number.- Specified by:
getMinorVersionin interfacejava.sql.Driver- See Also:
Driver
-
jdbcCompliant
public boolean jdbcCompliant()
Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver.- Specified by:
jdbcCompliantin interfacejava.sql.Driver- See Also:
Driver
-
getParentLogger
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException- Specified by:
getParentLoggerin interfacejava.sql.Driver- Throws:
java.sql.SQLFeatureNotSupportedException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG