|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.anasoft.os.daofusion.criteria.NestedPropertyCriterion<NestedPropertyCriterionVisitor> com.anasoft.os.daofusion.criteria.FilterCriterion
public class FilterCriterion
Filter criterion for a single property of the target persistent entity.
The filter criterion uses the FilterCriterionProvider
to construct a Criterion
instance corresponding
to the given property of the target persistent entity.
There are basically two ways to pass filter data to
FilterCriterionProvider
(both of which are optional):
FilterCriterionProvider
,
SimpleFilterCriterionProvider
,
NestedPropertyCriterion
Nested Class Summary | |
---|---|
static class |
FilterCriterion.FilterCriterionBuilder
Builder for FilterCriterion instances. |
Nested classes/interfaces inherited from class com.anasoft.os.daofusion.criteria.NestedPropertyCriterion |
---|
NestedPropertyCriterion.NestedPropertyCriterionBuilder<T extends NestedPropertyCriterion<V>,V extends NestedPropertyCriterionVisitor> |
Constructor Summary | |
---|---|
FilterCriterion(AssociationPath associationPath,
java.lang.String targetPropertyName,
FilterCriterionProvider filterCriterionProvider)
Creates a new filter criterion. |
|
FilterCriterion(AssociationPath associationPath,
java.lang.String targetPropertyName,
java.lang.Object value,
boolean useFilterObjectPathResolution,
FilterCriterionProvider filterCriterionProvider)
Creates a new filter criterion. |
|
FilterCriterion(AssociationPath associationPath,
java.lang.String targetPropertyName,
java.lang.String[] filterObjectValuePaths,
java.lang.Object[] directValues,
FilterCriterionProvider filterCriterionProvider)
Creates a new filter criterion. |
|
FilterCriterion(java.lang.String propertyPath,
NestedPropertyJoinType associationJoinType,
java.lang.Object value,
boolean useFilterObjectPathResolution,
FilterCriterionProvider filterCriterionProvider)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach. |
|
FilterCriterion(java.lang.String propertyPath,
NestedPropertyJoinType associationJoinType,
java.lang.String[] filterObjectValuePaths,
java.lang.Object[] directValues,
FilterCriterionProvider filterCriterionProvider)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach. |
|
FilterCriterion(java.lang.String propertyPath,
java.lang.Object value,
boolean useFilterObjectPathResolution,
FilterCriterionProvider filterCriterionProvider)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach. |
|
FilterCriterion(java.lang.String propertyPath,
java.lang.String[] filterObjectValuePaths,
java.lang.Object[] directValues,
FilterCriterionProvider filterCriterionProvider)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach. |
Method Summary | |
---|---|
void |
accept(NestedPropertyCriterionVisitor visitor)
Accepts the given visitor to visit this criterion. |
java.lang.Object[] |
getDirectValues()
|
FilterCriterionProvider |
getFilterCriterionProvider()
|
java.lang.String[] |
getFilterObjectValuePaths()
|
Methods inherited from class com.anasoft.os.daofusion.criteria.NestedPropertyCriterion |
---|
equals, getAssociationPath, getTargetPropertyName, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public FilterCriterion(java.lang.String propertyPath, NestedPropertyJoinType associationJoinType, java.lang.String[] filterObjectValuePaths, java.lang.Object[] directValues, FilterCriterionProvider filterCriterionProvider)
propertyPath
- Dot-separated logical path to the target property.associationJoinType
- Type of join to use in case of a nested
(non-direct) persistent entity property (can be null otherwise).filterObjectValuePaths
- Array of dot-separated logical paths
pointing to values reachable from the root filter object (can be null).directValues
- Array of filter values provided directly by the user
(can be null).filterCriterionProvider
- Criterion
instance provider used
for filtering.public FilterCriterion(AssociationPath associationPath, java.lang.String targetPropertyName, java.lang.String[] filterObjectValuePaths, java.lang.Object[] directValues, FilterCriterionProvider filterCriterionProvider)
associationPath
- AssociationPath
which points
to the given property of the target persistent entity.targetPropertyName
- Name of the target property of
the given persistent entity.filterObjectValuePaths
- Array of dot-separated logical paths
pointing to values reachable from the root filter object (can be null).directValues
- Array of filter values provided directly by the user
(can be null).filterCriterionProvider
- Criterion
instance provider used
for filtering.@Deprecated public FilterCriterion(java.lang.String propertyPath, java.lang.String[] filterObjectValuePaths, java.lang.Object[] directValues, FilterCriterionProvider filterCriterionProvider)
propertyPath
- Dot-separated logical path to the target property.filterObjectValuePaths
- Array of dot-separated logical paths
pointing to values reachable from the root filter object (can be null).directValues
- Array of filter values provided directly by the user
(can be null).filterCriterionProvider
- Criterion
instance provider used
for filtering.@Deprecated public FilterCriterion(java.lang.String propertyPath, NestedPropertyJoinType associationJoinType, java.lang.Object value, boolean useFilterObjectPathResolution, FilterCriterionProvider filterCriterionProvider)
This is a convenience constructor supporting single filter object value path or a single direct value, depending on useFilterObjectPathResolution.
propertyPath
- Dot-separated logical path to the target property.associationJoinType
- Type of join to use in case of a nested
(non-direct) persistent entity property (can be null otherwise).value
- Dot-separated logical path pointing to a value reachable
from the root filter object OR a direct value provided by the
user.useFilterObjectPathResolution
- true to treat value
as a filter object value path, false to treat value as
a direct value provided by the user.filterCriterionProvider
- Criterion
instance provider used
for filtering.public FilterCriterion(AssociationPath associationPath, java.lang.String targetPropertyName, java.lang.Object value, boolean useFilterObjectPathResolution, FilterCriterionProvider filterCriterionProvider)
This is a convenience constructor supporting single filter object value path or a single direct value, depending on useFilterObjectPathResolution.
associationPath
- AssociationPath
which points
to the given property of the target persistent entity.targetPropertyName
- Name of the target property of
the given persistent entity.value
- Dot-separated logical path pointing to a value reachable
from the root filter object OR a direct value provided by the
user.useFilterObjectPathResolution
- true to treat value
as a filter object value path, false to treat value as
a direct value provided by the user.filterCriterionProvider
- Criterion
instance provider used
for filtering.public FilterCriterion(AssociationPath associationPath, java.lang.String targetPropertyName, FilterCriterionProvider filterCriterionProvider)
This is a convenience constructor for bypassing filter data definition
(FilterCriterionProvider
will have to specify Criterion
filter data on its own).
associationPath
- AssociationPath
which points
to the given property of the target persistent entity.targetPropertyName
- Name of the target property of
the given persistent entity.filterCriterionProvider
- Criterion
instance provider used
for filtering.@Deprecated public FilterCriterion(java.lang.String propertyPath, java.lang.Object value, boolean useFilterObjectPathResolution, FilterCriterionProvider filterCriterionProvider)
This is a convenience constructor supporting single filter object value path or a single direct value, depending on useFilterObjectPathResolution.
propertyPath
- Dot-separated logical path to the target property.value
- Dot-separated logical path pointing to a value reachable
from the root filter object OR a direct value provided by the
user.useFilterObjectPathResolution
- true to treat value
as a filter object value path, false to treat value as
a direct value provided by the user.filterCriterionProvider
- Criterion
instance provider used
for filtering.Method Detail |
---|
public java.lang.String[] getFilterObjectValuePaths()
public java.lang.Object[] getDirectValues()
public FilterCriterionProvider getFilterCriterionProvider()
Criterion
instance provider used
for filtering.public void accept(NestedPropertyCriterionVisitor visitor)
PersistentEntityCriterion
visitor
- The visitor to accept.PersistentEntityCriterion.accept(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |