Java Utililty Methods SQL ResultSet Close

List of utility methods to do SQL ResultSet Close

Description

The list of methods to do SQL ResultSet Close are organized into topic(s).

Method

voidcloseResultSetAndStatement(Statement statement, ResultSet resultSet)
close Result Set And Statement
if (statement != null) {
    statement.close();
if (resultSet != null) {
    resultSet.close();
voidcloseResultSets(List results)
Close a set of java.sql.ResultSet objects, ignoring any errors
for (ResultSet result : results) {
    if (null != result) {
        try {
            result.close();
        } catch (SQLException e) {
voidcloseResultSets(List resultSets)
Attempts to close a list of SQL result sets.
if (resultSets != null) {
    for (ResultSet resultSet : resultSets) {
        closeResultSet(resultSet);
voidcloseRS(final ResultSet rs)
close RS
try {
    if (rs != null) {
        rs.close();
} catch (final SQLException ignore) {