Class AbstractSubscriptionPricePlanConditionBuilder<T>
java.lang.Object
de.hybris.platform.b2ctelcoservices.pricing.dao.AbstractSubscriptionPricePlanConditionBuilder<T>
- Type Parameters:
T- parameter based on which the search query will be enhanced.
- All Implemented Interfaces:
TmaGenericConditionBuilder<T>
- Direct Known Subclasses:
TmaPriceRegionConditionBuilder,TmaPriceRowChannelConditionBuilder,TmaProcessTypeConditionBuilder,TmaSppAffectedProductConditionBuilder,TmaSppChannelConditionBuilder,TmaSppCurrencyConditionBuilder,TmaSppEligibleProcessesAndTermsConditionBuilder,TmaSppProductConditionBuilder,TmaSppUserPriceGroupConditionBuilder,TmaUserIdConditionBuilder
public abstract class AbstractSubscriptionPricePlanConditionBuilder<T>
extends Object
implements TmaGenericConditionBuilder<T>
Abstract builder for enhancing the
SubscriptionPricePlanModel related search queries.- Since:
- 1810
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.core.GenericSearchFieldaddRelationJoinToQuery(de.hybris.platform.core.GenericQuery query, String relationName, String subscriptionPricePlanRelationName, String targetTypeCode, String targetTypeCodeRelationName) Adds a many to many relation defined by the given params to the provided and returns the targetGenericSearchField.de.hybris.platform.core.GenericConditionListbuildQueryConditions(de.hybris.platform.core.GenericQuery query, T param) Builds aGenericConditionListfor the given param.protected abstract de.hybris.platform.core.GenericConditionListcreateQueryConditions(de.hybris.platform.core.GenericQuery query, T param) protected booleanproductIsBpo(ProductModel poModel) Determines whether the product is a Bundled Product Offering other then Fixed Bundled Product Offering.protected abstract booleanshouldApplyCondition(T parameter)
-
Field Details
-
SOURCE_RELATION_NAME
- See Also:
-
TARGET_RELATION_NAME
- See Also:
-
-
Constructor Details
-
AbstractSubscriptionPricePlanConditionBuilder
public AbstractSubscriptionPricePlanConditionBuilder()
-
-
Method Details
-
buildQueryConditions
public de.hybris.platform.core.GenericConditionList buildQueryConditions(de.hybris.platform.core.GenericQuery query, T param) throws TmaSearchQueryException Description copied from interface:TmaGenericConditionBuilderBuilds aGenericConditionListfor the given param.- Specified by:
buildQueryConditionsin interfaceTmaGenericConditionBuilder<T>- Parameters:
query- the search query to be enhancedparam- 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
-
createQueryConditions
protected abstract de.hybris.platform.core.GenericConditionList createQueryConditions(de.hybris.platform.core.GenericQuery query, T param) throws TmaSearchQueryException - Throws:
TmaSearchQueryException
-
addRelationJoinToQuery
protected de.hybris.platform.core.GenericSearchField addRelationJoinToQuery(de.hybris.platform.core.GenericQuery query, String relationName, String subscriptionPricePlanRelationName, String targetTypeCode, String targetTypeCodeRelationName) Adds a many to many relation defined by the given params to the provided and returns the targetGenericSearchField.- Parameters:
query- query to be enhanced with relation joinrelationName- name of the relation to be addedsubscriptionPricePlanRelationName- source name of the relationtargetTypeCode- type code of the item type, target of the relationtargetTypeCodeRelationName- target name of the relation- Returns:
- the pk field of the target
-
productIsBpo
Determines whether the product is a Bundled Product Offering other then Fixed Bundled Product Offering.- Parameters:
poModel- product offering whose instance will be checked- Returns:
truein case this offering is a normal BPO (not a fixed price one),falseotherwise
-