|
Mimer JDBC Engine 2.12 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.mimer.jdbc.Driver
| Method Summary | |
boolean |
acceptsURL(String url)
Returns true if the supplied url specifies the mimer subprotocol. |
Connection |
connect(String url,
Properties info)
Attempts to make a database connection to the given URL. |
int |
getMajorVersion()
The JDBC major version of the driver. |
int |
getMinorVersion()
The JDBC minor version of the driver. |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info)
Parses an url and creates a property list. |
boolean |
jdbcCompliant()
Mimer is JDBC compliant and will always return true. |
static void |
main(String[] arg)
The main routine helps the customer with finding out things about our JDBC driver. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public boolean acceptsURL(String url)
throws SQLException
acceptsURL in interface Driverurl - the URL of the database
SQLException - if a database access error occurs
public Connection connect(String url,
Properties info)
throws SQLException
The driver raises an SQLException if it is the right driver to connect to the given URL, but has trouble connecting to the database.
The java.util.Properties argument can be used to passed arbitrary string tag/value pairs as connection arguments. The following properties may be used. Contents of the url override any specified properties.
| Property | Description |
|---|---|
| serverName | The name of the host where the Mimer server resides. Default is localhost. |
| portNumber | The IP port number of the server on the host. Default is 1360. |
| databaseName | The Mimer database name. |
| user | The user name. |
| password | The password. |
The syntax of an URL is:
jdbc:mimer:[//net_loc][/database][?proplist]net_loc = [user[:password]@]host[:port]proplist = property=value[&proplist]
see RFC 1738
connect in interface Driverurl - the URL of the database to which to connectinfo - a list of arbitrary string tag/value pairs as
connection arguments. Normally at least a "user" and
"password" property should be included.
Connection object that represents a
connection to the URL
SQLException - if a database access error occurspublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
Mimer JDBC versions 1.12, 2.12 and 3.12 will implement the same database features within the scope of their respective JDBC specifications.
getMinorVersion in interface Driver
public DriverPropertyInfo[] getPropertyInfo(String url,
Properties info)
throws SQLException
getPropertyInfo in interface Driverurl - the URL of the databaseinfo - Starting property list.
SQLException - if a database access error occurspublic boolean jdbcCompliant()
true.
jdbcCompliant in interface Driverpublic static void main(String[] arg)
java com.mimer.jdbc.Driver options
where options include:
-version Display driver version
-sysprop Display all system properties
-errors List all JDBC error codes
-ping url Test the database at the specified url
|
Mimer JDBC Engine 2.12 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||