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
OperationObserver that is used to track the execution of SelectQueries with
results returned as ResultIterator.
-
Field Summary
Fields inherited from class org.apache.cayenne.access.util.DefaultOperationObserver
globalExceptions, queryExceptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnsfalse
.void
Callback method invoked for each processed ResultSet.void
nextRows
(Query q, ResultIterator it) Closes ResultIterator without reading its data.Methods inherited from class org.apache.cayenne.access.util.DefaultOperationObserver
getGlobalExceptions, getQueryExceptions, hasExceptions, nextBatchCount, nextCount, nextGeneratedRows, nextGlobalException, nextQueryException, printExceptions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cayenne.access.OperationObserver
nextGeneratedRows
-
Field Details
-
resultIterator
-
-
Constructor Details
-
IteratedSelectObserver
public IteratedSelectObserver()
-
-
Method Details
-
isIteratedResult
public boolean isIteratedResult()Description copied from class:DefaultOperationObserver
Returnsfalse
.- Specified by:
isIteratedResult
in interfaceOperationHints
- Overrides:
isIteratedResult
in classDefaultOperationObserver
-
nextRows
Description copied from interface:OperationObserver
Callback method invoked for each processed ResultSet.- Specified by:
nextRows
in interfaceOperationObserver
- Overrides:
nextRows
in classDefaultOperationObserver
-
nextRows
Description copied from class:DefaultOperationObserver
Closes ResultIterator without reading its data. If you implement a custom subclass, only call super if closing the iterator is what you need.- Specified by:
nextRows
in interfaceOperationObserver
- Overrides:
nextRows
in classDefaultOperationObserver
-
getResultIterator
-