|
||||||||||
| 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.EmbeddedDriver
public final class EmbeddedDriver
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.
| Field Summary | |
|---|---|
static java.lang.String |
DRIVER_NAME
|
| Constructor Summary | |
|---|---|
EmbeddedDriver()
|
|
| 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. |
int |
getMajorVersion()
Get's the driver's major version number. |
int |
getMinorVersion()
Get's the driver's minor version number. |
static void |
shutdown()
Shutdown the DQP instance which has been started using the given URL |
| 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 |
| Field Detail |
|---|
public static final java.lang.String DRIVER_NAME
| Constructor Detail |
|---|
public EmbeddedDriver()
| Method Detail |
|---|
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.SQLExceptionpublic int getMajorVersion()
public int getMinorVersion()
public java.lang.String getDriverName()
getDriverName in class BaseDriverpublic static void shutdown()
dqpURL -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||