Class AbstractSubscriptionPricePlanConditionBuilder<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected de.hybris.platform.core.GenericSearchField addRelationJoinToQuery​(de.hybris.platform.core.GenericQuery query, java.lang.String relationName, java.lang.String subscriptionPricePlanRelationName, java.lang.String targetTypeCode, java.lang.String targetTypeCodeRelationName)
      Adds a many to many relation defined by the given params to the provided {@param query} and returns the target GenericSearchField.
      de.hybris.platform.core.GenericConditionList buildQueryConditions​(de.hybris.platform.core.GenericQuery query, T param)
      Builds a GenericConditionList for the given param.
      protected abstract de.hybris.platform.core.GenericConditionList createQueryConditions​(de.hybris.platform.core.GenericQuery query, T param)  
      protected boolean productIsBpo​(ProductModel poModel)  
      protected abstract boolean shouldApplyCondition​(T parameter)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SOURCE_RELATION_NAME

        protected static final java.lang.String SOURCE_RELATION_NAME
        See Also:
        Constant Field Values
      • TARGET_RELATION_NAME

        protected static final java.lang.String TARGET_RELATION_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractSubscriptionPricePlanConditionBuilder

        public AbstractSubscriptionPricePlanConditionBuilder()
    • Method Detail

      • buildQueryConditions

        public de.hybris.platform.core.GenericConditionList buildQueryConditions​(de.hybris.platform.core.GenericQuery query,
                                                                                 T param)
                                                                          throws TmaSearchQueryException
        Description copied from interface: TmaGenericConditionBuilder
        Builds a GenericConditionList for the given param.
        Specified by:
        buildQueryConditions in interface TmaGenericConditionBuilder<T>
        Parameters:
        query - the search query to be enhanced
        param - parameter based on which the search query will be enhanced.
        Returns:
        created generic condition
        Throws:
        TmaSearchQueryException - exception to be thrown in case a generic condition cannot be created
      • shouldApplyCondition

        protected abstract boolean shouldApplyCondition​(T parameter)
      • addRelationJoinToQuery

        protected de.hybris.platform.core.GenericSearchField addRelationJoinToQuery​(de.hybris.platform.core.GenericQuery query,
                                                                                    java.lang.String relationName,
                                                                                    java.lang.String subscriptionPricePlanRelationName,
                                                                                    java.lang.String targetTypeCode,
                                                                                    java.lang.String targetTypeCodeRelationName)
        Adds a many to many relation defined by the given params to the provided {@param query} and returns the target GenericSearchField.
        Parameters:
        query - query to be enhanced with relation join
        relationName - name of the relation to be added
        subscriptionPricePlanRelationName - source name of the relation
        targetTypeCode - type code of the item type, target of the relation
        targetTypeCodeRelationName - target name of the relation
        Returns:
        the pk field of the target
      • productIsBpo

        protected boolean productIsBpo​(ProductModel poModel)