public class TeiidDriver extends Object implements Driver
DriverManager
The accepted URL format for the connection
JDBCURL KNOWN_PROPERTIES for list of known properties allowed.| Constructor and Description |
|---|
TeiidDriver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(String url)
Returns true if the driver thinks that it can open a connection to the given URL.
|
ConnectionImpl |
connect(String url,
Properties info) |
String |
getDriverName() |
static TeiidDriver |
getInstance() |
int |
getMajorVersion() |
int |
getMinorVersion() |
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info) |
boolean |
jdbcCompliant()
This method returns true if the driver passes jdbc compliance tests.
|
protected static void |
parseURL(String url,
Properties info)
This method parses the URL and adds properties to the the properties object.
|
void |
setLocalProfile(ConnectionProfile embeddedProfile) |
void |
setSocketProfile(ConnectionProfile socketProfile) |
public static TeiidDriver getInstance()
public ConnectionImpl connect(String url, Properties info) throws SQLException
connect in interface DriverSQLExceptionpublic void setLocalProfile(ConnectionProfile embeddedProfile)
public void setSocketProfile(ConnectionProfile socketProfile)
public boolean acceptsURL(String url) throws SQLException
acceptsURL in interface Driverurl - used to establish a connection.SQLException - should never occurpublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface Driverpublic String getDriverName()
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo in interface DriverSQLExceptionprotected static void parseURL(String url, Properties info) throws SQLException
url - The URL needed to be parsed.info - The properties object which is to be updated with properties in the URL.SQLException - if the URL is not in the expected format.public boolean jdbcCompliant()
jdbcCompliant in interface Driverpublic Logger getParentLogger()
getParentLogger in interface DriverCopyright © 2019. All rights reserved.