|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.anasoft.os.daofusion.cto.server.NestedPropertyMapping com.anasoft.os.daofusion.cto.server.FilterAndSortMapping<T>
T
- Type of filter values the underlying
FilterCriterionProvider
works with.public class FilterAndSortMapping<T>
Criteria transfer object mapping regarding the filtering and sorting functionality.
This mapping uses a FilterValueConverter
to convert
string-based filter values received from the FilterAndSortCriteria
into their typed object representations (resulting objects will be passed
as directValues to the underlying FilterCriterion
instances
in case the filterCriterionProvider is not null).
Note that the filtering functionality can be disabled by setting filterCriterionProvider to null.
FilterCriterionProvider
,
FilterValueConverter
,
NestedPropertyMapping
Constructor Summary | |
---|---|
FilterAndSortMapping(java.lang.String propertyId,
AssociationPath associationPath,
java.lang.String targetPropertyName)
Creates a new property mapping. |
|
FilterAndSortMapping(java.lang.String propertyId,
AssociationPath associationPath,
java.lang.String targetPropertyName,
FilterCriterionProvider filterCriterionProvider,
FilterValueConverter<T> filterValueConverter)
Creates a new property mapping. |
|
FilterAndSortMapping(java.lang.String propertyId,
java.lang.String propertyPath)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach. |
|
FilterAndSortMapping(java.lang.String propertyId,
java.lang.String propertyPath,
FilterCriterionProvider filterCriterionProvider,
FilterValueConverter<T> filterValueConverter)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach. |
|
FilterAndSortMapping(java.lang.String propertyId,
java.lang.String propertyPath,
NestedPropertyJoinType associationJoinType)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach. |
|
FilterAndSortMapping(java.lang.String propertyId,
java.lang.String propertyPath,
NestedPropertyJoinType associationJoinType,
FilterCriterionProvider filterCriterionProvider,
FilterValueConverter<T> filterValueConverter)
Deprecated. propertyPath / associationJoinType concept is now deprecated in favor of the associationPath / targetPropertyName approach. |
Method Summary | |
---|---|
void |
apply(FilterAndSortCriteria clientSideCriteria,
NestedPropertyCriteria serverSideCriteria)
Applies query constraints defined by the clientSideCriteria to the serverSideCriteria according to the property mapping implementation. |
FilterCriterionProvider |
getFilterCriterionProvider()
|
FilterValueConverter<T> |
getFilterValueConverter()
|
Methods inherited from class com.anasoft.os.daofusion.cto.server.NestedPropertyMapping |
---|
getAssociationPath, getPropertyId, getTargetPropertyName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public FilterAndSortMapping(java.lang.String propertyId, java.lang.String propertyPath, NestedPropertyJoinType associationJoinType, FilterCriterionProvider filterCriterionProvider, FilterValueConverter<T> filterValueConverter)
propertyId
- Symbolic persistent entity property identifier.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).filterCriterionProvider
- Criterion
instance provider used
for filtering or null to disable the filtering functionality.filterValueConverter
- FilterValueConverter
implementation
applicable to corresponding filter values (effective only only when the
filterCriterionProvider is not null).public FilterAndSortMapping(java.lang.String propertyId, AssociationPath associationPath, java.lang.String targetPropertyName, FilterCriterionProvider filterCriterionProvider, FilterValueConverter<T> filterValueConverter)
propertyId
- Symbolic persistent entity property identifier.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 or null to disable the filtering functionality.filterValueConverter
- FilterValueConverter
implementation
applicable to corresponding filter values (effective only only when the
filterCriterionProvider is not null).@Deprecated public FilterAndSortMapping(java.lang.String propertyId, java.lang.String propertyPath, FilterCriterionProvider filterCriterionProvider, FilterValueConverter<T> filterValueConverter)
propertyId
- Symbolic persistent entity property identifier.propertyPath
- Dot-separated logical path to the target property.filterCriterionProvider
- Criterion
instance provider used
for filtering or null to disable the filtering functionality.filterValueConverter
- FilterValueConverter
implementation
applicable to corresponding filter values (effective only only when the
filterCriterionProvider is not null).@Deprecated public FilterAndSortMapping(java.lang.String propertyId, java.lang.String propertyPath, NestedPropertyJoinType associationJoinType)
This is a convenience constructor for mappings which don't require the filtering functionality.
propertyId
- Symbolic persistent entity property identifier.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).public FilterAndSortMapping(java.lang.String propertyId, AssociationPath associationPath, java.lang.String targetPropertyName)
This is a convenience constructor for mappings which don't require the filtering functionality.
propertyId
- Symbolic persistent entity property identifier.associationPath
- AssociationPath
which points
to the given property of the target persistent entity.targetPropertyName
- Name of the target property of
the given persistent entity.@Deprecated public FilterAndSortMapping(java.lang.String propertyId, java.lang.String propertyPath)
This is a convenience constructor for mappings which don't require the filtering functionality.
propertyId
- Symbolic persistent entity property identifier.propertyPath
- Dot-separated logical path to the target property.Method Detail |
---|
public FilterCriterionProvider getFilterCriterionProvider()
Criterion
instance provider used for filtering
or null to disable the filtering functionality.public FilterValueConverter<T> getFilterValueConverter()
FilterValueConverter
implementation applicable
to corresponding filter values (effective only only when the
filterCriterionProvider is not null).public void apply(FilterAndSortCriteria clientSideCriteria, NestedPropertyCriteria serverSideCriteria)
NestedPropertyMapping
apply
in class NestedPropertyMapping
clientSideCriteria
- Client-side persistent entity criteria
representation.serverSideCriteria
- NestedPropertyCriteria
instance
to update.NestedPropertyMapping.apply(com.anasoft.os.daofusion.cto.client.FilterAndSortCriteria, com.anasoft.os.daofusion.criteria.NestedPropertyCriteria)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |