Class DefaultChangeProductPriceBundleRuleDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.configurablebundleservices.daos.impl.AbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
de.hybris.platform.configurablebundleservices.daos.impl.DefaultChangeProductPriceBundleRuleDao
- All Implemented Interfaces:
BundleRuleDao<ChangeProductPriceBundleRuleModel>,ChangeProductPriceBundleRuleDao,Dao
public class DefaultChangeProductPriceBundleRuleDao
extends AbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
implements ChangeProductPriceBundleRuleDao
Default implementation of the
ChangeProductPriceBundleRuleDao-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindBundleRulesByProductAndRootTemplate(ProductModel product, BundleTemplateModel rootBundleTemplate) Find allAbstractBundleRuleModels that are assigned to any of the givenrootBundleTemplate's child components and have the givenproducteither as target product or as conditional product.findBundleRulesByTargetProductAndCurrency(ProductModel targetProduct, CurrencyModel currency) Find allChangeProductPriceBundleRuleModels that have the giventargetProductas target product.findBundleRulesByTargetProductAndTemplateAndCurrency(ProductModel targetProduct, BundleTemplateModel bundleTemplate, CurrencyModel currency) Find allChangeProductPriceBundleRuleModels that are assigned to the givenbundleTemplateand have the giventargetProductas target product.Methods inherited from class de.hybris.platform.configurablebundleservices.daos.impl.AbstractBundleRuleDao
findBundleRulesByTargetProduct, findBundleRulesByTargetProductAndTemplateMethods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.configurablebundleservices.daos.BundleRuleDao
findBundleRulesByTargetProduct, findBundleRulesByTargetProductAndTemplate
-
Constructor Details
-
DefaultChangeProductPriceBundleRuleDao
public DefaultChangeProductPriceBundleRuleDao()
-
-
Method Details
-
getFindBundleRulesByTargetProductQuery
- Specified by:
getFindBundleRulesByTargetProductQueryin classAbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
-
getFindBundleRulesByTargetProductAndTemplateQuery
- Specified by:
getFindBundleRulesByTargetProductAndTemplateQueryin classAbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
-
getFindBundleRulesByProductAndRootTemplateQuery
- Specified by:
getFindBundleRulesByProductAndRootTemplateQueryin classAbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
-
findBundleRulesByTargetProductAndCurrency
@Nonnull public List<ChangeProductPriceBundleRuleModel> findBundleRulesByTargetProductAndCurrency(@Nonnull ProductModel targetProduct, @Nonnull CurrencyModel currency) Description copied from interface:ChangeProductPriceBundleRuleDaoFind allChangeProductPriceBundleRuleModels that have the giventargetProductas target product.- Specified by:
findBundleRulesByTargetProductAndCurrencyin interfaceChangeProductPriceBundleRuleDao- Parameters:
targetProduct- the targetProductModelof the bundle rulecurrency- the currency of the rule's price- Returns:
ListofChangeProductPriceBundleRuleModels or emptyList.
-
findBundleRulesByTargetProductAndTemplateAndCurrency
@Nonnull public List<ChangeProductPriceBundleRuleModel> findBundleRulesByTargetProductAndTemplateAndCurrency(@Nonnull ProductModel targetProduct, @Nonnull BundleTemplateModel bundleTemplate, @Nonnull CurrencyModel currency) Description copied from interface:ChangeProductPriceBundleRuleDaoFind allChangeProductPriceBundleRuleModels that are assigned to the givenbundleTemplateand have the giventargetProductas target product.- Specified by:
findBundleRulesByTargetProductAndTemplateAndCurrencyin interfaceChangeProductPriceBundleRuleDao- Parameters:
targetProduct- the targetProductModelof the bundle rulebundleTemplate- theBundleTemplateModelthe bundle rule is assigned tocurrency- the currency of the rule's price- Returns:
ListofChangeProductPriceBundleRuleModels or emptyList.
-
findBundleRulesByProductAndRootTemplate
@Nonnull public List<ChangeProductPriceBundleRuleModel> findBundleRulesByProductAndRootTemplate(@Nonnull ProductModel product, @Nonnull BundleTemplateModel rootBundleTemplate) Description copied from interface:BundleRuleDaoFind allAbstractBundleRuleModels that are assigned to any of the givenrootBundleTemplate's child components and have the givenproducteither as target product or as conditional product.- Specified by:
findBundleRulesByProductAndRootTemplatein interfaceBundleRuleDao<ChangeProductPriceBundleRuleModel>- Overrides:
findBundleRulesByProductAndRootTemplatein classAbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>- Parameters:
product- theProductModelthat is added to cartrootBundleTemplate- the rootBundleTemplateModel. OnlyDisableProductBundleRuleModels that are assigned to any of therootBundleTemplate's child components, are retrieved.- Returns:
ListofAbstractBundleRuleModels or emptyList.
-