Class JDBCUtils
java.lang.Object
org.datanucleus.store.rdbms.JDBCUtils
Convenience helper for JDBC.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringMethod to return the "subprotocol" for a JDBC URL.static voidlogWarnings(ResultSet rs) Utility to log all warning for the specified ResultSet.static voidlogWarnings(SQLWarning warning) Logs SQL warnings to the common log.static voidlogWarnings(Statement stmt) Utility to log all warning for the specified Statement.
-
Constructor Details
-
JDBCUtils
private JDBCUtils()
-
-
Method Details
-
getSubprotocolForURL
-
logWarnings
Logs SQL warnings to the common log. Should be called after any operation on a JDBC Statement or ResultSet object.- Parameters:
warning- the value returned from getWarnings().
-
logWarnings
Utility to log all warning for the specified Statement.- Parameters:
stmt- The statement
-
logWarnings
Utility to log all warning for the specified ResultSet.- Parameters:
rs- The ResultSet
-