Here you can find the source of closeResultSet(ResultSet rs)
Closes the given ResultSet.
Parameter | Description |
---|---|
rs | the given ResultSet instance to close. |
private static void closeResultSet(ResultSet rs)
//package com.java2s; import java.sql.ResultSet; import java.sql.SQLException; public class Main { /**/*from www. jav a2 s. co m*/ * <p> * Closes the given ResultSet. * </p> * @param rs the given ResultSet instance to close. */ private static void closeResultSet(ResultSet rs) { try { if (rs != null) { rs.close(); } } catch (SQLException e) { // ignore. } } }