edu.rice.rubis.beans
Interface RegionHome

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

public interface RegionHome
extends javax.ejb.EJBHome

This is the Home interface of the Region Bean


Method Summary
 Region create(java.lang.String name)
          This method is used to create a new Region Bean.
 java.util.Collection findAllRegions()
          This method is used to retrieve all categories from the database!
 Region findByName(java.lang.String regionName)
          This method is used to retrieve a Region Bean from its name.
 Region findByPrimaryKey(RegionPK id)
          This method is used to retrieve a Region Bean from its primary key, that is to say its id.
 
Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove
 

Method Detail

create

public Region create(java.lang.String name)
              throws javax.ejb.CreateException,
                     java.rmi.RemoteException,
                     javax.ejb.RemoveException
This method is used to create a new Region Bean. Note that the region id is automatically generated by the database (AUTO_INCREMENT) on the primary key.
Parameters:
name - Region name
Returns:
pk primary key set to null

findByPrimaryKey

public Region findByPrimaryKey(RegionPK id)
                        throws javax.ejb.FinderException,
                               java.rmi.RemoteException
This method is used to retrieve a Region Bean from its primary key, that is to say its id.
Parameters:
id - Region id (primary key)
Returns:
the Region if found else null

findByName

public Region findByName(java.lang.String regionName)
                  throws javax.ejb.FinderException,
                         java.rmi.RemoteException
This method is used to retrieve a Region Bean from its name.
Parameters:
regionName - Region name
Returns:
the Region if found else null

findAllRegions

public java.util.Collection findAllRegions()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.FinderException
This method is used to retrieve all categories from the database!
Returns:
List of all categories (eventually empty)


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.