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 theBundleRuleDao.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description AbstractBundleRuleDao()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<R>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.util.List<R>findBundleRulesByTargetProduct(ProductModel targetProduct)Find allAbstractBundleRuleModels that have the giventargetProductas target product.java.util.List<R>findBundleRulesByTargetProductAndTemplate(ProductModel targetProduct, BundleTemplateModel bundleTemplate)Find allAbstractBundleRuleModels that are assigned to the givenbundleTemplateand have the giventargetProductas target product.abstract java.lang.StringgetFindBundleRulesByProductAndRootTemplateQuery()abstract java.lang.StringgetFindBundleRulesByTargetProductAndTemplateQuery()abstract java.lang.StringgetFindBundleRulesByTargetProductQuery()-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
findBundleRulesByTargetProductAndTemplate
@Nonnull public java.util.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 java.util.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
@Nonnull public java.util.List<R> findBundleRulesByTargetProduct(@Nonnull ProductModel targetProduct)
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
public abstract java.lang.String getFindBundleRulesByTargetProductQuery()
-
getFindBundleRulesByTargetProductAndTemplateQuery
public abstract java.lang.String getFindBundleRulesByTargetProductAndTemplateQuery()
-
getFindBundleRulesByProductAndRootTemplateQuery
public abstract java.lang.String getFindBundleRulesByProductAndRootTemplateQuery()
-
-