Class DefaultVendorDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<VendorModel>
de.hybris.platform.marketplaceservices.vendor.daos.impl.DefaultVendorDao
- All Implemented Interfaces:
VendorDao,GenericDao<VendorModel>
Default implementation for
VendorDao.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SortQueryDatacreateSortQueryData(String sortCode, String query) Find all catalogs belongs to active vendorsFinal all active catalog versions belongs to active vendorsFind all active vendorsfindPagedActiveVendors(PageableData pageableData) Find all active vendorsfindPendingConsignmentEntryForVendor(String vendorCode) find consignmententries in WAITING status for a vendorprotected Optional<VendorModel>findUnique(FlexibleSearchQuery query) findVendorByCode(String vendorCode) Find VendorModel by given codefindVendorByConsignmentCode(String consignmentCode) Find vendor for given consignmentfindVendorByProduct(ProductModel product) Find vendor for given productprotected PagedFlexibleSearchServicevoidsetPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService) Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Field Details
-
VENDOR_CODE
- See Also:
-
VENDOR_ACTIVE
- See Also:
-
PRODUCT_CODE
- See Also:
-
CONSIGNMENT_CODE
- See Also:
-
CATEGORY_TO_VENDOR_RELATION
- See Also:
-
ORDER_BY_NAME_ASC
- See Also:
-
ORDER_BY_NAME_DESC
- See Also:
-
FIND_VENDOR_FOR_ID
- See Also:
-
FIND_ACTIVE_VENDORS
- See Also:
-
FIND_VENDOR_BY_PRODUCT_CODE
- See Also:
-
FIND_VENDOR_BY_CONSIGNMENT_CODE
- See Also:
-
FIND_ACTIVE_CATALOGS
- See Also:
-
FIND_ACTIVE_CATALOGVERSIONS
- See Also:
-
FIND_PENDING_CONSIGNMENTENTRY_FOR_VENDOR
- See Also:
-
-
Constructor Details
-
DefaultVendorDao
public DefaultVendorDao()
-
-
Method Details
-
findVendorByCode
Description copied from interface:VendorDaoFind VendorModel by given code- Specified by:
findVendorByCodein interfaceVendorDao- Returns:
- VendorModel otherwise empty option
-
findActiveVendors
Description copied from interface:VendorDaoFind all active vendors- Specified by:
findActiveVendorsin interfaceVendorDao- Returns:
- the list of all active vendors
-
findVendorByProduct
Description copied from interface:VendorDaoFind vendor for given product- Specified by:
findVendorByProductin interfaceVendorDao- Parameters:
product- product to check- Returns:
- VendorModel otherwise empty option
-
findVendorByConsignmentCode
Description copied from interface:VendorDaoFind vendor for given consignment- Specified by:
findVendorByConsignmentCodein interfaceVendorDao- Parameters:
consignmentCode- code of the consignment- Returns:
- VendorModel otherwise empty option
-
findActiveCatalogs
Description copied from interface:VendorDaoFind all catalogs belongs to active vendors- Specified by:
findActiveCatalogsin interfaceVendorDao- Returns:
- list of all active catalogs
-
findActiveCatalogVersions
Description copied from interface:VendorDaoFinal all active catalog versions belongs to active vendors- Specified by:
findActiveCatalogVersionsin interfaceVendorDao- Returns:
- list of all active catalog versions
-
findPendingConsignmentEntryForVendor
Description copied from interface:VendorDaofind consignmententries in WAITING status for a vendor- Specified by:
findPendingConsignmentEntryForVendorin interfaceVendorDao- Parameters:
vendorCode- the vendor's code- Returns:
- list of consignmententries
-
findPagedActiveVendors
Description copied from interface:VendorDaoFind all active vendors- Specified by:
findPagedActiveVendorsin interfaceVendorDao- Parameters:
pageableData- the pagination data- Returns:
- paging result of all active vendors
-
findUnique
-
createSortQueryData
-
getPagedFlexibleSearchService
-
setPagedFlexibleSearchService
-