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.
CORE_NAG_MESSAGE-
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.
translateRmiURL(String)
-
CORE_NAG_MESSAGE
public static final java.lang.String CORE_NAG_MESSAGE
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.
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.
embeddedShutdown
public static void embeddedShutdown()
Shut down the system if it's an embedded system.
translateRmiURL
public static java.lang.String translateRmiURL(java.lang.String url) throws java.sql.SQLException
Class Hierarchy Previous Next Index