KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > rice > rubis > beans > CategoryLocal


1 package edu.rice.rubis.beans;
2
3 import javax.ejb.*;
4 import java.rmi.*;
5
6 /**
7  * This is the local Interface of the Category Bean
8  * @author <a HREF="mailto:cecchet@rice.edu">Emmanuel Cecchet</a> and <a HREF="mailto:julie.marguerite@inrialpes.fr">Julie Marguerite</a>
9  * @version 1.0
10  */

11 public interface CategoryLocal extends EJBLocalObject {
12   /**
13    * Get category's id.
14    *
15    * @return category id
16    */

17   public Integer JavaDoc getId();
18
19   /**
20    * Get the category name.
21    *
22    * @return category name
23    */

24   public String JavaDoc getName();
25
26   /**
27    * Set category's name
28    *
29    * @param newName category name
30    */

31   public void setName(String JavaDoc newName);
32
33
34   /**
35    * Display category information for the BrowseCategories servlet
36    *
37    * @return a <code>String</code> containing HTML code
38    * @since 1.0
39    */

40   public String JavaDoc printCategory();
41
42   /**
43    * Display category information for the BrowseCategories servlet
44    *
45    * @return a <code>String</code> containing HTML code
46    * @since 1.0
47    */

48   public String JavaDoc printCategoryByRegion(int regionId);
49
50   /**
51    * Display category information for the BrowseCategories servlet
52    *
53    * @return a <code>String</code> containing HTML code
54    * @since 1.0
55    */

56   public String JavaDoc printCategoryToSellItem(int userId);
57 }
58
Popular Tags