KickJava   Java API By Example, From Geeks To Geeks.

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


1 package edu.rice.rubis.beans;
2
3 import javax.ejb.*;
4 import java.rmi.*;
5
6 /**
7  * This is the Remote 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 Category extends EJBObject {
12   /**
13    * Get category's id.
14    *
15    * @return category id
16    * @exception RemoteException if an error occurs
17    */

18   public Integer JavaDoc getId() throws RemoteException;
19
20   /**
21    * Get the category name.
22    *
23    * @return category name
24    * @exception RemoteException if an error occurs
25    */

26   public String JavaDoc getName() throws RemoteException;
27
28   /**
29    * Set category's name
30    *
31    * @param newName category name
32    * @exception RemoteException if an error occurs
33    */

34   public void setName(String JavaDoc newName) throws RemoteException;
35
36
37   /**
38    * Display category information for the BrowseCategories servlet
39    *
40    * @return a <code>String</code> containing HTML code
41    * @exception RemoteException if an error occurs
42    * @since 1.0
43    */

44   public String JavaDoc printCategory() throws RemoteException;
45
46   /**
47    * Display category information for the BrowseCategories servlet
48    *
49    * @return a <code>String</code> containing HTML code
50    * @exception RemoteException if an error occurs
51    * @since 1.0
52    */

53   public String JavaDoc printCategoryByRegion(int regionId) throws RemoteException;
54
55   /**
56    * Display category information for the BrowseCategories servlet
57    *
58    * @return a <code>String</code> containing HTML code
59    * @exception RemoteException if an error occurs
60    * @since 1.0
61    */

62   public String JavaDoc printCategoryToSellItem(int userId) throws RemoteException;
63 }
64
Popular Tags