|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Driver
An Interface to a JDBC Driver.
The JDBC Driver uses URLs to specify the location of specific data. URL format typically takes the form "xxxx:yyyy:SpecificData", where "xxxx:yyyy" is termed the subprotocol and is normally the same for all uses of a particular driver. "SpecificData" is a string which identifies the particular data source that the driver should use.
| Method Summary | |
|---|---|
boolean |
acceptsURL(java.lang.String url)
Returns whether the driver thinks that it can open a connection to the given URL. |
Connection |
connect(java.lang.String url,
Properties info)
Attempts to make a database connection to a datasource specified by a supplied URL. |
int |
getMajorVersion()
Gets the driver's major version number. |
int |
getMinorVersion()
Gets the driver's minor version number. |
DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
Properties info)
Gets information about possible properties for this driver. |
boolean |
jdbcCompliant()
Reports whether this driver is a genuine JDBC CompliantTM driver. |
| Method Detail |
|---|
boolean acceptsURL(java.lang.String url)
throws SQLException
url - the URL to connect to.
SQLException
Connection connect(java.lang.String url,
Properties info)
throws SQLException
url - the url to connect.info - some properties that should be used in establishing the connection. The properties consist of name/value
pairs of Strings. Normally, a connection to a database requires at least two properties - for "user" and
"password" in order to pass authentication to the database.
SQLException - if a database error occursint getMajorVersion()
int getMinorVersion()
DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
Properties info)
throws SQLException
This method is intended to provide a listing of possible properties that the user of the driver may need to supply in order to correct connect to a database. Note that the returned array of Properties may change depending on the supplied list of property values.
url - the url of the database. A using program may call this method iteratively as the property list is built up -
for example, when displaying a dialog to an end-user as part of the database login process.info -
SQLExceptionboolean jdbcCompliant()
A driver may not be fully compliant if the underlying database has limited functionality.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||