Class Hierarchy    Previous  Next  Index

Class COM.cloudscape.core.RmiJdbcDriver

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

public class RmiJdbcDriver
extends java.lang.Object
implements java.sql.Driver
Copyright © 1998-2000, Informix Software, 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 rjrmi_protocol
 
 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.
 o translate(String)
 

Field Detail

 o RMI_PROTOCOL
public static final java.lang.String RMI_PROTOCOL
 o rjrmi_protocol
public static final java.lang.String rjrmi_protocol

Constructor Detail

 o RmiJdbcDriver
public RmiJdbcDriver()

Method Detail

 o translate
public java.lang.String translate(java.lang.String url) throws java.sql.SQLException
 o acceptsURL
public boolean acceptsURL(java.lang.String url)
          Accept anything that starts with jdbc:cloudscape:rmi:
See Also:
java.sql.Driver
 o connect
public java.sql.Connection connect(java.lang.String url,
                          java.util.Properties info) throws java.sql.SQLException
          Connect to the URL if possible
Throws:
java.sql.SQLException - illegal url or problem with connectiong
See Also:
java.sql.Driver
 o getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
                                            java.util.Properties info) throws java.sql.SQLException
          Returns an array of DriverPropertyInfo objects describing possible properties.
Throws:
java.sql.SQLException - if a database-access error occurs.
See Also:
java.sql.Driver
 o getMajorVersion
public int getMajorVersion()
          Returns the driver's major version number.
See Also:
java.sql.Driver
 o getMinorVersion
public int getMinorVersion()
          Returns the driver's minor version number.
See Also:
java.sql.Driver
 o jdbcCompliant
public boolean jdbcCompliant()
          Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver.
See Also:
java.sql.Driver

  Class Hierarchy    Previous  Next  Index