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 theAbstractBundleRuleDaofor sub-typeDisableProductBundleRuleModel.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultDisableProductBundleRuleDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DisableProductBundleRuleModel>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.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
-
-
-
-
Method Detail
-
getFindBundleRulesByTargetProductQuery
public java.lang.String getFindBundleRulesByTargetProductQuery()
- Specified by:
getFindBundleRulesByTargetProductQueryin classAbstractBundleRuleDao<DisableProductBundleRuleModel>
-
getFindBundleRulesByTargetProductAndTemplateQuery
public java.lang.String getFindBundleRulesByTargetProductAndTemplateQuery()
- Specified by:
getFindBundleRulesByTargetProductAndTemplateQueryin classAbstractBundleRuleDao<DisableProductBundleRuleModel>
-
getFindBundleRulesByProductAndRootTemplateQuery
public java.lang.String getFindBundleRulesByProductAndRootTemplateQuery()
- Specified by:
getFindBundleRulesByProductAndRootTemplateQueryin classAbstractBundleRuleDao<DisableProductBundleRuleModel>
-
findBundleRulesByProductAndRootTemplate
@Nonnull public java.util.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.
-
-