public class JdbcUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
closeConnection(Connection
Close the given JDBC Connection and ignore any thrown exception.
|
static void |
closeResultSet(ResultSet
Close the given JDBC ResultSet and ignore any thrown exception.
|
static void |
closeStatement(Statement
Close the given JDBC Statement and ignore any thrown exception.
|
public static void closeConnection(Connectionconnection)
connection - the JDBC Connection to close (may be
null)
public static void closeStatement(Statementstatement)
statement - the JDBC Statement to close (may be
null)
public static void closeResultSet(ResultSetrs)
rs - the JDBC ResultSet to close (may be
null)