Java SQL ResultSet Close closeAll(ResultSet rs1, Statement stmt1)

Here you can find the source of closeAll(ResultSet rs1, Statement stmt1)

Description

close All

License

Open Source License

Declaration

protected static void closeAll(ResultSet rs1, Statement stmt1) throws SQLException 

Method Source Code

//package com.java2s;

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

public class Main {
    protected static void closeAll(ResultSet rs1, Statement stmt1) throws SQLException {
        if (rs1 != null) {
            rs1.close();/*from   www  .j  ava2 s .  c  om*/
        }
        if (stmt1 != null) {
            stmt1.close();
        }
    }
}

Related

  1. closeAll(Connection conn, Statement stmt, ResultSet rs)
  2. closeAll(Connection conn, Statement stmt, ResultSet rs)
  3. closeAll(ResultSet rs)
  4. closeAll(ResultSet rs, Statement st, Connection conn)
  5. closeAll(ResultSet rs, Statement stmt, Connection conn)
  6. closeAll(ResultSet rset, Statement stmt, Connection conn)
  7. closeAllConnections(PreparedStatement preparedStatement, Connection connection, ResultSet resultSet)
  8. closeConnections(Connection conn, Statement st, ResultSet res)
  9. closeCursor(Statement stmt, ResultSet rows)