edu.rice.rubis.beans
Interface RegionLocalHome
- All Superinterfaces:
- javax.ejb.EJBLocalHome
- public interface RegionLocalHome
- extends javax.ejb.EJBLocalHome
This is the local home interface of the Region Bean
Method Summary |
RegionLocal |
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! |
RegionLocal |
findByName(java.lang.String regionName)
This method is used to retrieve a Region Bean from its name. |
RegionLocal |
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.EJBLocalHome |
remove |
create
public RegionLocal create(java.lang.String name)
throws javax.ejb.CreateException,
javax.ejb.RemoveException
- This method is used to create a new Region Bean.
- Parameters:
name
- Region name- Returns:
- pk primary key set to null
findByPrimaryKey
public RegionLocal findByPrimaryKey(RegionPK id)
throws javax.ejb.FinderException
- 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 RegionLocal findByName(java.lang.String regionName)
throws javax.ejb.FinderException
- 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 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.