R
- class of row to be filteredpublic interface SelectCascadeFilter<R>
accept(ScalarSelectOperation, Object, boolean)
will be invoked when row is read
from database or cache prior to any cascades (cascaded parameter will be false). If the first invocation returns
true and row has cascades defined, then accept will be invoked a second time after all cascades
have been completed (cascaded parameter will be true).
The first invocation of accept method (cascade parameter of false), allows you to filter based upon row values and parent values. Returning false allows you to short-circuit cascading and eliminate and sub nodes that are not desired.
The second invocation of accept method (cascade parameter of true), allows you to filter based upon child node values.
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ScalarSelectOperation<R> source,
R row,
boolean cascadesCompleted)
Tests if row is to be used in results.
|
java.lang.Class<R> |
getRowClass()
Return the runtime type of row that should be filtered by this filter.
|
boolean accept(ScalarSelectOperation<R> source, R row, boolean cascadesCompleted)
source
- operation or subclass that read rowrow
- row to be testedcascadesCompleted
- true if all row cascades have completedjava.lang.Class<R> getRowClass()