Class DefaultChangeProductPriceBundleRuleDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.configurablebundleservices.daos.impl.AbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
-
- de.hybris.platform.configurablebundleservices.daos.impl.DefaultChangeProductPriceBundleRuleDao
-
- All Implemented Interfaces:
BundleRuleDao<ChangeProductPriceBundleRuleModel>
,ChangeProductPriceBundleRuleDao
,Dao
public class DefaultChangeProductPriceBundleRuleDao extends AbstractBundleRuleDao<ChangeProductPriceBundleRuleModel> implements ChangeProductPriceBundleRuleDao
Default implementation of theChangeProductPriceBundleRuleDao
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultChangeProductPriceBundleRuleDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ChangeProductPriceBundleRuleModel>
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.util.List<ChangeProductPriceBundleRuleModel>
findBundleRulesByTargetProductAndCurrency(ProductModel targetProduct, CurrencyModel currency)
Find allChangeProductPriceBundleRuleModel
s that have the giventargetProduct
as target product.java.util.List<ChangeProductPriceBundleRuleModel>
findBundleRulesByTargetProductAndTemplateAndCurrency(ProductModel targetProduct, BundleTemplateModel bundleTemplate, CurrencyModel currency)
Find allChangeProductPriceBundleRuleModel
s that are assigned to the givenbundleTemplate
and have the giventargetProduct
as target 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.configurablebundleservices.daos.BundleRuleDao
findBundleRulesByTargetProduct, findBundleRulesByTargetProductAndTemplate
-
-
-
-
Method Detail
-
getFindBundleRulesByTargetProductQuery
public java.lang.String getFindBundleRulesByTargetProductQuery()
- Specified by:
getFindBundleRulesByTargetProductQuery
in classAbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
-
getFindBundleRulesByTargetProductAndTemplateQuery
public java.lang.String getFindBundleRulesByTargetProductAndTemplateQuery()
- Specified by:
getFindBundleRulesByTargetProductAndTemplateQuery
in classAbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
-
getFindBundleRulesByProductAndRootTemplateQuery
public java.lang.String getFindBundleRulesByProductAndRootTemplateQuery()
- Specified by:
getFindBundleRulesByProductAndRootTemplateQuery
in classAbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
-
findBundleRulesByTargetProductAndCurrency
@Nonnull public java.util.List<ChangeProductPriceBundleRuleModel> findBundleRulesByTargetProductAndCurrency(@Nonnull ProductModel targetProduct, @Nonnull CurrencyModel currency)
Description copied from interface:ChangeProductPriceBundleRuleDao
Find allChangeProductPriceBundleRuleModel
s that have the giventargetProduct
as target product.- Specified by:
findBundleRulesByTargetProductAndCurrency
in interfaceChangeProductPriceBundleRuleDao
- Parameters:
targetProduct
- the targetProductModel
of the bundle rulecurrency
- the currency of the rule's price- Returns:
List
ofChangeProductPriceBundleRuleModel
s or emptyList
.
-
findBundleRulesByTargetProductAndTemplateAndCurrency
@Nonnull public java.util.List<ChangeProductPriceBundleRuleModel> findBundleRulesByTargetProductAndTemplateAndCurrency(@Nonnull ProductModel targetProduct, @Nonnull BundleTemplateModel bundleTemplate, @Nonnull CurrencyModel currency)
Description copied from interface:ChangeProductPriceBundleRuleDao
Find allChangeProductPriceBundleRuleModel
s that are assigned to the givenbundleTemplate
and have the giventargetProduct
as target product.- Specified by:
findBundleRulesByTargetProductAndTemplateAndCurrency
in interfaceChangeProductPriceBundleRuleDao
- Parameters:
targetProduct
- the targetProductModel
of the bundle rulebundleTemplate
- theBundleTemplateModel
the bundle rule is assigned tocurrency
- the currency of the rule's price- Returns:
List
ofChangeProductPriceBundleRuleModel
s or emptyList
.
-
findBundleRulesByProductAndRootTemplate
@Nonnull public java.util.List<ChangeProductPriceBundleRuleModel> 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<ChangeProductPriceBundleRuleModel>
- Overrides:
findBundleRulesByProductAndRootTemplate
in classAbstractBundleRuleDao<ChangeProductPriceBundleRuleModel>
- 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
.
-
-