public class ClientDRDADriver extends Object implements Driver
| Modifier and Type | Field and Description |
|---|---|
static String |
DRDA_CONNECTION_PROTOCOL |
protected static SQLException |
exceptionsOnLoadDriver__ |
static String |
GEMXD_PROTOCOL |
protected static ClientDRDADriver |
registeredDriver__ |
static String |
SNAPPY_PROTOCOL |
protected static String |
URL_PREFIX_REGEX |
protected static String |
URL_SUFFIX_REGEX |
| Constructor and Description |
|---|
ClientDRDADriver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(String url) |
Connection |
connect(String url,
Properties properties) |
protected Connection |
createThriftConnection(String server,
int port,
Properties props) |
static ClientJDBCObjectFactory |
getFactory()
This method returns an Implementation
of ClientJDBCObjectFactory depending on
VM under use
Currently it returns either
ClientJDBCObjectFactoryImpl
(or)
ClientJDBCObjectFactoryImpl40
|
int |
getMajorVersion() |
int |
getMinorVersion() |
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties properties) |
static ClientDRDADriver |
getRegisteredDriver() |
protected String |
getServer(Matcher m,
int[] port) |
protected Properties |
getURLProperties(Matcher m,
Properties properties) |
boolean |
jdbcCompliant() |
protected Matcher |
matchProtocol(String url) |
protected Matcher |
matchURL(String url) |
protected boolean |
useThriftProtocol(Matcher m) |
public static String SNAPPY_PROTOCOL
public static String GEMXD_PROTOCOL
public static String DRDA_CONNECTION_PROTOCOL
protected static final String URL_PREFIX_REGEX
protected static final String URL_SUFFIX_REGEX
protected static SQLException exceptionsOnLoadDriver__
protected static ClientDRDADriver registeredDriver__
public Connection connect(String url, Properties properties) throws SQLException
connect in interface DriverSQLExceptionpublic boolean acceptsURL(String url) throws SQLException
acceptsURL in interface DriverSQLExceptionpublic DriverPropertyInfo[] getPropertyInfo(String url, Properties properties) throws SQLException
getPropertyInfo in interface DriverSQLExceptionpublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface Driverpublic boolean jdbcCompliant()
jdbcCompliant in interface Driverpublic static ClientJDBCObjectFactory getFactory()
protected boolean useThriftProtocol(Matcher m)
protected Properties getURLProperties(Matcher m, Properties properties) throws SqlException
SqlExceptionprotected Connection createThriftConnection(String server, int port, Properties props) throws SQLException
SQLExceptionpublic static ClientDRDADriver getRegisteredDriver()
public Logger getParentLogger()
getParentLogger in interface DriverCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.