org.geotools.resources
Class JDBC

java.lang.Object
  extended byorg.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 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

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 . 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 if the driver was already loaded.


Copyright © GeoTools. All Rights Reserved.