Package org.apache.cayenne.access
Interface OperationObserver
- All Superinterfaces:
- OperationHints
- All Known Implementing Classes:
- DefaultOperationObserver,- DoNothingOperationObserver,- IteratedSelectObserver
Defines a set of callback methods that allow 
QueryEngine to pass back query
 results and notify caller about exceptions.- 
Method SummaryModifier and TypeMethodDescriptionvoidnextBatchCount(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) Callback method invoked after each batch of generated values is read during an update.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.voidCallback method invoked for each processed ResultSet.voidnextRows(Query q, ResultIterator<?> it) Callback method invoked for each opened ResultIterator.Methods inherited from interface org.apache.cayenne.access.OperationHintsisIteratedResult
- 
Method Details- 
nextCountCallback method invoked after an updating query is executed.
- 
nextBatchCountCallback method invoked after a batch update is executed.
- 
nextRowsCallback method invoked for each processed ResultSet.- Since:
- 3.0
 
- 
nextRowsCallback method invoked for each opened ResultIterator. If this observer requested results to be returned as a ResultIterator, this method is invoked instead ofnextRows(Query, List).- Since:
- 3.0
 
- 
nextGeneratedRowsCallback method invoked after each batch of generated values is read during an update.- Since:
- 4.2
 
- 
nextQueryExceptionCallback method invoked on exceptions that happen during an execution of a specific query.
- 
nextGlobalExceptionCallback method invoked on exceptions that are not tied to a specific query execution, such as JDBC connection exceptions, etc.
 
-