java.lang.Object
org.objectstyle.cayenne.access.util.DefaultOperationObserver
org.objectstyle.cayenne.access.util.IteratedSelectObserver
- All Implemented Interfaces:
- org.objectstyle.cayenne.access.OperationHints, org.objectstyle.cayenne.access.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 org.objectstyle.cayenne.access.util.DefaultOperationObserver |
getGlobalExceptions, getLoggingLevel, getQueryExceptions, hasExceptions, isTransactionCommitted, isTransactionRolledback, nextBatchCount, nextCount, nextGlobalException, nextQueryException, printExceptions, setLoggingLevel, transactionCommitted, transactionRolledback, useAutoCommit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resultIterator
protected org.objectstyle.cayenne.access.ResultIterator resultIterator
IteratedSelectObserver
public IteratedSelectObserver()
isIteratedResult
public boolean isIteratedResult()
- Description copied from class:
DefaultOperationObserver
- Returns
false.
- Specified by:
isIteratedResult in interface org.objectstyle.cayenne.access.OperationHints- Overrides:
isIteratedResult in class DefaultOperationObserver
nextDataRows
public void nextDataRows(org.objectstyle.cayenne.query.Query query,
java.util.List dataRows)
- Description copied from interface:
org.objectstyle.cayenne.access.OperationObserver
- Invoked after the next query results are read.
- Specified by:
nextDataRows in interface org.objectstyle.cayenne.access.OperationObserver- Overrides:
nextDataRows in class DefaultOperationObserver
nextDataRows
public void nextDataRows(org.objectstyle.cayenne.query.Query q,
org.objectstyle.cayenne.access.ResultIterator it)
- Description copied from interface:
org.objectstyle.cayenne.access.OperationObserver
- Invoked after the next query is invoked, if a query required
results to be returned as a ResultIterator. OperationObserver
is responsible for closing the ResultIterator.
- Specified by:
nextDataRows in interface org.objectstyle.cayenne.access.OperationObserver- Overrides:
nextDataRows in class DefaultOperationObserver
getResultIterator
public org.objectstyle.cayenne.access.ResultIterator getResultIterator()
throws org.objectstyle.cayenne.CayenneException