code: @Override
  	public boolean hasNext()
  	{
  		try
  		{
  			
  		
  			if(this.resultSet == null)
  				return false;
  			else if(!this.resultSet.next())
  			{
  				this.dispose();
  				return false;
  			}
  			return true;
  		}
  		catch (SQLException e)
  		{
  			dispose();
  
  			throw new CommunicationException(e.getMessage(),e);
  		}
  			
  	}
docs: --------------------------------------------------------