Interface ConsignmentDao
-
- All Known Implementing Classes:
DefaultConsignmentDao
public interface ConsignmentDaoA interface for querying consignment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<ConsignmentModel>findConsignmentByCode(java.lang.String orderCode, java.lang.String consignmentCode)java.util.List<ConsignmentModel>findConsignmentsByOrder(java.lang.String orderCode)
-
-
-
Method Detail
-
findConsignmentByCode
java.util.Optional<ConsignmentModel> findConsignmentByCode(java.lang.String orderCode, java.lang.String consignmentCode)
- Parameters:
orderCode- code of this consignment's orderconsignmentCode- 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
-
-