Class DefaultAbstractQueryHelper

java.lang.Object
de.hybris.platform.servicelayer.search.paginated.impl.DefaultAbstractQueryHelper
All Implemented Interfaces:
AbstractQueryHelper

public class DefaultAbstractQueryHelper extends Object implements 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 Details

    • DefaultAbstractQueryHelper

      public DefaultAbstractQueryHelper()
  • Method Details

    • getUpdatedFlexibleSearchQuery

      public <T extends FlexibleSearchQuery> T getUpdatedFlexibleSearchQuery(FlexibleSearchQuery original, 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 interface AbstractQueryHelper
      Type Parameters:
      T - the subclass type of FlexibleSearchQuery to be returned
      Parameters:
      original - the original FlexibleSearchQuery object
      query - 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 interface AbstractQueryHelper
      Type Parameters:
      T - the subclass of type GenericSearchQuery to be returned
      Parameters:
      original - the original GenericSearchQuery object
      query - 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 object
      target - the target search query object