com.metamatrix.jdbc
Class EmbeddedDriver

java.lang.Object
  extended by org.teiid.jdbc.TeiidDriver
      extended by com.metamatrix.jdbc.EmbeddedDriver
All Implemented Interfaces:
java.sql.Driver

public final class EmbeddedDriver
extends TeiidDriver

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.
 
Methods inherited from class org.teiid.jdbc.TeiidDriver
connect, getDriverName, getInstance, getMajorVersion, getMinorVersion, getPropertyInfo, jdbcCompliant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRIVER_NAME

public static final java.lang.String DRIVER_NAME
See Also:
Constant Field Values
Constructor Detail

EmbeddedDriver

public EmbeddedDriver()
Method Detail

acceptsURL

public boolean acceptsURL(java.lang.String url)
                   throws java.sql.SQLException
Returns true if the driver thinks that it can open a connection to the given URL. Typically drivers will return true if they understand the subprotocol specified in the URL and false if they don't. Expected URL format is jdbc:metamatrix:VDB@pathToPropertyFile;version=1;logFile=;logLevel=;txnAutoWrap=

Specified by:
acceptsURL in interface java.sql.Driver
Overrides:
acceptsURL in class TeiidDriver
Parameters:
The - URL used to establish a connection.
Returns:
A boolean value indicating whether the driver understands the subprotocol.
Throws:
SQLException, - should never occur
java.sql.SQLException


Copyright © 2009. All Rights Reserved.