edu.rice.rubis.beans
Interface Category

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface Category
extends javax.ejb.EJBObject

This is the Remote Interface of the Category Bean

Version:
1.0
Author:
Emmanuel Cecchet and Julie Marguerite

Method Summary
 java.lang.Integer getId()
          Get category's id.
 java.lang.String getName()
          Get the category name.
 java.lang.String printCategory()
          Display category information for the BrowseCategories servlet
 java.lang.String printCategoryByRegion(int regionId)
          Display category information for the BrowseCategories servlet
 java.lang.String printCategoryToSellItem(int userId)
          Display category information for the BrowseCategories servlet
 void setName(java.lang.String newName)
          Set category's name
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getId

public java.lang.Integer getId()
                        throws java.rmi.RemoteException
Get category's id.
Returns:
category id
Throws:
java.rmi.RemoteException - if an error occurs

getName

public java.lang.String getName()
                         throws java.rmi.RemoteException
Get the category name.
Returns:
category name
Throws:
java.rmi.RemoteException - if an error occurs

setName

public void setName(java.lang.String newName)
             throws java.rmi.RemoteException
Set category's name
Parameters:
newName - category name
Throws:
java.rmi.RemoteException - if an error occurs

printCategory

public java.lang.String printCategory()
                               throws java.rmi.RemoteException
Display category information for the BrowseCategories servlet
Returns:
a String containing HTML code
Throws:
java.rmi.RemoteException - if an error occurs
Since:
1.0

printCategoryByRegion

public java.lang.String printCategoryByRegion(int regionId)
                                       throws java.rmi.RemoteException
Display category information for the BrowseCategories servlet
Returns:
a String containing HTML code
Throws:
java.rmi.RemoteException - if an error occurs
Since:
1.0

printCategoryToSellItem

public java.lang.String printCategoryToSellItem(int userId)
                                         throws java.rmi.RemoteException
Display category information for the BrowseCategories servlet
Returns:
a String containing HTML code
Throws:
java.rmi.RemoteException - if an error occurs
Since:
1.0


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.