Interface VendorDao
- All Known Implementing Classes:
DefaultVendorDao
public interface VendorDao
Dao with Vendor related methods
-
Method Summary
Modifier and TypeMethodDescriptionFind 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 vendorfindVendorByCode(String vendorCode) Find VendorModel by given codefindVendorByConsignmentCode(String consignmentCode) Find vendor for given consignmentfindVendorByProduct(ProductModel product) Find vendor for given product
-
Method Details
-
findVendorByCode
Find VendorModel by given code- Parameters:
vendorCode-- Returns:
- VendorModel otherwise empty option
-
findActiveVendors
List<VendorModel> findActiveVendors()Find all active vendors- Returns:
- the list of all active vendors
-
findVendorByProduct
Find vendor for given product- Parameters:
product- product to check- Returns:
- VendorModel otherwise empty option
-
findActiveCatalogs
List<CatalogModel> findActiveCatalogs()Find all catalogs belongs to active vendors- Returns:
- list of all active catalogs
-
findActiveCatalogVersions
List<CatalogVersionModel> findActiveCatalogVersions()Final all active catalog versions belongs to active vendors- Returns:
- list of all active catalog versions
-
findVendorByConsignmentCode
Find vendor for given consignment- Parameters:
consignmentCode- code of the consignment- Returns:
- VendorModel otherwise empty option
-
findPendingConsignmentEntryForVendor
find consignmententries in WAITING status for a vendor- Parameters:
vendorCode- the vendor's code- Returns:
- list of consignmententries
-
findPagedActiveVendors
Find all active vendors- Parameters:
pageableData- the pagination data- Returns:
- paging result of all active vendors
-