Driver
public 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
- Exception
public int getMajorVersion()
getMajorVersion
in interface Driver
Driver.getMajorVersion()
public int getMinorVersion()
getMinorVersion
in interface Driver
Driver.getMinorVersion()
public boolean jdbcCompliant()
jdbcCompliant
in interface Driver
Driver.jdbcCompliant()
public boolean acceptsURL(String url) throws SQLException
acceptsURL
in interface Driver
SQLException
Driver.acceptsURL(java.lang.String)
public Connection connect(String url, Properties info) throws SQLException
connect
in interface Driver
SQLException
Driver.connect(java.lang.String, java.util.Properties)
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo
in interface Driver
SQLException
Driver.getPropertyInfo(java.lang.String, java.util.Properties)
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface Driver
SQLFeatureNotSupportedException
Driver.getParentLogger()
Copyright © 2018. All rights reserved.