public static ResultSet close ( ResultSet rs , Logger logExceptionTo , Object name ) { if ( rs == null ) return null ; try { rs . close ( ) ; } catch ( SQLException e ) { ( logExceptionTo == null ? logger : logExceptionTo ) . warn ( "SQLException closing " + ( name == null ? rs . toString ( ) : name ) + " ignored." , e ) ; } return null ; }
Handle closing a result set .