Package nl.vpro.hibernate
Class QueryIterator<T>
- java.lang.Object
-
- nl.vpro.hibernate.ScrollableResultsIterator<T>
-
- nl.vpro.hibernate.QueryIterator<T>
-
- All Implemented Interfaces:
AutoCloseable
,Iterator<T>
,nl.vpro.util.CloseableIterator<T>
public class QueryIterator<T> extends ScrollableResultsIterator<T>
Executes aCriteria
and makes the result accessible as aCloseableIterator
.- Since:
- 1.63
- Author:
- Michiel Meeuwissen
-
-
Constructor Summary
Constructors Constructor Description QueryIterator(org.hibernate.Query criteria, Function<org.hibernate.ScrollableResults,T> adapter)
-
Method Summary
-
Methods inherited from class nl.vpro.hibernate.ScrollableResultsIterator
close, findNext, hasNext, next, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-