Class DefaultConsignmentDao

    • Constructor Detail

      • DefaultConsignmentDao

        public DefaultConsignmentDao()
    • Method Detail

      • findConsignmentByCode

        public java.util.Optional<ConsignmentModel> findConsignmentByCode​(java.lang.String orderCode,
                                                                          java.lang.String consignmentCode)
        Specified by:
        findConsignmentByCode in interface ConsignmentDao
        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

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