public interface ShipmentFacade
| Modifier and Type | Method and Description |
|---|---|
Shipment |
addShipment(long ean,
Date date,
int arrived)
Creates a new shipment, does not store it in db
|
List<Shipment> |
getAllShipments()
Get all shipments
|
Shipment |
storeShipmentInDb(Shipment s)
Actually stores correctly created shipment in the db
|
Shipment addShipment(long ean, Date date, int arrived) throws EntityDoesNotExistException
ean - ean of item that was shippeddate - date when shipment arrivedarrived - how many items arrivedEntityDoesNotExistException - when item does not existShipment storeShipmentInDb(Shipment s) throws ServiceException
s - shipment to be storedServiceException - if something goes wrong on the db layer and service layer cannot deal with itCopyright © 2017 Pivotal Software, Inc.. All rights reserved.