01: package com.odal.petstore.persistence.iface;
02:
03: import com.odal.petstore.OdalPetstoreException;
04: import com.odal.petstore.domain.Item;
05: import com.odal.petstore.domain.Order;
06:
07: import java.util.List;
08:
09: /**
10: * @author Gennady Krizhevsky
11: */
12: public interface ItemDao {
13: void updateAllQuantitiesFromOrder(Order order)
14: throws OdalPetstoreException;
15:
16: boolean isItemInStock(String itemId) throws OdalPetstoreException;
17:
18: List getItemListByProduct(String productId)
19: throws OdalPetstoreException;
20:
21: Item getItem(String itemId) throws OdalPetstoreException;
22: }
|