public class IteratorCountDecorator<E> extends Object implements org.hibernate.engine.HibernateIterator
IteratorCountDecorator decorates a HibernateIterator and
counts the fetched elements.| Constructor and Description |
|---|
IteratorCountDecorator(Iterator<E> delegate)
Decorate the provided
Iterator. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCount()
Get the count of elements that have been returned by this iterator.
|
boolean |
hasNext() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic int getCount()
public void close()
throws org.hibernate.JDBCException
close in interface Closeableclose in interface AutoCloseableclose in interface org.hibernate.engine.HibernateIteratororg.hibernate.JDBCExceptionCopyright © 2026. All rights reserved.