code: public boolean hasNext()
  	{
  		try {
  			if (result != null && result.next()) {
  				return true;
  			}
  
  			if (this.statement != null) {
  				this.statement.close();
  			}
  			if (this.result != null) {
  				this.result.close();
  			}
  
  			return query();
  
  		}
  		catch (SQLException e) {
  			throw new RuntimeException(e);
  		}
  	}
docs: Returns TRUE if another revision information is available.
  
  @return TRUE | FALSE