Class JDBC

Object
JDBC

public final class JDBC extends Object
A set of utilities methods related to JDBC (Java Database Connectivity).
Author:
Martin Desruisseaux (IRD)
  • Method Details

    • loadDriver

      public static LogRecord loadDriver(String driver)
      Attempts to load the specified JDBC driver, if not already done. If this method has already been invoked for the specified driver, then it does nothing and returns null. Otherwise, it attempts to load the specified driver and returns a log record initialized with a message at the CONFIG level on success, or at the WARNING level on failure.
      Parameters:
      driver - The JDBC driver to load, as a fully qualified Java class name.
      Returns:
      A log message with driver information, or null if the driver was already loaded.