org.geotools.resources
Class JDBC

java.lang.Object
  extended by org.geotools.resources.JDBC

public final class JDBC
extends java.lang.Object

A set of utilities methods related to JDBC (Java Database Connectivity).

Version:
$Id: JDBC.java 31445 2008-09-07 18:14:23Z desruisseaux $
Author:
Martin Desruisseaux (IRD)

Method Summary
static java.util.logging.LogRecord loadDriver(java.lang.String driver)
          Attempts to load the specified JDBC driver, if not already done.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadDriver

public static java.util.logging.LogRecord loadDriver(java.lang.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.


Copyright © 1996-2010 Geotools. All Rights Reserved.