View Javadoc
1   package ejava.examples.ejbwar.inventory.client;
2   
3   import ejava.examples.ejbwar.inventory.bo.Categories;
4   import ejava.examples.ejbwar.inventory.bo.Category;
5   import ejava.examples.ejbwar.inventory.bo.Product;
6   import ejava.examples.ejbwar.inventory.bo.Products;
7   
8   /**
9    * Defines a remote interface used by clients of the WAR-deployed EJB.
10   */
11  public interface InventoryClient {
12  	Categories findCategoryByName(String name, int offset, int limit) throws Exception;
13  	Category getCategory(int id) throws Exception;
14  	boolean deleteCategory(int id) throws Exception;
15  	
16  	Product createProduct(Product product, String string) throws Exception;
17  	Products findProductsByName(String name, int offset, int limit) throws Exception;
18  	Product getProduct(int id) throws Exception;
19  	Product updateProduct(Product product) throws Exception;
20  	boolean deleteProduct(int id) throws Exception;
21  }