1 package org.springframework.samples.jpetstore.dao;2 3 import java.util.List ;4 5 import org.springframework.dao.DataAccessException;6 import org.springframework.samples.jpetstore.domain.Item;7 import org.springframework.samples.jpetstore.domain.Order;8 9 public interface ItemDao {10 11 public void updateQuantity(Order order) throws DataAccessException;12 13 boolean isItemInStock(String itemId) throws DataAccessException;14 15 List getItemListByProduct(String productId) throws DataAccessException;16 17 Item getItem(String itemId) throws DataAccessException;18 19 }20