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
FieldsFields inherited from class DefaultOperationObserver
globalExceptions, queryExceptionsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnsfalse.voidCallback method invoked for each processed ResultSet.voidnextRows(Query q, ResultIterator it) Closes ResultIterator without reading its data.Methods inherited from class DefaultOperationObserver
getGlobalExceptions, getQueryExceptions, hasExceptions, nextBatchCount, nextCount, nextGeneratedRows, nextGlobalException, nextQueryException, printExceptionsModifier and TypeMethodDescriptionReturns a list of global exceptions that occured during data operation run.Returns a list of exceptions that occured during data operation run by query.booleanReturnstrueif at least one exception was registered during query execution.voidnextBatchCount(Query query, int[] resultCount) Callback method invoked after a batch update is executed.voidCallback method invoked after an updating query is executed.voidnextGeneratedRows(Query query, ResultIterator<?> keys, List<ObjectId> idsToUpdate) Closes ResultIterator without reading its data.voidCallback method invoked on exceptions that are not tied to a specific query execution, such as JDBC connection exceptions, etc.voidnextQueryException(Query query, Exception ex) Callback method invoked on exceptions that happen during an execution of a specific query.voidPrints the information about query and global exceptions.
-
Field Details
-
resultIterator
-
-
Constructor Details
-
IteratedSelectObserver
public IteratedSelectObserver()
-
-
Method Details
-
isIteratedResult
public boolean isIteratedResult()Description copied from class:DefaultOperationObserverReturnsfalse.- Specified by:
isIteratedResultin interfaceOperationHints- Overrides:
isIteratedResultin classDefaultOperationObserver
-
nextRows
Description copied from interface:OperationObserverCallback method invoked for each processed ResultSet.- Specified by:
nextRowsin interfaceOperationObserver- Overrides:
nextRowsin classDefaultOperationObserver
-
nextRows
Description 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 interfaceOperationObserver- Overrides:
nextRowsin classDefaultOperationObserver
-
getResultIterator
-