01: package org.springunit.framework.samples.jpetstore.dao;
02:
03: import java.util.List;
04:
05: import org.springframework.dao.DataAccessException;
06: import org.springunit.framework.samples.jpetstore.domain.Item;
07: import org.springunit.framework.samples.jpetstore.domain.Order;
08:
09: public interface ItemDao<V extends Item> extends Dao<V> {
10:
11: public void updateQuantity(Order order) throws DataAccessException;
12:
13: boolean isItemInStock(int itemId) throws DataAccessException;
14:
15: List<? extends V> getItemListByProductName(String name)
16: throws DataAccessException;
17:
18: V getItem(int itemId) throws DataAccessException;
19:
20: }
|