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 Driver
SQLException
public void setLocalProfile(ConnectionProfile embeddedProfile)
public void setSocketProfile(ConnectionProfile socketProfile)
public boolean acceptsURL(String url) throws SQLException
acceptsURL
in interface Driver
url
- used to establish a connection.SQLException
- should never occurpublic int getMajorVersion()
getMajorVersion
in interface Driver
public int getMinorVersion()
getMinorVersion
in interface Driver
public String getDriverName()
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo
in interface Driver
SQLException
protected 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 Driver
public Logger getParentLogger()
getParentLogger
in interface Driver
Copyright © 2019. All rights reserved.