Class ScrollableResultsIterator<T>

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.util.Iterator<T>, nl.vpro.util.CloseableIterator<T>
    Direct Known Subclasses:
    CriteriaIterator, QueryIterator

    public class ScrollableResultsIterator<T>
    extends java.lang.Object
    implements nl.vpro.util.CloseableIterator<T>
    Executes a Criteria and makes the result accessible as a CloseableIterator.
    Since:
    1.63
    Author:
    Michiel Meeuwissen
    • Constructor Summary

      Constructors 
      Constructor Description
      ScrollableResultsIterator​(org.hibernate.ScrollableResults r, java.util.function.Function<org.hibernate.ScrollableResults,​T> adapter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void findNext()  
      boolean hasNext()  
      T next()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface nl.vpro.util.CloseableIterator

        peeking, stream
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Constructor Detail

      • ScrollableResultsIterator

        public ScrollableResultsIterator​(org.hibernate.ScrollableResults r,
                                         java.util.function.Function<org.hibernate.ScrollableResults,​T> adapter)
    • Method Detail

      • hasNext

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

        public T next()
        Specified by:
        next in interface java.util.Iterator<T>
      • findNext

        protected void findNext()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object