Package org.geotools.util
Class JDBC
Object
JDBC
A set of utilities methods related to JDBC (Java Database Connectivity).
- Author:
- Martin Desruisseaux (IRD)
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogRecord
loadDriver
(String driver) Attempts to load the specified JDBC driver, if not already done.
-
Method Details
-
loadDriver
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.
-