public 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.
|
void |
addListener(ConnectionListener listener) |
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.
|
void |
removeListener(ConnectionListener listener) |
public void addListener(ConnectionListener listener)
public void removeListener(ConnectionListener listener)
public java.sql.Connection connect(java.lang.String url,
java.util.Properties props)
throws java.sql.SQLException
connect in interface java.sql.Driverurl - 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.Driverurl - 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.Driverurl - 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.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.SQLFeatureNotSupportedException