Interface BundleTemplateDao
- All Known Implementing Classes:
DefaultBundleTemplateDao
public interface BundleTemplateDao
Data Access Object for looking up items related to
BundleTemplateModel.- Spring Bean ID:
- bundleTemplateDao
-
Method Summary
Modifier and TypeMethodDescriptionfindAbstractOrderEntriesByBundleTemplate(BundleTemplateModel bundleTemplate) Deprecated, for removal: This API element is subject to removal in a future version.since 1905, use EntryGroup#externalReferenceIdfindAllApprovedRootBundleTemplates(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) Deprecated, for removal: This API element is subject to removal in a future version.since 1905, use EntryGroup#groupNumber
-
Method Details
-
findBundleTemplateById
This method returns theBundleTemplateModelcorresponding to the bundleID- Parameters:
bundleId-- Returns:
BundleTemplateModel
-
findBundleTemplateByIdAndVersion
This method returns theBundleTemplateModelcorresponding to the bundleID and version- Parameters:
bundleId-version- Bundle Version- Returns:
BundleTemplateModel
-
findBundleTemplatesByProduct
Finds theBundleTemplateModels for the givenproductModel. ABundleTemplateModelis selected if it is a child bundle template and the givenproductModelis in the bundle template's products list.- Parameters:
productModel- the product- Returns:
ListofBundleTemplateModels or emptyList.
-
findTemplatesByMasterOrderAndBundleNo
@Deprecated(since="1905", forRemoval=true) @Nonnull List<BundleTemplateModel> findTemplatesByMasterOrderAndBundleNo(AbstractOrderModel masterAbstractOrder, int bundleNo) Deprecated, for removal: This API element is subject to removal in a future version.since 1905, use EntryGroup#groupNumberFinds the distinctBundleTemplateModels in the order entries that match the given filter criteria- 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
Find allBundleTemplateModels.- Parameters:
catalogVersion- the catalogversion the bundletemplate is in- Returns:
ListofBundleTemplateModels
-
findAllApprovedRootBundleTemplates
@Nonnull List<BundleTemplateModel> findAllApprovedRootBundleTemplates(CatalogVersionModel catalogVersion) Find all approvedBundleTemplateModels.- Parameters:
catalogVersion- the catalogversion the bundletemplate is in- Returns:
ListofBundleTemplateModels
-
findAbstractOrderEntriesByBundleTemplate
@Deprecated(since="1905", forRemoval=true) @Nonnull List<AbstractOrderEntryModel> findAbstractOrderEntriesByBundleTemplate(BundleTemplateModel bundleTemplate) Deprecated, for removal: This API element is subject to removal in a future version.since 1905, use EntryGroup#externalReferenceIdFind allAbstractOrderEntryModels the givenBundleTemplateModelis assigned to- Parameters:
bundleTemplate- the bundletemplate- Returns:
ListofAbstractOrderEntryModels
-