code: protected final void useResultSet( ResultSet pResultSet ) throws SQLException
    {
      boolean lFirst = true;
  
      if( !pResultSet.next() )
      {
        handleEmptyResultSet();
      }
      else
      {
        while( lFirst || pResultSet.next() )
        {
          lFirst = false;
  
          useResultSetRow( pResultSet );
        }
      }
    }
docs: iterates through the resultset and calls the callback methods.