Interface ChangeProductPriceBundleRuleDao
- All Superinterfaces:
BundleRuleDao<ChangeProductPriceBundleRuleModel>
- All Known Implementing Classes:
DefaultChangeProductPriceBundleRuleDao
public interface ChangeProductPriceBundleRuleDao
extends BundleRuleDao<ChangeProductPriceBundleRuleModel>
Data Access Object for looking up items related to
ChangeProductPriceBundleRuleModel.- Spring Bean ID:
- changeProductPriceBundleRuleDao
-
Method Summary
Modifier and TypeMethodDescriptionfindBundleRulesByTargetProductAndCurrency(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 interface de.hybris.platform.configurablebundleservices.daos.BundleRuleDao
findBundleRulesByProductAndRootTemplate, findBundleRulesByTargetProduct, findBundleRulesByTargetProductAndTemplate
-
Method Details
-
findBundleRulesByTargetProductAndCurrency
@Nonnull List<ChangeProductPriceBundleRuleModel> findBundleRulesByTargetProductAndCurrency(ProductModel targetProduct, CurrencyModel currency) Find allChangeProductPriceBundleRuleModels that have the giventargetProductas target product.- Parameters:
targetProduct- the targetProductModelof the bundle rulecurrency- the currency of the rule's price- Returns:
ListofChangeProductPriceBundleRuleModels or emptyList.
-
findBundleRulesByTargetProductAndTemplateAndCurrency
@Nonnull List<ChangeProductPriceBundleRuleModel> findBundleRulesByTargetProductAndTemplateAndCurrency(@Nonnull ProductModel targetProduct, @Nonnull BundleTemplateModel bundleTemplate, @Nonnull CurrencyModel currency) Find allChangeProductPriceBundleRuleModels that are assigned to the givenbundleTemplateand have the giventargetProductas target product.- Parameters:
targetProduct- the targetProductModelof the bundle rulebundleTemplate- theBundleTemplateModelthe bundle rule is assigned tocurrency- the currency of the rule's price- Returns:
ListofChangeProductPriceBundleRuleModels or emptyList.
-