Package nl.vpro.hibernate
Class CriteriaIterator<T>
java.lang.Object
nl.vpro.hibernate.ScrollableResultsIterator<T>
nl.vpro.hibernate.CriteriaIterator<T>
- All Implemented Interfaces:
AutoCloseable
,Iterator<T>
,nl.vpro.util.CloseableIterator<T>
Executes a
Criteria
and makes the result accessible as a CloseableIterator
.- Since:
- 1.63
- Author:
- Michiel Meeuwissen
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCriteriaIterator
(org.hibernate.Criteria criteria, Function<org.hibernate.ScrollableResults, T> adapter) -
Method Summary
Methods inherited from class nl.vpro.hibernate.ScrollableResultsIterator
close, findNext, hasNext, next
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 Details
-
CriteriaIterator
-
-
Method Details
-
toString
- Overrides:
toString
in classScrollableResultsIterator<T>
-
getCriteria
public org.hibernate.Criteria getCriteria()
-