Class AbstractBundleRuleDao<R extends AbstractBundleRuleModel>
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.configurablebundleservices.daos.impl.AbstractBundleRuleDao<R>
- All Implemented Interfaces:
BundleRuleDao<R>,Dao
- Direct Known Subclasses:
DefaultChangeProductPriceBundleRuleDao,DefaultDisableProductBundleRuleDao
public abstract class AbstractBundleRuleDao<R extends AbstractBundleRuleModel>
extends AbstractItemDao
implements BundleRuleDao<R>
Abstract implementation of the
BundleRuleDao.-
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.findBundleRulesByTargetProduct(ProductModel targetProduct) Find allAbstractBundleRuleModels that have the giventargetProductas target product.findBundleRulesByTargetProductAndTemplate(ProductModel targetProduct, BundleTemplateModel bundleTemplate) Find allAbstractBundleRuleModels that are assigned to the givenbundleTemplateand have the giventargetProductas target product.abstract Stringabstract Stringabstract StringMethods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
AbstractBundleRuleDao
public AbstractBundleRuleDao()
-
-
Method Details
-
findBundleRulesByTargetProductAndTemplate
@Nonnull public List<R> findBundleRulesByTargetProductAndTemplate(@Nonnull ProductModel targetProduct, @Nonnull BundleTemplateModel bundleTemplate) Description copied from interface:BundleRuleDaoFind allAbstractBundleRuleModels that are assigned to the givenbundleTemplateand have the giventargetProductas target product.- Specified by:
findBundleRulesByTargetProductAndTemplatein interfaceBundleRuleDao<R extends AbstractBundleRuleModel>- Parameters:
targetProduct- the targetProductModelof the bundle rulebundleTemplate- theBundleTemplateModelthe bundle rule is assigned to- Returns:
ListofAbstractBundleRuleModels or emptyList.
-
findBundleRulesByProductAndRootTemplate
@Nonnull public List<R> 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<R extends AbstractBundleRuleModel>- 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.
-
findBundleRulesByTargetProduct
Description copied from interface:BundleRuleDaoFind allAbstractBundleRuleModels that have the giventargetProductas target product.- Specified by:
findBundleRulesByTargetProductin interfaceBundleRuleDao<R extends AbstractBundleRuleModel>- Parameters:
targetProduct- the targetProductModelof the bundle rule- Returns:
ListofAbstractBundleRuleModels or emptyList.
-
getFindBundleRulesByTargetProductQuery
-
getFindBundleRulesByTargetProductAndTemplateQuery
-
getFindBundleRulesByProductAndRootTemplateQuery
-