Interface ConsignmentDao

All Known Implementing Classes:
DefaultConsignmentDao

public interface ConsignmentDao
A interface for querying consignment
  • Method Details

    • findConsignmentByCode

      Optional<ConsignmentModel> findConsignmentByCode(String orderCode, String consignmentCode)
      Parameters:
      orderCode - code of this consignment's order
      consignmentCode - code of ConsignmentModel
      Returns:
      An optional containing the consignment if it exists and an empty optional otherwise
    • findConsignmentsByOrder

      List<ConsignmentModel> findConsignmentsByOrder(String orderCode)
      Parameters:
      orderCode - order code for the consignments
      Returns:
      all the consignments belong to this order