Code example for ResultSet

Methods: close

0
 
 
    public static void close(ResultSet rs) {
        if (rs != null) {
            try { 
                rs.close();
            } 
            catch (SQLException ex) {
                log.error("Close ResultSet failed", ex);
            } 
        } 
    } 
 
 
    public static void close(Connection conn) {
        if (conn != null) {
            try { 
                conn.close();
            } 
            catch (SQLException ex) {
                log.error("Close connection failed", ex);