Class DefaultBundleTemplateDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.configurablebundleservices.daos.impl.DefaultBundleTemplateDao
-
- All Implemented Interfaces:
BundleTemplateDao,Dao
public class DefaultBundleTemplateDao extends AbstractItemDao implements BundleTemplateDao
Default implementation of theBundleTemplateDao.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultBundleTemplateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AbstractOrderEntryModel>findAbstractOrderEntriesByBundleTemplate(BundleTemplateModel bundleTemplate)Find allAbstractOrderEntryModels the givenBundleTemplateModelis assigned tojava.util.List<BundleTemplateModel>findAllApprovedRootBundleTemplates(CatalogVersionModel catalogVersion)Find all approvedBundleTemplateModels.java.util.List<BundleTemplateModel>findAllRootBundleTemplates(CatalogVersionModel catalogVersion)Find allBundleTemplateModels.BundleTemplateModelfindBundleTemplateById(java.lang.String bundleId)This method returns theBundleTemplateModelcorresponding to the bundleIDBundleTemplateModelfindBundleTemplateByIdAndVersion(java.lang.String bundleId, java.lang.String version)This method returns theBundleTemplateModelcorresponding to the bundleID and versionjava.util.List<BundleTemplateModel>findBundleTemplatesByProduct(ProductModel productModel)Finds theBundleTemplateModels for the givenproductModel.java.util.List<BundleTemplateModel>findTemplatesByMasterOrderAndBundleNo(AbstractOrderModel masterAbstractOrder, int bundleNo)Finds the distinctBundleTemplateModels in the order entries that match the given filter criteria-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
findBundleTemplateById
@Nonnull public BundleTemplateModel findBundleTemplateById(java.lang.String bundleId)
Description copied from interface:BundleTemplateDaoThis method returns theBundleTemplateModelcorresponding to the bundleID- Specified by:
findBundleTemplateByIdin interfaceBundleTemplateDao- Returns:
BundleTemplateModel
-
findBundleTemplateByIdAndVersion
@Nonnull public BundleTemplateModel findBundleTemplateByIdAndVersion(java.lang.String bundleId, java.lang.String version)
Description copied from interface:BundleTemplateDaoThis method returns theBundleTemplateModelcorresponding to the bundleID and version- Specified by:
findBundleTemplateByIdAndVersionin interfaceBundleTemplateDaoversion- Bundle Version- Returns:
BundleTemplateModel
-
findBundleTemplatesByProduct
@Nonnull public java.util.List<BundleTemplateModel> findBundleTemplatesByProduct(ProductModel productModel)
Description copied from interface:BundleTemplateDaoFinds theBundleTemplateModels for the givenproductModel. ABundleTemplateModelis selected if it is a child bundle template and the givenproductModelis in the bundle template's products list.- Specified by:
findBundleTemplatesByProductin interfaceBundleTemplateDao- Parameters:
productModel- the product- Returns:
ListofBundleTemplateModels or emptyList.
-
findTemplatesByMasterOrderAndBundleNo
@Nonnull public java.util.List<BundleTemplateModel> findTemplatesByMasterOrderAndBundleNo(AbstractOrderModel masterAbstractOrder, int bundleNo)
Description copied from interface:BundleTemplateDaoFinds the distinctBundleTemplateModels in the order entries that match the given filter criteria- Specified by:
findTemplatesByMasterOrderAndBundleNoin interfaceBundleTemplateDao- Parameters:
masterAbstractOrder- the master cart/order the bundle is inbundleNo- the number of the bundle to which the bundle templates belong- Returns:
ListofBundleTemplateModels or emptyList.
-
findAllRootBundleTemplates
@Nonnull public java.util.List<BundleTemplateModel> findAllRootBundleTemplates(CatalogVersionModel catalogVersion)
Description copied from interface:BundleTemplateDaoFind allBundleTemplateModels.- Specified by:
findAllRootBundleTemplatesin interfaceBundleTemplateDao- Parameters:
catalogVersion- the catalogversion the bundletemplate is in- Returns:
ListofBundleTemplateModels
-
findAllApprovedRootBundleTemplates
@Nonnull public java.util.List<BundleTemplateModel> findAllApprovedRootBundleTemplates(CatalogVersionModel catalogVersion)
Description copied from interface:BundleTemplateDaoFind all approvedBundleTemplateModels.- Specified by:
findAllApprovedRootBundleTemplatesin interfaceBundleTemplateDao- Parameters:
catalogVersion- the catalogversion the bundletemplate is in- Returns:
ListofBundleTemplateModels
-
findAbstractOrderEntriesByBundleTemplate
@Nonnull public java.util.List<AbstractOrderEntryModel> findAbstractOrderEntriesByBundleTemplate(BundleTemplateModel bundleTemplate)
Description copied from interface:BundleTemplateDaoFind allAbstractOrderEntryModels the givenBundleTemplateModelis assigned to- Specified by:
findAbstractOrderEntriesByBundleTemplatein interfaceBundleTemplateDao- Parameters:
bundleTemplate- the bundletemplate- Returns:
ListofAbstractOrderEntryModels
-
-