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 theAbstractBundleRuleDao
for 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 allAbstractBundleRuleModel
s that are assigned to any of the givenrootBundleTemplate
's child components and have the givenproduct
either as target product or as conditional product.java.lang.String
getFindBundleRulesByProductAndRootTemplateQuery()
java.lang.String
getFindBundleRulesByTargetProductAndTemplateQuery()
java.lang.String
getFindBundleRulesByTargetProductQuery()
-
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:
getFindBundleRulesByTargetProductQuery
in classAbstractBundleRuleDao<DisableProductBundleRuleModel>
-
getFindBundleRulesByTargetProductAndTemplateQuery
public java.lang.String getFindBundleRulesByTargetProductAndTemplateQuery()
- Specified by:
getFindBundleRulesByTargetProductAndTemplateQuery
in classAbstractBundleRuleDao<DisableProductBundleRuleModel>
-
getFindBundleRulesByProductAndRootTemplateQuery
public java.lang.String getFindBundleRulesByProductAndRootTemplateQuery()
- Specified by:
getFindBundleRulesByProductAndRootTemplateQuery
in classAbstractBundleRuleDao<DisableProductBundleRuleModel>
-
findBundleRulesByProductAndRootTemplate
@Nonnull public java.util.List<DisableProductBundleRuleModel> findBundleRulesByProductAndRootTemplate(@Nonnull ProductModel product, @Nonnull BundleTemplateModel rootBundleTemplate)
Description copied from interface:BundleRuleDao
Find allAbstractBundleRuleModel
s that are assigned to any of the givenrootBundleTemplate
's child components and have the givenproduct
either as target product or as conditional product.- Specified by:
findBundleRulesByProductAndRootTemplate
in interfaceBundleRuleDao<DisableProductBundleRuleModel>
- Overrides:
findBundleRulesByProductAndRootTemplate
in classAbstractBundleRuleDao<DisableProductBundleRuleModel>
- Parameters:
product
- theProductModel
that is added to cartrootBundleTemplate
- the rootBundleTemplateModel
. OnlyDisableProductBundleRuleModel
s that are assigned to any of therootBundleTemplate
's child components, are retrieved.- Returns:
List
ofAbstractBundleRuleModel
s or emptyList
.
-
-