Constructor and Description |
---|
JDBC() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsURL(String url) |
Connection |
connect(String url,
Properties info) |
static Connection |
createConnection(String url,
Properties prop)
Creates a new database connection to a given URL.
|
int |
getMajorVersion() |
int |
getMinorVersion() |
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info) |
static boolean |
isValidURL(String url)
Validates a URL
|
boolean |
jdbcCompliant() |
public static final String PREFIX
public int getMajorVersion()
getMajorVersion
in interface Driver
Driver.getMajorVersion()
public int getMinorVersion()
getMinorVersion
in interface Driver
Driver.getMinorVersion()
public boolean jdbcCompliant()
jdbcCompliant
in interface Driver
Driver.jdbcCompliant()
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface Driver
SQLFeatureNotSupportedException
public boolean acceptsURL(String url)
acceptsURL
in interface Driver
Driver.acceptsURL(java.lang.String)
public static boolean isValidURL(String url)
url
- public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo
in interface Driver
SQLException
Driver.getPropertyInfo(java.lang.String, java.util.Properties)
public Connection connect(String url, Properties info) throws SQLException
connect
in interface Driver
SQLException
Driver.connect(java.lang.String, java.util.Properties)
public static Connection createConnection(String url, Properties prop) throws SQLException
url
- the URLprop
- the propertiesSQLException
Driver.connect(java.lang.String, java.util.Properties)
Copyright © 2016. All rights reserved.