public void eachRow(Closure closure) throws SQLException {
  while (next()) {
    closure.call(this);
  }
}

public void eachRow ( Closure closure ) throws SQLException { while ( next ( ) ) { closure . call ( this ) ; } }
call the closure once for each row in the result set .
