Class DefaultAbstractQueryHelper
java.lang.Object
de.hybris.platform.servicelayer.search.paginated.impl.DefaultAbstractQueryHelper
- All Implemented Interfaces:
AbstractQueryHelper
Default implementation of
AbstractQueryHelper. It returns an updated object of the given original one by
setting the query with the given parameter while shallow copying original attributes to an updated object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends AbstractQuery>
voidcopyAttributes(T original, T target) Copies original attributes over to target object.<T extends FlexibleSearchQuery>
TgetUpdatedFlexibleSearchQuery(FlexibleSearchQuery original, String query) Get an updated FlexibleSearchQuery of the given original one by setting the query with the given parameter<T extends GenericSearchQuery>
TgetUpdatedGenericSearchQuery(GenericSearchQuery original, GenericQuery query) Get an updated GenericSearchQuery of the given original one by setting the query with the given parameter
-
Constructor Details
-
DefaultAbstractQueryHelper
public DefaultAbstractQueryHelper()
-
-
Method Details
-
getUpdatedFlexibleSearchQuery
public <T extends FlexibleSearchQuery> T getUpdatedFlexibleSearchQuery(FlexibleSearchQuery original, String query) Description copied from interface:AbstractQueryHelperGet an updated FlexibleSearchQuery of the given original one by setting the query with the given parameter- Specified by:
getUpdatedFlexibleSearchQueryin interfaceAbstractQueryHelper- Type Parameters:
T- the subclass type ofFlexibleSearchQueryto be returned- Parameters:
original- the original FlexibleSearchQuery objectquery- the query needs to be set in the FlexibleSearchQuery- Returns:
- the updated
FlexibleSearchQueryof original one by setting the query with the given parameter
-
getUpdatedGenericSearchQuery
public <T extends GenericSearchQuery> T getUpdatedGenericSearchQuery(GenericSearchQuery original, GenericQuery query) Description copied from interface:AbstractQueryHelperGet an updated GenericSearchQuery of the given original one by setting the query with the given parameter- Specified by:
getUpdatedGenericSearchQueryin interfaceAbstractQueryHelper- Type Parameters:
T- the subclass of typeGenericSearchQueryto be returned- Parameters:
original- the original GenericSearchQuery objectquery- the query needs to be set in the GenericSearchQuery- Returns:
- the updated
GenericSearchQueryof original one by setting the query with the given parameter
-
copyAttributes
Copies original attributes over to target object.- Parameters:
original- the original search query objecttarget- the target search query object
-