edu.rice.rubis.beans
Interface CategoryLocalHome
- All Superinterfaces:
- javax.ejb.EJBLocalHome
- public interface CategoryLocalHome
- extends javax.ejb.EJBLocalHome
This is the LocalHome interface of the Category Bean
Methods inherited from interface javax.ejb.EJBLocalHome |
remove |
create
public CategoryLocal create(java.lang.String name)
throws javax.ejb.CreateException,
javax.ejb.RemoveException
- This method is used to create a new Category Bean. Note that the category
id is automatically generated by the database (AUTO_INCREMENT) on the
primary key.
- Parameters:
name
- Category name- Returns:
- pk primary key set to null
findByPrimaryKey
public CategoryLocal findByPrimaryKey(CategoryPK id)
throws javax.ejb.FinderException
- This method is used to retrieve a Category Bean from its primary key,
that is to say its id.
- Parameters:
id
- Category id (primary key)- Returns:
- the Category if found else null
findByName
public CategoryLocal findByName(java.lang.String categoryName)
throws javax.ejb.FinderException
- This method is used to retrieve a Category Bean from its name.
- Parameters:
categoryName
- Category name- Returns:
- the Category if found else null
findAllCategories
public java.util.Collection findAllCategories()
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.