public final class Driver
extends java.lang.Object
implements java.sql.Driver
Constructor and Description |
---|
Driver() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsURL(java.lang.String url)
returns true if the driver can accept the url.
|
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties props)
Connect to the given connection string.
|
int |
getMajorVersion()
gets the major version of the driver.
|
int |
getMinorVersion()
gets the minor version of the driver.
|
java.util.logging.Logger |
getParentLogger() |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info)
Get the property info.
|
boolean |
jdbcCompliant()
checks if the driver is jdbc compliant (not yet!).
|
public java.sql.Connection connect(java.lang.String url, java.util.Properties props) throws java.sql.SQLException
connect
in interface java.sql.Driver
url
- the url to connect tojava.sql.SQLException
- if it is not possible to connectpublic boolean acceptsURL(java.lang.String url)
acceptsURL
in interface java.sql.Driver
url
- the url to testpublic java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
getPropertyInfo
in interface java.sql.Driver
url
- the url to get properties forinfo
- the info propsjava.sql.SQLException
- if there is a problem getting the property infopublic int getMajorVersion()
getMajorVersion
in interface java.sql.Driver
public int getMinorVersion()
getMinorVersion
in interface java.sql.Driver
public boolean jdbcCompliant()
jdbcCompliant
in interface java.sql.Driver
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
getParentLogger
in interface java.sql.Driver
java.sql.SQLFeatureNotSupportedException