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 java.lang.Object implements TmaGenericConditionBuilder<T>
Abstract builder for enhancing theSubscriptionPricePlanModelrelated search queries.- Since:
- 1810
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringSOURCE_RELATION_NAMEprotected static java.lang.StringTARGET_RELATION_NAME
-
Constructor Summary
Constructors Constructor Description AbstractSubscriptionPricePlanConditionBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected de.hybris.platform.core.GenericSearchFieldaddRelationJoinToQuery(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 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)protected abstract booleanshouldApplyCondition(T parameter)
-
-
-
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
-
-
Method Detail
-
buildQueryConditions
public de.hybris.platform.core.GenericConditionList buildQueryConditions(de.hybris.platform.core.GenericQuery query, T param) throws TmaSearchQueryExceptionDescription 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
protected abstract boolean shouldApplyCondition(T parameter)
-
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, 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 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
protected boolean productIsBpo(ProductModel poModel)
-
-