Package org.apache.cayenne.access.util
Class DoNothingOperationObserver
java.lang.Object
org.apache.cayenne.access.util.DoNothingOperationObserver
- All Implemented Interfaces:
- OperationHints,- OperationObserver
public class DoNothingOperationObserver extends Object implements OperationObserver
A very simple observer that does nothing with provided data, and rethrows any
 reported exceptions. Can be used as a base superclass for custom observers.
- Since:
- 4.0
- 
Constructor SummaryConstructors Constructor Description DoNothingOperationObserver()
- 
Method SummaryModifier and Type Method Description booleanisIteratedResult()Returnstrueto indicate that any results of a select operation should be returned as a ResultIterator.voidnextBatchCount(Query query, int[] resultCount)Callback method invoked after a batch update is executed.voidnextCount(Query query, int resultCount)Callback method invoked after an updating query is executed.voidnextGeneratedRows(Query query, ResultIterator<?> keys, ObjectId idToUpdate)Callback method invoked after each batch of generated values is read during an update.voidnextGlobalException(Exception ex)Callback 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.voidnextRows(Query query, List<?> dataRows)Callback method invoked for each processed ResultSet.voidnextRows(Query q, ResultIterator<?> it)Callback method invoked for each opened ResultIterator.
- 
Constructor Details- 
DoNothingOperationObserverpublic DoNothingOperationObserver()
 
- 
- 
Method Details- 
isIteratedResultpublic boolean isIteratedResult()Description copied from interface:OperationHintsReturnstrueto indicate that any results of a select operation should be returned as a ResultIterator.falseis returned when the results are expected as a list.- Specified by:
- isIteratedResultin interface- OperationHints
 
- 
nextCountDescription copied from interface:OperationObserverCallback method invoked after an updating query is executed.- Specified by:
- nextCountin interface- OperationObserver
 
- 
nextBatchCountDescription copied from interface:OperationObserverCallback method invoked after a batch update is executed.- Specified by:
- nextBatchCountin interface- OperationObserver
 
- 
nextRowsDescription copied from interface:OperationObserverCallback method invoked for each processed ResultSet.- Specified by:
- nextRowsin interface- OperationObserver
 
- 
nextRowsDescription copied from interface:OperationObserverCallback method invoked for each opened ResultIterator. If this observer requested results to be returned as a ResultIterator, this method is invoked instead ofOperationObserver.nextRows(Query, List).- Specified by:
- nextRowsin interface- OperationObserver
 
- 
nextGeneratedRowsDescription copied from interface:OperationObserverCallback method invoked after each batch of generated values is read during an update.- Specified by:
- nextGeneratedRowsin interface- OperationObserver
 
- 
nextQueryExceptionDescription copied from interface:OperationObserverCallback method invoked on exceptions that happen during an execution of a specific query.- Specified by:
- nextQueryExceptionin interface- OperationObserver
 
- 
nextGlobalExceptionDescription copied from interface:OperationObserverCallback method invoked on exceptions that are not tied to a specific query execution, such as JDBC connection exceptions, etc.- Specified by:
- nextGlobalExceptionin interface- OperationObserver
 
 
-