|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Categories
The local home interface to the entity bean that represents a record
in the categories table.
Copyright 2003, Rakesh Vidyadharan and wedoit4u.biz
| Method Summary | |
|---|---|
Category |
create(Customer customer,
java.lang.String menuName,
java.lang.String longName)
Create a new category record with just the required
values. |
Category |
create(Customer customer,
java.lang.String menuName,
java.lang.String longName,
java.lang.String brief,
java.lang.String picture,
java.lang.String description)
Create a new category record with all the column
values. |
java.util.Collection |
findAll()
Return a Collection of entity bean instances that
represent all the records in the categories table. |
java.util.Collection |
findByCustomer(Customer customer)
Return a Collection of entity bean instances that
match the customer_id specified. |
Category |
findByPrimaryKey(int categoryId)
Return the entity bean instance that represents the record in the categories table identified by the primary
key column (category_id). |
| Methods inherited from interface javax.ejb.EJBLocalHome |
|---|
remove |
| Method Detail |
|---|
Category create(Customer customer,
java.lang.String menuName,
java.lang.String longName)
throws javax.ejb.CreateException
category record with just the required
values. This method obtains the next sequence value
for the category_id value, and sets the
category_id value to the sequence value.
customer - - The reference to the entity bean that
represents a record in the customer table. This
will be used to set the foreign key customer_id
column.menuName - - The value for the menu_name
column.longName - - The value for the long_name
column.
javax.ejb.CreateException - - If errors are encountered while creating
the new record.DatabaseHelper.getNextSequenceValue( String )
Category create(Customer customer,
java.lang.String menuName,
java.lang.String longName,
java.lang.String brief,
java.lang.String picture,
java.lang.String description)
throws javax.ejb.CreateException
category record with all the column
values. This method obtains the next sequence value
for the category_id value, and sets the
category_id value to the sequence value.
customer - - The reference to the entity bean that
represents a record in the customer table. This
will be used to set the foreign key customer_id
column.menuName - - The value for the menu_name
column.longName - - The value for the long_name
column.brief - - The value for the brief column.picture - - The value for the picture
column.description - - The value for the description
column.
javax.ejb.CreateException - - If errors are encountered while creating
the new record.DatabaseHelper.getNextSequenceValue( String )
Category findByPrimaryKey(int categoryId)
throws javax.ejb.FinderException
categories table identified by the primary
key column (category_id).
categoryId - - The primary key value based on which to
look up the record.
javax.ejb.FinderException - - If errors are encountered while finding
the appropriate bean instance.
java.util.Collection findByCustomer(Customer customer)
throws javax.ejb.FinderException
Collection of entity bean instances that
match the customer_id specified. This finder returns
all the categories belonging to the specified customer.
customer - - The customer_id for which
the matching bean instances are to be returned.
javax.ejb.FinderException - - If errors are encountered while finding
the appropriate bean instance.
java.util.Collection findAll()
throws javax.ejb.FinderException
Collection of entity bean instances that
represent all the records in the categories table.
javax.ejb.FinderException - - If errors are encountered while finding
the appropriate bean instance.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||