Class QueryIterator<T>

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.util.Iterator<T>, nl.vpro.util.CloseableIterator<T>

    public class QueryIterator<T>
    extends ScrollableResultsIterator<T>
    Executes a Criteria and makes the result accessible as a CloseableIterator.
    Since:
    1.63
    Author:
    Michiel Meeuwissen
    • Constructor Summary

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

      • 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

      • QueryIterator

        public QueryIterator​(org.hibernate.Query criteria,
                             java.util.function.Function<org.hibernate.ScrollableResults,​T> adapter)