Interface ConsignmentDao
- All Known Implementing Classes:
DefaultConsignmentDao
public interface ConsignmentDao
A interface for querying consignment
-
Method Summary
Modifier and TypeMethodDescriptionfindConsignmentByCode(String orderCode, String consignmentCode) findConsignmentsByOrder(String orderCode)
-
Method Details
-
findConsignmentByCode
- 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
- Parameters:
orderCode- order code for the consignments- Returns:
- all the consignments belong to this order
-