public final class MonetDriver extends Object implements Driver
| Constructor and Description |
|---|
MonetDriver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(String url)
Retrieves whether the driver thinks that it can open a connection to the
given URL.
|
Connection |
connect(String url,
Properties info)
Attempts to make a database connection to the given URL.
|
static int |
getDriverMajorVersion() |
static int |
getDriverMinorVersion() |
static String |
getDriverVersion()
Returns a touched up identifying version string of this driver.
|
static int |
getJavaType(String type)
Returns the java.sql.Types equivalent of the given MonetDB type.
|
int |
getMajorVersion()
Retrieves the driver's major version number.
|
int |
getMinorVersion()
Gets the driver's minor version number.
|
Logger |
getParentLogger()
Return the parent Logger of all the Loggers used by this data
source.
|
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info)
Gets information about the possible properties for this driver.
|
boolean |
jdbcCompliant()
Reports whether this driver is a genuine JDBC Compliant&tm; driver.
|
public boolean acceptsURL(String url)
acceptsURL in interface Driverurl - the URL of the databasepublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface Driverpublic DriverPropertyInfo[] getPropertyInfo(String url, Properties info)
getPropertyInfo in interface Driverurl - the URL of the database to which to connectinfo - a proposed list of tag/value pairs that will be sent on connect openpublic boolean jdbcCompliant()
jdbcCompliant in interface Driverpublic static int getJavaType(String type)
type - the type as used by MonetDBpublic static String getDriverVersion()
public static int getDriverMajorVersion()
public static int getDriverMinorVersion()
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface DriverSQLFeatureNotSupportedException - if the data source does not use java.util.loggingpublic Connection connect(String url, Properties info) throws SQLException
connect in interface Driverurl - the URL of the database to which to connectinfo - a list of arbitrary string tag/value pairs as connection
arguments. Normally at least a "user" and "password" property
should be includedSQLException - if a database access error occursCopyright © 2017. All rights reserved.