Class DbUtility
java.lang.Object
org.apache.jackrabbit.core.util.db.DbUtility
This class contains some database utility methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose(Connection con, Statement stmt, ResultSet rs) This is a utility method which closes the given resources without throwing exceptions.static voidThis is a utility method which closes the given resources without throwing exceptions.static voidlogException(String message, SQLException e) Logs an SQL exception on error level, and debug level (more detail).
-
Method Details
-
close
This is a utility method which closes the given resources without throwing exceptions. Any exceptions encountered are logged instead.- Parameters:
rs- theResultSetto close, may be null
-
close
This is a utility method which closes the given resources without throwing exceptions. Any exceptions encountered are logged instead.- Parameters:
con- theConnectionto close, may be nullstmt- theStatementto close, may be nullrs- theResultSetto close, may be null
-
logException
Logs an SQL exception on error level, and debug level (more detail).- Parameters:
message- the messagee- the exception
-