| Modifier and Type | Field and Description |
|---|---|
protected static String |
JDBC_PREFIX
JDBC prefix for the connection url.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseDriver(String prefix)
Constructor for extended class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(String url) |
abstract Connection |
connect(String url,
Properties info) |
int |
getMajorVersion() |
int |
getMinorVersion() |
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info) |
protected String |
getUser(Properties properties) |
boolean |
jdbcCompliant() |
protected Properties |
parseUrlProperties(String url,
Properties params)
Parse the url string and construct a properties object.
|
protected static final String JDBC_PREFIX
protected BaseDriver(String prefix) throws SQLException
prefix - Prefix of the driver for the connection url.SQLExceptionpublic abstract Connection connect(String url, Properties info) throws SQLException
connect in interface DriverSQLExceptionpublic DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo in interface DriverSQLExceptionpublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface Driverpublic boolean jdbcCompliant()
jdbcCompliant in interface Driverpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface DriverSQLFeatureNotSupportedExceptionpublic boolean acceptsURL(String url) throws SQLException
acceptsURL in interface DriverSQLExceptionprotected Properties parseUrlProperties(String url, Properties params)
url - The url to parseparams - The propertiesprotected String getUser(Properties properties)
Copyright © 2016 LARUS Business Automation Srl. All rights reserved.