Package org.apache.cayenne
Class ResultBatchIterator<T>
java.lang.Object
org.apache.cayenne.ResultBatchIterator<T>
- All Implemented Interfaces:
- AutoCloseable,- Iterable<List<T>>,- Iterator<List<T>>
public class ResultBatchIterator<T> extends Object implements Iterable<List<T>>, Iterator<List<T>>, AutoCloseable
Defines API of a batch iterator over the ResultIterator returned as a result of
 Select queries execution. Usually a ResultBatchIterator is supported by an open
 java.sql.ResultSet, therefore ResultBatchIterator must be explicitly closed when
 the user is done working with them.
- Since:
- 4.0
- 
Constructor SummaryConstructors Constructor Description ResultBatchIterator(ResultIterator<T> delegate, int size)
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface java.util.IteratorforEachRemaining
- 
Constructor Details- 
ResultBatchIterator
 
- 
- 
Method Details- 
iterator
- 
hasNextpublic boolean hasNext()
- 
next
- 
removepublic void remove()
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
getBatchSizepublic int getBatchSize()
 
-