Class TopiaDAOImpl.FindAllIterator<E extends TopiaEntity,​R>

java.lang.Object
org.nuiton.topia.persistence.TopiaDAOImpl.FindAllIterator<E,​R>
All Implemented Interfaces:
java.util.Iterator<R>
Enclosing class:
TopiaDAOImpl<E extends TopiaEntity>

public static class TopiaDAOImpl.FindAllIterator<E extends TopiaEntity,​R>
extends java.lang.Object
implements java.util.Iterator<R>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected TopiaDAO<E> dao  
    protected java.util.Iterator<R> data  
    protected java.lang.String hql  
    protected TopiaPagerBean pager  
    protected java.lang.Object[] params  
    protected java.lang.Class<R> type  
  • Constructor Summary

    Constructors 
    Constructor Description
    FindAllIterator​(TopiaDAO<E> dao, java.lang.Class<R> type, int batchSize, java.lang.String hql, java.lang.Object... params)  
  • Method Summary

    Modifier and Type Method Description
    boolean hasNext()  
    R next()  
    void remove()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    forEachRemaining
  • Field Details

  • Constructor Details

    • FindAllIterator

      public FindAllIterator​(TopiaDAO<E> dao, java.lang.Class<R> type, int batchSize, java.lang.String hql, java.lang.Object... params)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface java.util.Iterator<E extends TopiaEntity>
    • next

      public R next()
      Specified by:
      next in interface java.util.Iterator<E extends TopiaEntity>
    • remove

      public void remove()
      Specified by:
      remove in interface java.util.Iterator<E extends TopiaEntity>