Class Hierarchy    Previous  Next  Index

Class COM.cloudscape.util.DriverUtil

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

public class DriverUtil
extends java.lang.Object
Copyright © 1998-2000, Informix Software, Inc. All rights reserved.

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


Variable Index

 o CORE_NAG_MESSAGE
 

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.
 o translateRmiURL(String)
 

Field Detail

 o CORE_NAG_MESSAGE
public static final java.lang.String CORE_NAG_MESSAGE

Method Detail

 o loadDriverIfKnown
public static void loadDriverIfKnown(java.lang.String jdbcProtocol) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.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:
java.lang.ClassNotFoundException - if unable to locate class for driver.
java.lang.InstantiationException - if unable to create an instance.
java.lang.IllegalAccessException - if driver class constructor not visible.
 o loadDriver
public static void loadDriver(java.lang.String driverClass) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
          Load a driver given a class name.
Throws:
java.lang.ClassNotFoundException - if unable to locate class for driver.
java.lang.InstantiationException - if unable to create an instance.
java.lang.IllegalAccessException - if driver class constructor not visible.
 o embeddedShutdown
public static void embeddedShutdown()
          Shut down the system if it's an embedded system.
 o translateRmiURL
public static java.lang.String translateRmiURL(java.lang.String url) throws java.sql.SQLException

  Class Hierarchy    Previous  Next  Index