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 theChangeProductPriceBundleRuleDao
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultChangeProductPriceBundleRuleDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ChangeProductPriceBundleRuleModel>findBundleRulesByProductAndRootTemplate(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.java.util.List<ChangeProductPriceBundleRuleModel>findBundleRulesByTargetProductAndCurrency(ProductModel targetProduct, CurrencyModel currency)Find allChangeProductPriceBundleRuleModels that have the giventargetProductas target product.java.util.List<ChangeProductPriceBundleRuleModel>findBundleRulesByTargetProductAndTemplateAndCurrency(ProductModel targetProduct, BundleTemplateModel bundleTemplate, CurrencyModel currency)Find allChangeProductPriceBundleRuleModels that are assigned to the givenbundleTemplateand have the giventargetProductas target product.java.lang.StringgetFindBundleRulesByProductAndRootTemplateQuery()java.lang.StringgetFindBundleRulesByTargetProductAndTemplateQuery()java.lang.StringgetFindBundleRulesByTargetProductQuery()-
Methods inherited from class de.hybris.platform.configurablebundleservices.daos.impl.AbstractBundleRuleDao
findBundleRulesByTargetProduct, findBundleRulesByTargetProductAndTemplate
-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.configurablebundleservices.daos.BundleRuleDao
findBundleRulesByTargetProduct, findBundleRulesByTargetProductAndTemplate
-
-
-
-
Method Detail
-
getFindBundleRulesByTargetProductQuery
public java.lang.String getFindBundleRulesByTargetProductQuery()
- Specified by:
getFindBundleRulesByTargetProductQueryin classAbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
-
getFindBundleRulesByTargetProductAndTemplateQuery
public java.lang.String getFindBundleRulesByTargetProductAndTemplateQuery()
- Specified by:
getFindBundleRulesByTargetProductAndTemplateQueryin classAbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
-
getFindBundleRulesByProductAndRootTemplateQuery
public java.lang.String getFindBundleRulesByProductAndRootTemplateQuery()
- Specified by:
getFindBundleRulesByProductAndRootTemplateQueryin classAbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
-
findBundleRulesByTargetProductAndCurrency
@Nonnull public java.util.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 java.util.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 java.util.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.
-
-