Class DefaultDisableProductBundleRuleDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.configurablebundleservices.daos.impl.AbstractBundleRuleDao<DisableProductBundleRuleModel>
de.hybris.platform.configurablebundleservices.daos.impl.DefaultDisableProductBundleRuleDao
- All Implemented Interfaces:
BundleRuleDao<DisableProductBundleRuleModel>,Dao
public class DefaultDisableProductBundleRuleDao
extends AbstractBundleRuleDao<DisableProductBundleRuleModel>
Default implementation of the
AbstractBundleRuleDao for sub-type DisableProductBundleRuleModel.-
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.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, setModelService
-
Constructor Details
-
DefaultDisableProductBundleRuleDao
public DefaultDisableProductBundleRuleDao()
-
-
Method Details
-
getFindBundleRulesByTargetProductQuery
- Specified by:
getFindBundleRulesByTargetProductQueryin classAbstractBundleRuleDao<DisableProductBundleRuleModel>
-
getFindBundleRulesByTargetProductAndTemplateQuery
- Specified by:
getFindBundleRulesByTargetProductAndTemplateQueryin classAbstractBundleRuleDao<DisableProductBundleRuleModel>
-
getFindBundleRulesByProductAndRootTemplateQuery
- Specified by:
getFindBundleRulesByProductAndRootTemplateQueryin classAbstractBundleRuleDao<DisableProductBundleRuleModel>
-
findBundleRulesByProductAndRootTemplate
@Nonnull public List<DisableProductBundleRuleModel> 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<DisableProductBundleRuleModel>- Overrides:
findBundleRulesByProductAndRootTemplatein classAbstractBundleRuleDao<DisableProductBundleRuleModel>- 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.
-