Package org.apache.cayenne.access.util
Class IteratedSelectObserver
java.lang.Object
org.apache.cayenne.access.util.DefaultOperationObserver
org.apache.cayenne.access.util.IteratedSelectObserver
- All Implemented Interfaces:
- OperationHints,- OperationObserver
public class IteratedSelectObserver extends DefaultOperationObserver
OperationObserver that is used to track the execution of SelectQueries with
 results returned as ResultIterator.
- 
Field SummaryFields Modifier and Type Field Description protected ResultIteratorresultIteratorFields inherited from class org.apache.cayenne.access.util.DefaultOperationObserverglobalExceptions, queryExceptions
- 
Constructor SummaryConstructors Constructor Description IteratedSelectObserver()
- 
Method SummaryModifier and Type Method Description ResultIteratorgetResultIterator()booleanisIteratedResult()Returnsfalse.voidnextRows(Query query, List<?> dataRows)Callback method invoked for each processed ResultSet.voidnextRows(Query q, ResultIterator it)Closes ResultIterator without reading its data.Methods inherited from class org.apache.cayenne.access.util.DefaultOperationObservergetGlobalExceptions, getQueryExceptions, hasExceptions, nextBatchCount, nextCount, nextGeneratedRows, nextGlobalException, nextQueryException, printExceptions
- 
Field Details- 
resultIterator
 
- 
- 
Constructor Details- 
IteratedSelectObserverpublic IteratedSelectObserver()
 
- 
- 
Method Details- 
isIteratedResultpublic boolean isIteratedResult()Description copied from class:DefaultOperationObserverReturnsfalse.- Specified by:
- isIteratedResultin interface- OperationHints
- Overrides:
- isIteratedResultin class- DefaultOperationObserver
 
- 
nextRowsDescription copied from interface:OperationObserverCallback method invoked for each processed ResultSet.- Specified by:
- nextRowsin interface- OperationObserver
- Overrides:
- nextRowsin class- DefaultOperationObserver
 
- 
nextRowsDescription copied from class:DefaultOperationObserverCloses ResultIterator without reading its data. If you implement a custom subclass, only call super if closing the iterator is what you need.- Specified by:
- nextRowsin interface- OperationObserver
- Overrides:
- nextRowsin class- DefaultOperationObserver
 
- 
getResultIterator
 
-