code: public boolean hasNext() {
          if(_rs == null)
              return false;
  
          if(_primed)
              return true;
  
          try {
              _primed = _rs.next();
              return _primed;
          }
          catch(SQLException sql) {
              String msg = "An exception occurred reading from the Iterator.  Cause: " + sql;
              LOGGER.error(msg, sql);
              throw new IllegalStateException(msg, sql);
          }
      }
docs: Check for a subsequent item in the ResultSet.
  
  @return <code>true</code> if there is another element; <code>false</code> otherwise
  @throws IllegalStateException when a {@link SQLException} occurs advancing the ResultSet