Java SQL ResultSet Close closeResultSet(ResultSet rs)

Here you can find the source of closeResultSet(ResultSet rs)

Description

Closes the given ResultSet.

License

Open Source License

Parameter

Parameter Description
rs the given ResultSet instance to close.

Declaration

private static void closeResultSet(ResultSet rs) 

Method Source Code

//package com.java2s;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Main {
    /**/*from   www.  jav a2 s.  co  m*/
     * <p>
     * Closes the given ResultSet.
     * </p>
     * @param rs the given ResultSet instance to close.
     */
    private static void closeResultSet(ResultSet rs) {
        try {
            if (rs != null) {
                rs.close();
            }
        } catch (SQLException e) {
            // ignore.
        }
    }
}

Related

  1. closeResultAndStatement(Statement statement, ResultSet resultSet)
  2. closeResultSet(final ResultSet resultSet)
  3. closeResultSet(ResultSet resultSet)
  4. closeResultset(ResultSet resultset)
  5. closeResultSet(ResultSet rs)
  6. closeResultSet(ResultSet rs)
  7. closeResultSet(ResultSet rs)
  8. closeResultSet(ResultSet rs)
  9. closeResultSet(ResultSet rs)