Returns the next generated entity.

@return the next generated entity.

@throws java.util.NoSuchElementException if the iteration has no more elements.
344740
@Override
	public Object next() {
		quantity--;

		try {
			return generatedClass.newInstance();
		}
		catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
903609
public void next() {
        boolean hasLeft = currentLeft != null;
        boolean hasRight = currentRight != null;

        if (!hasLeft && !hasRight) {
            throw new NoSuchElementException();
        }

        int order;
        if (hasLeft && !hasRight) {
            order = -1;
        } else if (!hasLeft) {
            order = 1;
        } else {
            order = comparator.compare(currentLeft, currentRight);
        }

        if (order < 0) {
            reportedLeft = currentLeft;
            currentLeft = nextOrNull(left);
            reportedRight = null;
        } else if (order > 0) {
            reportedLeft = null;
            reportedRight = currentRight;
            currentRight = nextOrNull(right);
        } else {
            reportedLeft = currentLeft;
            reportedRight = currentRight;
            currentLeft = nextOrNull(left);
            currentRight = nextOrNull(right);
        }
    }
543254
public String next() {
        if (entry == null) return null;
        entry = entry.next;
        return entry.element;
    }
890567
public Object nextElement()
    {
        try {
            return nextElementR();
        } catch (NoMoreElementsException e) {
            // FFDCFilter.processException(e, CLASS_NAME + ".nextElement", "109", this);
            throw new NoSuchElementException();
        } catch (EnumeratorException e) {
            // FFDCFilter.processException(e, CLASS_NAME + ".nextElement", "112", this);
            throw new RuntimeException(e.toString());
        } catch (NoSuchObjectException e) {
            // FFDCFilter.processException(e, CLASS_NAME + ".nextElement", "115", this);
            throw new IllegalStateException("Cannot access finder result outside transaction");
        } catch (RemoteException e) {
            // FFDCFilter.processException(e, CLASS_NAME + ".nextElement", "118", this);
            throw new RuntimeException(e.toString());
        }
    }
366444
@Override
    public E next()
    {
        if (!checkOnFetchSize() || scrollComplete)
        {
            throw new NoSuchElementException("Nothing to scroll further for:" + entityMetadata.getEntityClazz());
        }
        E result = (E) handler.next(entityMetadata, columns);
        if (!entityMetadata.isRelationViaJoinTable()
                && (entityMetadata.getRelationNames() == null || (entityMetadata.getRelationNames().isEmpty())))
        {
            return result;
        }
        else
        {
            return result = setRelationEntities(result, client, entityMetadata);
        }
    }
724750
@Override
  public T next() {
    Assert.isTrue(hasNext(), new NoSuchElementException("The iteration has no more elements!"));
    T value = iterators.peek().next();
    nextCalled.set(true);
    return value;
  }
1335647
public Object getNextElement() {
        Object element = null;
        while (currentIndex+1 < endIndex && element == null) {
            currentIndex++;
            element = getElement();
        }
        return element;      
    }
294783
public Token getNextToken() {
    if (nextToken == null) {
      try {
        if (!lex()) {
          throw new NoSuchElementException();
        }
      } catch (IOException e) {
        errorMessage = e.getMessage();
        hasErrors_ = true;
        throw new NoSuchElementException();
      }
    }
    return nextToken;
  }
804086
public String next() {
        if (!hasNext()) {
            throw new NoSuchElementException();
        }

        String next = this.next;
        this.next = fetchNext();

        return next;
    }
393910
public synchronized Object next() throws NoSuchElementException
    {
        try
        {
            if (!isHasCalledCheck())
            {
                hasNext();
            }
            setHasCalledCheck(false);
            if (getHasNext())
            {
                Object obj = getObjectFromResultSet();
                m_current_row++;

                // Invoke events on PersistenceBrokerAware instances and listeners
                // set target object
                if (!disableLifeCycleEvents)
                {
                    getAfterLookupEvent().setTarget(obj);
                    getBroker().fireBrokerEvent(getAfterLookupEvent());
                    getAfterLookupEvent().setTarget(null);
                }    
                return obj;
            }
            else
            {
                throw new NoSuchElementException("inner hasNext was false");
            }
        }
        catch (ResourceClosedException ex)
        {
            autoReleaseDbResources();
            throw ex;
        }
        catch (NoSuchElementException ex)
        {
            autoReleaseDbResources();
            logger.error("Error while iterate ResultSet for query " + m_queryObject, ex);
            throw new NoSuchElementException("Could not obtain next object: " + ex.getMessage());
        }
    }
692689
@Override
	public String next() {
		if (!hasNext()) {
			throw new NoSuchElementException(toString() + " ended");
		}

		current = String.format(format, generator.next());

		return current();
	}
1282442
public T next() {
		if(cachedNext == null) {
			throw new NoSuchElementException("call hasNext first!");
		}
		T o = cachedNext;
		cachedNext = null;
		return o;
	}
371528
public Next<Flow<T>> getOrCreateNext()
   {
      List<Node> nodeList = childNode.get("next");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new NextImpl<Flow<T>>(this, "next", childNode, nodeList.get(0));
      }
      return createNext();
   }
922263
@Override
    public Iterator iterate()
    {
        return new ResultIterator((CouchDBClient) persistenceDelegeator.getClient(getEntityMetadata()),
                getEntityMetadata(), persistenceDelegeator, onTranslation(getKunderaQuery().getFilterClauseQueue(),
                        getEntityMetadata()), getFetchSize() != null ? getFetchSize() : this.maxResult);
    }
151451
@Override
    public Optional<E> next() {
        if (iterator.hasNext()) {
            return Optional.of(iterator.next());
        }
        return Optional.empty();
    }
9614
public UrlSearchResult next() {
		if(cachedNext == null) {
			throw new NoSuchElementException("use hasNext!");
		}
		UrlSearchResult tmp = cachedNext;
		cachedNext = null;
		return tmp;
	}
255748
public String next() {
	if (next == null) {
	    throw new NoSuchElementException();
	}
	String s = next;
	advance();
	return s;
    }