public void close(ResultSet rs){
  try {
    Statement statement=rs.getStatement();
    rs.close();
    statement.close();
    statement=null;
    rs=null;
  }
 catch (  Exception e) {
  }
}

public void close ( ResultSet rs ) { try { Statement statement = rs . getStatement ( ) ; rs . close ( ) ; statement . close ( ) ; statement = null ; rs = null ; } catch ( Exception e ) { } }
closes the resultset and the statement that generated the resultset to avoid memory leaks in jdbc drivers - in contrast to the jdbc specs , a lot of jdbc drives don ' t clean up correctly .
