Class Hierarchy        Index

Class COM.cloudscape.core.RmiJdbcDriver

java.lang.Object
   |
   +----COM.cloudscape.core.RmiJdbcDriver

public class RmiJdbcDriver
extends Object
implements Driver
Copyright © 1998-1999, Cloudscape, Inc. All rights reserved.

This driver connects to a remote COM.cloudscape.core.JDBCDriver via a RMI jdbc driver that was written by GIE Dyade (Groupe BULL / INRIA Research Center) 1997

To connect to a cloudscape database using the RMI Driver directly, one could use URL of the form
jdbc:rmi:[//rmiHostName[:port]/][cloudscape jdbc-url]
e.g., jdbc:rmi:jdbc:cloudscape:localdb or
jdbc:rmi://remoteMachine:1099/jdbc:cloudscape:remoteDB
That style of connection is still supported for backwards compatibility.

However, an equivalent way to connect to a cloudscape database using rmi is to use this RmiJdbcDriver. To use it, one uses URL of the form
jdbc:cloudscape:rmi:[//host[:port]/]dbname[;cloudscapeAttributes]*
e.g., jdbc:cloudscape:rmi:localdb or
jdbc:cloudscape:rmi://remoteMachine:1099/remoteDB

This driver is for the sole purpose of having a more uniform URL protocol for all cloudscape connections. The administration of the RMI server itself (RJJdbcServer) is unchanged.


Variable Index

 o RMI_PROTOCOL

Constructor Index

 o RmiJdbcDriver()

Method Index

 o acceptsURL(String)
Accept anything that starts with jdbc:cloudscape:rmi:
 o connect(String, Properties)
Connect to the URL if possible
 o getMajorVersion()
Returns the driver's major version number.
 o getMinorVersion()
Returns the driver's minor version number.
 o getPropertyInfo(String, Properties)
Returns an array of DriverPropertyInfo objects describing possible properties.
 o jdbcCompliant()
Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver.

Variables

 o RMI_PROTOCOL
 public static final String RMI_PROTOCOL

Constructors

 o RmiJdbcDriver
 public RmiJdbcDriver()

Methods

 o acceptsURL
 public boolean acceptsURL(String url)
Accept anything that starts with jdbc:cloudscape:rmi:

See Also:
Driver
 o connect
 public Connection connect(String url,
                           Properties info) throws SQLException
Connect to the URL if possible

Throws: SQLException
illegal url or problem with connectiong
See Also:
Driver
 o getPropertyInfo
 public DriverPropertyInfo[] getPropertyInfo(String url,
                                             Properties info) throws SQLException
Returns an array of DriverPropertyInfo objects describing possible properties.

Throws: SQLException
if a database-access error occurs.
See Also:
Driver
 o getMajorVersion
 public int getMajorVersion()
Returns the driver's major version number.

See Also:
Driver
 o getMinorVersion
 public int getMinorVersion()
Returns the driver's minor version number.

See Also:
Driver
 o jdbcCompliant
 public boolean jdbcCompliant()
Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver.

See Also:
Driver

  Class Hierarchy        Index