public abstract class AbstractSelectCascadeFilter extends java.lang.Object implements SelectCascadeFilter<java.lang.Object>
By default all rows are accepted. For each row runtime type of T, create a method like:
public boolean accept(ScalarSelectOperation<?> source, T row, boolean cascadesCompleted)
Return true to keep row, false to eliminate row from results.
Constructor and Description |
---|
AbstractSelectCascadeFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ScalarSelectOperation<java.lang.Object> source,
java.lang.Object row,
boolean cascadesCompleted)
Invokes subclass accept method based upon row runtime class type.
|
java.lang.Class<java.lang.Object> |
getRowClass()
Return the runtime type of row that should be filtered by this filter.
|
public java.lang.Class<java.lang.Object> getRowClass()
SelectCascadeFilter
getRowClass
in interface SelectCascadeFilter<java.lang.Object>
public boolean accept(ScalarSelectOperation<java.lang.Object> source, java.lang.Object row, boolean cascadesCompleted)
getRowClass()
returns Object.class to indicate all rows are filtered, then this method delegates to appropriate
subclass accept method based upon runtime class of row parameter.accept
in interface SelectCascadeFilter<java.lang.Object>
source
- operation or subclass that read rowrow
- row to be testedcascadesCompleted
- true if all row cascades have completed