Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
JDBC() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsURL(java.lang.String url) |
Connection |
connect(java.lang.String url,
Hashtable info) |
static Connection |
createConnection(java.lang.String url,
Hashtable prop)
Creates a new database connection to a given URL.
|
int |
getMajorVersion() |
int |
getMinorVersion() |
DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
Hashtable info) |
static boolean |
isValidURL(java.lang.String url)
Validates a URL
|
boolean |
jdbcCompliant() |
public static final java.lang.String PREFIX
public int getMajorVersion()
getMajorVersion
in interface Driver
Driver.getMajorVersion()
public int getMinorVersion()
getMinorVersion
in interface Driver
Driver.getMinorVersion()
public boolean jdbcCompliant()
Driver.jdbcCompliant()
public boolean acceptsURL(java.lang.String url)
acceptsURL
in interface Driver
Driver.acceptsURL(java.lang.String)
public static boolean isValidURL(java.lang.String url)
url
- public DriverPropertyInfo[] getPropertyInfo(java.lang.String url, Hashtable info) throws java.sql.SQLException
java.sql.SQLException
Driver.getPropertyInfo(java.lang.String, java.util.Properties)
public Connection connect(java.lang.String url, Hashtable info) throws java.sql.SQLException
public static Connection createConnection(java.lang.String url, Hashtable prop) throws java.sql.SQLException
url
- the URLprop
- the propertiesjava.sql.SQLException
Driver.connect(java.lang.String, java.util.Properties)