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 LogRecordloadDriver(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 theCONFIGlevel on success, or at theWARNINGlevel on failure.- Parameters:
driver- The JDBC driver to load, as a fully qualified Java class name.- Returns:
- A log message with driver information, or
nullif the driver was already loaded.
-