Class Hierarchy        Index

Class COM.cloudscape.util.DriverUtil

java.lang.Object
   |
   +----COM.cloudscape.util.DriverUtil

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

This contains useful utility methods for loading the right driver for a given Cloudscape URL.


Method Index

 o embeddedShutdown()
Shut down the system if it's an embedded system.
 o loadDriver(String)
Load a driver given a class name.
 o loadDriverIfKnown(String)
Find the appropriate driver and load it, given a JDBC URL.

Methods

 o loadDriverIfKnown
 public static void loadDriverIfKnown(String jdbcProtocol) throws ClassNotFoundException, InstantiationException, IllegalAccessException
Find the appropriate driver and load it, given a JDBC URL. No action if no driver known for a given URL.

Parameters:
jdbcProtocol - the protocol to try.
Throws: ClassNotFoundException
if unable to locate class for driver.
Throws: InstantiationException
if unable to create an instance.
Throws: IllegalAccessException
if driver class constructor not visible.
 o loadDriver
 public static void loadDriver(String driverClass) throws ClassNotFoundException, InstantiationException, IllegalAccessException
Load a driver given a class name.

Throws: ClassNotFoundException
if unable to locate class for driver.
Throws: InstantiationException
if unable to create an instance.
Throws: IllegalAccessException
if driver class constructor not visible.
 o embeddedShutdown
 public static void embeddedShutdown()
Shut down the system if it's an embedded system.


  Class Hierarchy        Index