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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resultIterator
protected ResultIterator resultIterator
IteratedSelectObserver
public IteratedSelectObserver()
isIteratedResult
public boolean isIteratedResult()
- Description copied from class:
DefaultOperationObserver
- Returns
false
.
- Specified by:
isIteratedResult
in interface OperationHints
- Overrides:
isIteratedResult
in class DefaultOperationObserver
nextRows
public void nextRows(Query query,
List<?> dataRows)
- Description copied from interface:
OperationObserver
- Callback method invoked for each processed ResultSet.
- Specified by:
nextRows
in interface OperationObserver
- Overrides:
nextRows
in class DefaultOperationObserver
nextRows
public void nextRows(Query q,
ResultIterator it)
- 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 interface OperationObserver
- Overrides:
nextRows
in class DefaultOperationObserver
getResultIterator
public ResultIterator getResultIterator()
throws CayenneException
- Throws:
CayenneException
Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.