public static void closeResultSet ( ResultSet rs ) { if ( rs != null ) { try { rs . close ( ) ; } catch ( Exception e ) { log . warn ( "Exception when closing database result set." , e ) ; } } }
Closes database ResultSet No exception will be thrown even if occurred during closing instead the exception will be logged at warning level .