1 package ejava.examples.asyncmarket.dao; 2 3 import java.util.List; 4 import java.util.Map; 5 6 import ejava.examples.asyncmarket.bo.AuctionItem; 7 import ejava.examples.asyncmarket.bo.Bid; 8 9 public interface AuctionItemDAO { 10 AuctionItem getItem(long itemId); 11 AuctionItem createItem(AuctionItem item); 12 AuctionItem updateItem(AuctionItem item); 13 Bid getBid(long bidId); 14 void removeBid(Bid bid); 15 void removeItem(long id); 16 List<AuctionItem> getItems(int index, int count); 17 List<AuctionItem> getAvailableItems(int index, int count); 18 List<AuctionItem> getItems( 19 String queryString, Map<String, Object> args, int index, int count); 20 }