com.metamatrix.jdbc
Class BaseDriver

java.lang.Object
  extended by com.metamatrix.jdbc.BaseDriver
All Implemented Interfaces:
java.sql.Driver
Direct Known Subclasses:
EmbeddedDriver, MMDriver

public abstract class BaseDriver
extends java.lang.Object
implements java.sql.Driver

Since:
5.0

Constructor Summary
BaseDriver()
           
 
Method Summary
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.
 
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
 

Constructor Detail

BaseDriver

public BaseDriver()
Method Detail

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


Copyright © 2009. All Rights Reserved.