com.metamatrix.jdbc
Class BaseDriver
java.lang.Object
com.metamatrix.jdbc.BaseDriver
- All Implemented Interfaces:
- java.sql.Driver
- Direct Known Subclasses:
- MMDriver
public abstract class BaseDriver
- extends java.lang.Object
- implements java.sql.Driver
- Since:
- 5.0
Method Summary |
protected abstract java.util.List<java.sql.DriverPropertyInfo> |
getAdditionalPropertyInfo(java.lang.String url,
java.util.Properties info)
|
abstract java.lang.String |
getDriverName()
Get's the name of the driver. |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info)
This method could be used to prompt the user for properties to connect to
metamatrix (properties that are not already specified for obtaining connection). |
boolean |
jdbcCompliant()
This method returns true if the driver passes jdbc compliance tests. |
protected abstract void |
parseURL(java.lang.String url,
java.util.Properties info)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.sql.Driver |
acceptsURL, connect, getMajorVersion, getMinorVersion |
BaseDriver
public BaseDriver()
getDriverName
public abstract java.lang.String getDriverName()
- Get's the name of the driver.
- Returns:
- name of the driver
jdbcCompliant
public boolean jdbcCompliant()
- This method returns true if the driver passes jdbc compliance tests.
- Specified by:
jdbcCompliant
in interface java.sql.Driver
- Returns:
- true if the driver is jdbc compliant, else false.
getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
- This method could be used to prompt the user for properties to connect to
metamatrix (properties that are not already specified for obtaining connection).
- Specified by:
getPropertyInfo
in interface java.sql.Driver
- Parameters:
The
- URL used to establish a connection.A
- properties object containing properties needed to obtain a connection.
- Returns:
- An array containing DriverPropertyInfo objects
- Throws:
SQLException,
- if parsing error occurs
java.sql.SQLException
getAdditionalPropertyInfo
protected abstract java.util.List<java.sql.DriverPropertyInfo> getAdditionalPropertyInfo(java.lang.String url,
java.util.Properties info)
parseURL
protected abstract void parseURL(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
Copyright © 2009. All Rights Reserved.