Here you can find the source of closeQuietly(Connection conn, Statement stmt, ResultSet rs)
private static void closeQuietly(Connection conn, Statement stmt, ResultSet rs)
//package com.java2s; //License from project: Apache License import java.sql.*; public class Main { private static void closeQuietly(Connection conn, Statement stmt, ResultSet rs) { if (rs != null) { try { rs.close();/*from w ww . jav a 2 s. c o m*/ } catch (SQLException e) { } } if (stmt != null) { try { stmt.close(); } catch (SQLException e) { } } if (conn != null) { try { conn.close(); } catch (SQLException e) { } } } }