Here you can find the source of closeResultset(ResultSet resultset)
Parameter | Description |
---|---|
resultset | ResultSet |
public static void closeResultset(ResultSet resultset)
//package com.java2s; /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import java.sql.*; public class Main { /**//from w w w.j a v a 2 s . c o m * * @param resultset ResultSet */ public static void closeResultset(ResultSet resultset) { try { if (resultset != null) { resultset.close(); } } catch (SQLException e1) { } catch (Throwable ex) { } } }