public class Driver
extends java.lang.Object
implements java.sql.Driver
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
URL_PREFIX
the signature
|
| Constructor and Description |
|---|
Driver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(java.lang.String url)
Returns true if the driver thinks that it can open a connection
to the given URL.
|
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info)
Try to make a database connection to the given URL.
|
int |
getMajorVersion() |
int |
getMinorVersion() |
java.util.logging.Logger |
getParentLogger() |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info) |
boolean |
jdbcCompliant() |
public static final java.lang.String URL_PREFIX
public java.sql.Connection connect(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
The driver should raise a SQLException if it is the right driver to connect to the given URL, but has trouble connecting to the database.
The java.util.Properties argument can be used to passed arbitrary string tag/value pairs as connection arguments. Normally at least "user" and "password" properties should be included in the Properties.
connect in interface java.sql.Driverurl - The URL of the database to connect toinfo - a list of arbitrary string tag/value pairs as
connection arguments; normally at least a "user" and
"password" property should be includedjava.sql.SQLException - if a database-access error occurs.public boolean acceptsURL(java.lang.String url)
throws java.sql.SQLException
acceptsURL in interface java.sql.Driverurl - The URL of the database.java.sql.SQLException - if a database-access error occurs.public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
getPropertyInfo in interface java.sql.Driverjava.sql.SQLExceptionpublic int getMajorVersion()
getMajorVersion in interface java.sql.Driverpublic int getMinorVersion()
getMinorVersion in interface java.sql.Driverpublic boolean jdbcCompliant()
jdbcCompliant in interface java.sql.Driverpublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger in interface java.sql.Driverjava.sql.SQLFeatureNotSupportedExceptionstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.