public final class DbUtility
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
close(java.sql.Connection con,
java.sql.Statement stmt,
java.sql.ResultSet rs)
This is a utility method which closes the given resources without throwing exceptions.
|
static void |
close(java.sql.ResultSet rs)
This is a utility method which closes the given resources without throwing exceptions.
|
static void |
logException(java.lang.String message,
java.sql.SQLException e)
Logs an SQL exception on error level, and debug level (more detail).
|
public static void close(java.sql.ResultSet rs)
rs
- the ResultSet
to close, may be nullpublic static void close(java.sql.Connection con, java.sql.Statement stmt, java.sql.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(java.lang.String message, java.sql.SQLException e)
message
- the messagee
- the exceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved