Class DefaultTravelPDTRowsQueryBuilder

java.lang.Object
de.hybris.platform.travelservices.price.impl.DefaultTravelPDTRowsQueryBuilder
All Implemented Interfaces:
de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder, TravelPDTRowsQueryBuilder

public class DefaultTravelPDTRowsQueryBuilder extends Object implements TravelPDTRowsQueryBuilder
Implementation class similar to DefaultPDTRowsQueryBuilder. This has all the methods and variables from DefaultPDTRowsQueryBuilder and also includes travel specific methods.
  • Constructor Details

    • DefaultTravelPDTRowsQueryBuilder

      public DefaultTravelPDTRowsQueryBuilder(String type)
      Parameters:
      type -
  • Method Details

    • withAnyProduct

      public TravelPDTRowsQueryBuilder withAnyProduct()
      Specified by:
      withAnyProduct in interface de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder
    • withProduct

      public TravelPDTRowsQueryBuilder withProduct(de.hybris.platform.core.PK productPk)
      Specified by:
      withProduct in interface de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder
    • withProductGroup

      public TravelPDTRowsQueryBuilder withProductGroup(de.hybris.platform.core.PK productGroupPk)
      Specified by:
      withProductGroup in interface de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder
    • withProductId

      public TravelPDTRowsQueryBuilder withProductId(String productId)
      Specified by:
      withProductId in interface de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder
    • withAnyUser

      public TravelPDTRowsQueryBuilder withAnyUser()
      Specified by:
      withAnyUser in interface de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder
    • withUser

      public TravelPDTRowsQueryBuilder withUser(de.hybris.platform.core.PK userPk)
      Specified by:
      withUser in interface de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder
    • withUserGroup

      public TravelPDTRowsQueryBuilder withUserGroup(de.hybris.platform.core.PK userGroupPk)
      Specified by:
      withUserGroup in interface de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder
    • build

      public de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder.QueryWithParams build()
      Specified by:
      build in interface de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder
    • buildPriceQueryAndParams

      public de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder.QueryWithParams buildPriceQueryAndParams(Map<String,String> searchParams)
      Description copied from interface: TravelPDTRowsQueryBuilder
      The method builds the query for querying price rows. The travel specific search criteria is added to the query along with the required parameters.
      Specified by:
      buildPriceQueryAndParams in interface TravelPDTRowsQueryBuilder
      Parameters:
      searchParams - the search params
      Returns:
      the queryWithParams object
    • buildQueryAddPricesByProduct

      protected void buildQueryAddPricesByProduct(Map<String,String> searchParams, boolean matchByUser, StringBuilder query, com.google.common.collect.ImmutableMap.Builder params, Map<String,Object> userParams)
    • buildQueryMatchByProductOrUser

      protected void buildQueryMatchByProductOrUser(Map<String,String> searchParams, boolean matchByUser, StringBuilder query, com.google.common.collect.ImmutableMap.Builder params, Map<String,Object> productParams, Map<String,Object> userParams, boolean matchByProduct)
    • buildTaxQueryAndParams

      public de.hybris.platform.europe1.jalo.PDTRowsQueryBuilder.QueryWithParams buildTaxQueryAndParams(Map<String,List<String>> searchParams)
      Description copied from interface: TravelPDTRowsQueryBuilder
      The method builds the query for querying price rows. The travel specific search criteria is added to the query along with the required parameters.
      Specified by:
      buildTaxQueryAndParams in interface TravelPDTRowsQueryBuilder
      Parameters:
      searchParams - the search params
      Returns:
      the queryWithParams object
    • appendQueryForPriceRow

      protected void appendQueryForPriceRow(StringBuilder query, Map<String,String> params)
    • appendQueryForTaxRow

      protected void appendQueryForTaxRow(StringBuilder query, Map<String,List<String>> params, Map<String,Object> queryParams)
    • appendQueryForCountryAndPassengerType

      protected void appendQueryForCountryAndPassengerType(StringBuilder query, Map<String,List<String>> params, Map<String,Object> queryParams)
    • appendQueryForTransportFacilityAndPassengerType

      protected void appendQueryForTransportFacilityAndPassengerType(StringBuilder query, Map<String,List<String>> params, Map<String,Object> queryParams)
    • getQueryForTransportFacility

      protected String getQueryForTransportFacility(List<String> transportFacilityCodes, Map<String,Object> queryParams)
    • getQueryForCountry

      protected String getQueryForCountry(List<String> countryCodes, Map<String,Object> queryParams)
    • getQueryForPassengerType

      protected String getQueryForPassengerType(String passengerType, Map<String,Object> queryParams)