All Known Implementing Classes:
DefaultVendorDao

public interface VendorDao
Dao with Vendor related methods
  • Method Details

    • findVendorByCode

      Optional<VendorModel> findVendorByCode(String vendorCode)
      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

      Optional<VendorModel> findVendorByProduct(ProductModel product)
      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

      Optional<VendorModel> findVendorByConsignmentCode(String consignmentCode)
      Find vendor for given consignment
      Parameters:
      consignmentCode - code of the consignment
      Returns:
      VendorModel otherwise empty option
    • findPendingConsignmentEntryForVendor

      List<ConsignmentEntryModel> findPendingConsignmentEntryForVendor(String vendorCode)
      find consignmententries in WAITING status for a vendor
      Parameters:
      vendorCode - the vendor's code
      Returns:
      list of consignmententries
    • findPagedActiveVendors

      SearchPageData<VendorModel> findPagedActiveVendors(PageableData pageableData)
      Find all active vendors
      Parameters:
      pageableData - the pagination data
      Returns:
      paging result of all active vendors