Driverpublic class MyDriver extends Object implements Driver
| Constructor | Description |
|---|---|
MyDriver(String driverClass,
ClassLoader loader) |
ct.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
acceptsURL(String url) |
|
Connection |
connect(String url,
Properties info) |
|
int |
getMajorVersion() |
|
int |
getMinorVersion() |
|
Logger |
getParentLogger() |
|
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info) |
|
boolean |
jdbcCompliant() |
public MyDriver(String driverClass, ClassLoader loader) throws Exception
driverClass - loader - Exceptionpublic int getMajorVersion()
getMajorVersion in interface DriverDriver.getMajorVersion()public int getMinorVersion()
getMinorVersion in interface DriverDriver.getMinorVersion()public boolean jdbcCompliant()
jdbcCompliant in interface DriverDriver.jdbcCompliant()public boolean acceptsURL(String url) throws SQLException
acceptsURL in interface DriverSQLExceptionDriver.acceptsURL(java.lang.String)public Connection connect(String url, Properties info) throws SQLException
connect in interface DriverSQLExceptionDriver.connect(java.lang.String, java.util.Properties)public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo in interface DriverSQLExceptionDriver.getPropertyInfo(java.lang.String, java.util.Properties)public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface DriverSQLFeatureNotSupportedExceptionDriver.getParentLogger()Copyright © 2018. All rights reserved.