|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.jdbc.BaseDriver
com.metamatrix.jdbc.MMDriver
public final class MMDriver
The java.sql.DriverManager class uses this class to connect to MetaMatrix.
The Driver Manager maintains a pool of MMDriver objects, which it could use
to connect to MetaMatrix. The MMDriver class has a static initializer, which
is used to instantiate and register itsef with java.sql.DriverManager. The
DriverManager's getConnection
method calls connect
method on available registered drivers. The first driver to recognise the given
url is used to obtain a connection.
Constructor Summary | |
---|---|
MMDriver()
Should be a singleton and only constructed in getInstance() . |
Method Summary | |
---|---|
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)
This method tries to make a metamatrix connection to the given URL. |
java.lang.String |
getDriverName()
Get's the name of the driver. |
static MMDriver |
getInstance()
|
int |
getMajorVersion()
Get's the driver's major version number. |
int |
getMinorVersion()
Get's the driver's minor version number. |
Methods inherited from class com.metamatrix.jdbc.BaseDriver |
---|
getPropertyInfo, jdbcCompliant |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MMDriver()
getInstance()
.
Method Detail |
---|
public static MMDriver getInstance()
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
The
- URL used to establish a connection.
java.sql.SQLException
- if it is unable to establish a connection to the MetaMatrix server.public boolean acceptsURL(java.lang.String url) throws java.sql.SQLException
The
- URL used to establish a connection.
SQLException,
- should never occur
java.sql.SQLException
public int getMajorVersion()
public int getMinorVersion()
public java.lang.String getDriverName()
BaseDriver
getDriverName
in class BaseDriver
BaseDriver.getDriverName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |