Package org.geotools.util
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LogRecord
loadDriver(String driver)
Attempts to load the specified JDBC driver, if not already done.
-
-
-
Method Detail
-
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 returnsnull
. Otherwise, it attempts to load the specified driver and returns a log record initialized with a message at theCONFIG
level on success, or at theWARNING
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.
-
-