public class DefaultBundleTemplateDao extends AbstractItemDao implements BundleTemplateDao
BundleTemplateDao.flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultBundleTemplateDao() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AbstractOrderEntryModel> |
findAbstractOrderEntriesByBundleTemplate(BundleTemplateModel bundleTemplate)
Find all
AbstractOrderEntryModels the given BundleTemplateModel is assigned to |
java.util.List<BundleTemplateModel> |
findAllApprovedRootBundleTemplates(CatalogVersionModel catalogVersion)
Find all approved
BundleTemplateModels. |
java.util.List<BundleTemplateModel> |
findAllRootBundleTemplates(CatalogVersionModel catalogVersion)
Find all
BundleTemplateModels. |
BundleTemplateModel |
findBundleTemplateById(java.lang.String bundleId)
This method returns the
BundleTemplateModel corresponding to the bundleID |
BundleTemplateModel |
findBundleTemplateByIdAndVersion(java.lang.String bundleId,
java.lang.String version)
This method returns the
BundleTemplateModel corresponding to the bundleID and version |
java.util.List<BundleTemplateModel> |
findBundleTemplatesByProduct(ProductModel productModel)
Finds the
BundleTemplateModels for the given productModel. |
java.util.List<BundleTemplateModel> |
findTemplatesByMasterOrderAndBundleNo(AbstractOrderModel masterAbstractOrder,
int bundleNo)
Finds the distinct
BundleTemplateModels in the order entries that match the given filter criteria |
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic BundleTemplateModel findBundleTemplateById(java.lang.String bundleId)
BundleTemplateDaoBundleTemplateModel corresponding to the bundleIDfindBundleTemplateById in interface BundleTemplateDaoBundleTemplateModelpublic BundleTemplateModel findBundleTemplateByIdAndVersion(java.lang.String bundleId, java.lang.String version)
BundleTemplateDaoBundleTemplateModel corresponding to the bundleID and versionfindBundleTemplateByIdAndVersion in interface BundleTemplateDaoversion - Bundle VersionBundleTemplateModelpublic java.util.List<BundleTemplateModel> findBundleTemplatesByProduct(ProductModel productModel)
BundleTemplateDaoBundleTemplateModels for the given productModel. A BundleTemplateModel is
selected if it is a child bundle template and the given productModel is in the bundle template's
products list.findBundleTemplatesByProduct in interface BundleTemplateDaoproductModel - the productList of BundleTemplateModels or empty List.public java.util.List<BundleTemplateModel> findTemplatesByMasterOrderAndBundleNo(AbstractOrderModel masterAbstractOrder, int bundleNo)
BundleTemplateDaoBundleTemplateModels in the order entries that match the given filter criteriafindTemplatesByMasterOrderAndBundleNo in interface BundleTemplateDaomasterAbstractOrder - the master cart/order the bundle is inbundleNo - the number of the bundle to which the bundle templates belongList of BundleTemplateModels or empty List.public java.util.List<BundleTemplateModel> findAllRootBundleTemplates(CatalogVersionModel catalogVersion)
BundleTemplateDaoBundleTemplateModels.findAllRootBundleTemplates in interface BundleTemplateDaocatalogVersion - the catalogversion the bundletemplate is inList of BundleTemplateModelspublic java.util.List<BundleTemplateModel> findAllApprovedRootBundleTemplates(CatalogVersionModel catalogVersion)
BundleTemplateDaoBundleTemplateModels.findAllApprovedRootBundleTemplates in interface BundleTemplateDaocatalogVersion - the catalogversion the bundletemplate is inList of BundleTemplateModelspublic java.util.List<AbstractOrderEntryModel> findAbstractOrderEntriesByBundleTemplate(BundleTemplateModel bundleTemplate)
BundleTemplateDaoAbstractOrderEntryModels the given BundleTemplateModel is assigned tofindAbstractOrderEntriesByBundleTemplate in interface BundleTemplateDaobundleTemplate - the bundletemplateList of AbstractOrderEntryModelsCopyright © 2018 SAP SE. All Rights Reserved.