01: package com.odal.petstore.persistence.iface;
02:
03: import com.odal.petstore.OdalPetstoreException;
04: import com.odal.petstore.domain.Product;
05:
06: import java.util.List;
07:
08: /**
09: * @author Gennady Krizhevsky
10: */
11: public interface ProductDao {
12: int PAGE_SIZE = 4;
13:
14: Product getProduct(String productId) throws OdalPetstoreException;
15:
16: List getProductListByCategory(String category, int pageNumber)
17: throws OdalPetstoreException;
18:
19: List searchProductList(String keywordsString, int pageNumber)
20: throws OdalPetstoreException;
21: }
|