Package nl.vpro.hibernate
Class ScrollableResultsIterator<T>
- java.lang.Object
-
- nl.vpro.hibernate.ScrollableResultsIterator<T>
-
- All Implemented Interfaces:
AutoCloseable
,Iterator<T>
,nl.vpro.util.CloseableIterator<T>
- Direct Known Subclasses:
CriteriaIterator
,QueryIterator
public class ScrollableResultsIterator<T> extends Object implements nl.vpro.util.CloseableIterator<T>
Executes aCriteria
and makes the result accessible as aCloseableIterator
.- Since:
- 1.63
- Author:
- Michiel Meeuwissen
-
-
Constructor Summary
Constructors Constructor Description ScrollableResultsIterator(org.hibernate.ScrollableResults r, 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()
String
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
-
-
-
-
Method Detail
-
findNext
protected void findNext()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-