Interface ConsignmentDao

  • All Known Implementing Classes:
    DefaultConsignmentDao

    public interface ConsignmentDao
    A interface for querying consignment
    • Method Detail

      • findConsignmentByCode

        java.util.Optional<ConsignmentModel> findConsignmentByCode​(java.lang.String orderCode,
                                                                   java.lang.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

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