public abstract class AbstractBundleRuleDao<R extends AbstractBundleRuleModel> extends AbstractItemDao implements BundleRuleDao<R>
BundleRuleDao.flexibleSearchService, modelService| Constructor and Description |
|---|
AbstractBundleRuleDao() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<R> |
findBundleRulesByProductAndRootTemplate(ProductModel product,
BundleTemplateModel rootBundleTemplate)
Find all
AbstractBundleRuleModels that are assigned to any of the given rootBundleTemplate's
child components and have the given product either as target product or as conditional product. |
java.util.List<R> |
findBundleRulesByTargetProduct(ProductModel targetProduct)
Find all
AbstractBundleRuleModels that have the given targetProduct as target product. |
java.util.List<R> |
findBundleRulesByTargetProductAndTemplate(ProductModel targetProduct,
BundleTemplateModel bundleTemplate)
Find all
AbstractBundleRuleModels that are assigned to the given bundleTemplate and have the
given targetProduct as target product. |
abstract java.lang.String |
getFindBundleRulesByProductAndRootTemplateQuery() |
abstract java.lang.String |
getFindBundleRulesByTargetProductAndTemplateQuery() |
abstract java.lang.String |
getFindBundleRulesByTargetProductQuery() |
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic java.util.List<R> findBundleRulesByTargetProductAndTemplate(ProductModel targetProduct, BundleTemplateModel bundleTemplate)
BundleRuleDaoAbstractBundleRuleModels that are assigned to the given bundleTemplate and have the
given targetProduct as target product.findBundleRulesByTargetProductAndTemplate in interface BundleRuleDao<R extends AbstractBundleRuleModel>targetProduct - the target ProductModel of the bundle rulebundleTemplate - the BundleTemplateModel the bundle rule is assigned toList of AbstractBundleRuleModels or empty List.public java.util.List<R> findBundleRulesByProductAndRootTemplate(ProductModel product, BundleTemplateModel rootBundleTemplate)
BundleRuleDaoAbstractBundleRuleModels that are assigned to any of the given rootBundleTemplate's
child components and have the given product either as target product or as conditional product.findBundleRulesByProductAndRootTemplate in interface BundleRuleDao<R extends AbstractBundleRuleModel>product - the ProductModel that is added to cartrootBundleTemplate - the root BundleTemplateModel. Only DisableProductBundleRuleModels that are assigned to
any of the rootBundleTemplate's child components, are retrieved.List of AbstractBundleRuleModels or empty List.public java.util.List<R> findBundleRulesByTargetProduct(ProductModel targetProduct)
BundleRuleDaoAbstractBundleRuleModels that have the given targetProduct as target product.findBundleRulesByTargetProduct in interface BundleRuleDao<R extends AbstractBundleRuleModel>targetProduct - the target ProductModel of the bundle ruleList of AbstractBundleRuleModels or empty List.public abstract java.lang.String getFindBundleRulesByTargetProductQuery()
public abstract java.lang.String getFindBundleRulesByTargetProductAndTemplateQuery()
public abstract java.lang.String getFindBundleRulesByProductAndRootTemplateQuery()
Copyright © 2018 SAP SE. All Rights Reserved.