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.
-
embeddedShutdown()
- Shut down the system if it's an embedded system.
-
loadDriver(String)
- Load a driver given a class name.
-
loadDriverIfKnown(String)
- Find the appropriate driver and load it, given a JDBC URL.
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.
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.
embeddedShutdown
public static void embeddedShutdown()
- Shut down the system if it's an embedded system.
Class Hierarchy Index