Class Hierarchy        Index

Class COM.cloudscape.core.JDBCDriver

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

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

A class that can be used to boot a Cloudscape system.

The correct code to load a Cloudscape system using this driver is (with approriate try/catch blocks):

Class.forName("COM.cloudscape.core.JDBCDriver").newInstance();
When loaded in this way, the class boots the actual JDBC driver indirectly. JavaSoft recommends the Class.ForName method without the .newInstance() method call, but adding the newInstance() guarantees that the Cloudscape system is booted on all platforms.

Any initial error messages are placed in the PrintStream supplied by the DriverManager. If the PrintStream is null error messages are sent to System.err. Once the Cloudscape system has set up an error logging facility (by default to cloudscape.LOG) all subsequent messages are sent to it.

By convention, the class used in the Class.forName() method to boot a JDBC driver implements java.sql.Driver. This class is not the actual JDBC driver that gets registered with the Driver Manager. It proxies requests to the registered Cloudscape JDBC driver.

See Also:
DriverManager, getLogStream, Driver, SQLException

Constructor Index

 o JDBCDriver()

Method Index

 o acceptsURL(String)
Accept anything that starts with jdbc:cloudscape
 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 main(String[])

Constructors

 o JDBCDriver
 public JDBCDriver()

Methods

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

Throws: SQLException
if a database-access error occurs.
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
 o main
 public static void main(String args[])

  Class Hierarchy        Index