Java SQL ResultSet Close closeEL(ResultSet rs)

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

Description

close EL

License

LGPL

Declaration

public static void closeEL(ResultSet rs) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.sql.ResultSet;

import java.sql.Statement;

public class Main {
    public static void closeEL(Statement stat) {
        if (stat != null) {
            try {
                stat.close();/*w  ww.  ja v a  2  s  . c om*/
            } catch (Throwable t) {
            }
        }
    }

    public static void closeEL(ResultSet rs) {
        if (rs != null) {
            try {
                rs.close();
            } catch (Throwable t) {
            }
        }
    }
}

Related

  1. closeAllConnections(PreparedStatement preparedStatement, Connection connection, ResultSet resultSet)
  2. closeConnections(Connection conn, Statement st, ResultSet res)
  3. closeCursor(Statement stmt, ResultSet rows)
  4. closeDatabaseResources(PreparedStatement prepStmt, ResultSet rs, Connection con)
  5. closeDbObjects(Connection conn, Statement stmt, ResultSet res)
  6. closeQuietly(Connection conn, Statement stmt, ResultSet rs)
  7. closeQuietly(Connection conn, Statement stmt, ResultSet rs)
  8. closeQuietly(Connection conn, Statement stmt, ResultSet rs)
  9. closeQuietly(final ResultSet resultSet)