|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.jdbc.TeiidDriver
public class TeiidDriver
JDBC Driver class for Teiid Embedded and Teiid Server. This class automatically registers with the
DriverManager
The accepted URL format for the connection
JDBCURL KNOWN_PROPERTIES for list of known properties allowed.
| Constructor Summary | |
|---|---|
TeiidDriver()
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)
|
java.lang.String |
getDriverName()
|
static TeiidDriver |
getInstance()
|
int |
getMajorVersion()
|
int |
getMinorVersion()
|
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info)
|
boolean |
jdbcCompliant()
This method returns true if the driver passes jdbc compliance tests. |
protected static void |
parseURL(java.lang.String url,
java.util.Properties info)
This method parses the URL and adds properties to the the properties object. |
void |
setEmbeddedProfile(ConnectionProfile embeddedProfile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TeiidDriver()
getInstance().
| Method Detail |
|---|
public static TeiidDriver getInstance()
public java.sql.Connection connect(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
connect in interface java.sql.Driverjava.sql.SQLExceptionpublic void setEmbeddedProfile(ConnectionProfile embeddedProfile)
public boolean acceptsURL(java.lang.String url)
throws java.sql.SQLException
acceptsURL in interface java.sql.DriverThe - URL used to establish a connection.
SQLException, - should never occur
java.sql.SQLExceptionpublic int getMajorVersion()
getMajorVersion in interface java.sql.Driverpublic int getMinorVersion()
getMinorVersion in interface java.sql.Driverpublic java.lang.String getDriverName()
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
getPropertyInfo in interface java.sql.Driverjava.sql.SQLException
protected static void parseURL(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
The - URL needed to be parsed.The - properties object which is to be updated with properties in the URL.
java.sql.SQLException - if the URL is not in the expected format.public boolean jdbcCompliant()
jdbcCompliant in interface java.sql.Driver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||