Class DefaultAbstractQueryHelper
- java.lang.Object
-
- de.hybris.platform.servicelayer.search.paginated.impl.DefaultAbstractQueryHelper
-
- All Implemented Interfaces:
AbstractQueryHelper
public class DefaultAbstractQueryHelper extends java.lang.Object implements AbstractQueryHelper
Default implementation ofAbstractQueryHelper
. 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 Constructor Description DefaultAbstractQueryHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends AbstractQuery>
voidcopyAttributes(T original, T target)
Copies original attributes over to target object.<T extends FlexibleSearchQuery>
TgetUpdatedFlexibleSearchQuery(FlexibleSearchQuery original, java.lang.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
-
-
-
Method Detail
-
getUpdatedFlexibleSearchQuery
public <T extends FlexibleSearchQuery> T getUpdatedFlexibleSearchQuery(FlexibleSearchQuery original, java.lang.String query)
Description copied from interface:AbstractQueryHelper
Get an updated FlexibleSearchQuery of the given original one by setting the query with the given parameter- Specified by:
getUpdatedFlexibleSearchQuery
in interfaceAbstractQueryHelper
- Type Parameters:
T
- the subclass type ofFlexibleSearchQuery
to be returned- Parameters:
original
- the original FlexibleSearchQuery objectquery
- the query needs to be set in the FlexibleSearchQuery- Returns:
- the updated
FlexibleSearchQuery
of 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:AbstractQueryHelper
Get an updated GenericSearchQuery of the given original one by setting the query with the given parameter- Specified by:
getUpdatedGenericSearchQuery
in interfaceAbstractQueryHelper
- Type Parameters:
T
- the subclass of typeGenericSearchQuery
to be returned- Parameters:
original
- the original GenericSearchQuery objectquery
- the query needs to be set in the GenericSearchQuery- Returns:
- the updated
GenericSearchQuery
of original one by setting the query with the given parameter
-
copyAttributes
protected <T extends AbstractQuery> void copyAttributes(T original, T target)
Copies original attributes over to target object.- Parameters:
original
- the original search query objecttarget
- the target search query object
-
-