public final class DbUtility extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
close(Connection con,
Statement stmt,
ResultSet rs)
This is a utility method which closes the given resources without throwing exceptions.
|
static void |
close(ResultSet rs)
This is a utility method which closes the given resources without throwing exceptions.
|
static void |
logException(String message,
SQLException e)
Logs an SQL exception on error level, and debug level (more detail).
|
public static void close(ResultSet rs)
rs - the ResultSet to close, may be nullpublic static void close(Connection con, Statement stmt, ResultSet rs)
con - the Connection to close, may be nullstmt - the Statement to close, may be nullrs - the ResultSet to close, may be nullpublic static void logException(String message, SQLException e)
message - the messagee - the exceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.