Class DefaultBundleTemplateDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.configurablebundleservices.daos.impl.DefaultBundleTemplateDao
- All Implemented Interfaces:
BundleTemplateDao,Dao
Default implementation of the
BundleTemplateDao.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAbstractOrderEntriesByBundleTemplate(BundleTemplateModel bundleTemplate) Find allAbstractOrderEntryModels the givenBundleTemplateModelis assigned tofindAllApprovedRootBundleTemplates(CatalogVersionModel catalogVersion) Find all approvedBundleTemplateModels.findAllRootBundleTemplates(CatalogVersionModel catalogVersion) Find allBundleTemplateModels.findBundleTemplateById(String bundleId) This method returns theBundleTemplateModelcorresponding to the bundleIDfindBundleTemplateByIdAndVersion(String bundleId, String version) This method returns theBundleTemplateModelcorresponding to the bundleID and versionfindBundleTemplatesByProduct(ProductModel productModel) Finds theBundleTemplateModels for the givenproductModel.findTemplatesByMasterOrderAndBundleNo(AbstractOrderModel masterAbstractOrder, int bundleNo) Finds the distinctBundleTemplateModels in the order entries that match the given filter criteriaMethods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultBundleTemplateDao
public DefaultBundleTemplateDao()
-
-
Method Details
-
findBundleTemplateById
Description copied from interface:BundleTemplateDaoThis method returns theBundleTemplateModelcorresponding to the bundleID- Specified by:
findBundleTemplateByIdin interfaceBundleTemplateDao- Returns:
BundleTemplateModel
-
findBundleTemplateByIdAndVersion
@Nonnull public BundleTemplateModel findBundleTemplateByIdAndVersion(String bundleId, String version) Description copied from interface:BundleTemplateDaoThis method returns theBundleTemplateModelcorresponding to the bundleID and version- Specified by:
findBundleTemplateByIdAndVersionin interfaceBundleTemplateDaoversion- Bundle Version- Returns:
BundleTemplateModel
-
findBundleTemplatesByProduct
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 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 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 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 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
-