1 package ejava.examples.ejbwar.inventory.dao;
2
3 import java.util.List;
4
5 import ejava.examples.ejbwar.inventory.bo.Category;
6 import ejava.examples.ejbwar.inventory.bo.Product;
7
8
9
10
11 public interface InventoryDAO {
12
13 void createCategory(Category category);
14 Category getCategory(int id);
15 List<Category> findCategoryByName(String criteria, int offset, int limit);
16 void deleteCategory(Category category);
17 void detachCategory(Category category);
18
19 void addProduct(Product p);
20 Product getProduct(int id);
21 Product updateProduct(Product product);
22 List<Product> findProductsByName(String criteria, int offset, int limit);
23 void deleteProduct(Product p);
24 }