|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anasoft.os.daofusion.criteria.SimpleFilterCriterionProvider
public abstract class SimpleFilterCriterionProvider
Base class for FilterCriterionProvider
implementations
that use either filter object or direct values
filter data concept.
If you wish to combine both filter data concepts together,
we recommend writing your own specific FilterCriterionProvider
implementation.
FilterCriterionProvider
Nested Class Summary | |
---|---|
static class |
SimpleFilterCriterionProvider.FilterDataStrategy
Type of the strategy for passing filter data to the given FilterCriterionProvider . |
Constructor Summary | |
---|---|
SimpleFilterCriterionProvider()
Creates a new Criterion instance provider
which doesn't expect any filter values (subclasses
have to manage filter data on their own). |
|
SimpleFilterCriterionProvider(SimpleFilterCriterionProvider.FilterDataStrategy strategy,
int expectedValueCount)
Creates a new Criterion instance provider
which enforces non-null values within the appropriate
value array by default. |
|
SimpleFilterCriterionProvider(SimpleFilterCriterionProvider.FilterDataStrategy strategy,
int expectedValueCount,
boolean checkNullValues)
Creates a new Criterion instance provider. |
Method Summary | |
---|---|
boolean |
enabled(java.lang.Object[] filterObjectValues,
java.lang.Object[] directValues)
Returns a flag indicating whether to use this provider during the FilterCriterion instance processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.anasoft.os.daofusion.criteria.FilterCriterionProvider |
---|
getCriterion |
Constructor Detail |
---|
public SimpleFilterCriterionProvider(SimpleFilterCriterionProvider.FilterDataStrategy strategy, int expectedValueCount, boolean checkNullValues)
Criterion
instance provider.
strategy
- Type of the strategy for
passing filter data to this provider.expectedValueCount
- Expected length of the
filterObjectValuePaths or directValues
array, depending on the chosen strategy.checkNullValues
- true to enforce
non-null values within the value array (depending
on the chosen strategy), false
to skip the null value check.public SimpleFilterCriterionProvider(SimpleFilterCriterionProvider.FilterDataStrategy strategy, int expectedValueCount)
Criterion
instance provider
which enforces non-null values within the appropriate
value array by default.
strategy
- Type of the strategy for
passing filter data to this provider.expectedValueCount
- Expected length of the
filterObjectValuePaths or directValues
array, depending on the chosen strategy.public SimpleFilterCriterionProvider()
Criterion
instance provider
which doesn't expect any filter values (subclasses
have to manage filter data on their own).
Method Detail |
---|
public boolean enabled(java.lang.Object[] filterObjectValues, java.lang.Object[] directValues)
FilterCriterionProvider
FilterCriterion
instance processing.
Use this method for disabling the Criterion
instance provider in certain situations, for example:
Criterion
instance due to missing or incorrect filter data)
FilterCriterionProvider.getCriterion(String, Object[], Object[])
invocation
during the FilterCriterion
instance processing.
enabled
in interface FilterCriterionProvider
filterObjectValues
- Values extracted from the filter
object.directValues
- Values provided directly by the user.
FilterCriterion
instance processing,
false otherwise.FilterCriterionProvider.enabled(java.lang.Object[], java.lang.Object[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |