|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Contents
The local home interface to the entity bean that represents a record
in the contents table.
Copyright 2003, Rakesh Vidyadharan and wedoit4u.biz
| Method Summary | |
|---|---|
Content |
create(Category category,
java.lang.String title)
Create a new record in the content table with just
the required columns. |
Content |
create(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body)
Create a new record in the content table with all
the columns specified except the Date columns that are populated
by database triggers. |
Content |
create(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body,
java.util.Date creationDate,
java.util.Date modificationDate)
Create a new record in the content table with all
the columns specified. |
java.util.Collection |
findAll()
Return a Collection of all the entity bean instances
that represent all the records in the contents table. |
java.util.Collection |
findByCategory(Category category)
Return the entity bean intances that are associated with the specified category_id. |
Content |
findByPrimaryKey(int contentId)
Return the entity bean instance identified by the primary
key value specified. |
| Methods inherited from interface javax.ejb.EJBLocalHome |
|---|
remove |
| Method Detail |
|---|
Content create(Category category,
java.lang.String title)
throws javax.ejb.CreateException
content table with just
the required columns.
category - - The category_id to use
for the new content.title - - The title value to set.
javax.ejb.CreateException - - If errors are encountered while
creating the new record.
Content create(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body)
throws javax.ejb.CreateException
content table with all
the columns specified except the Date columns that are populated
by database triggers.
category - - The category_id to use
for the new content.title - - The title value to set.brief - - The brief value to set.picture - - The picture value to set.body - - The body value to set.
javax.ejb.CreateException - - If errors are encountered while
creating the new record.
Content create(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body,
java.util.Date creationDate,
java.util.Date modificationDate)
throws javax.ejb.CreateException
content table with all
the columns specified.
category - - The category_id to use
for the new content.title - - The title value to set.brief - - The brief value to set.picture - - The picture value to set.body - - The body value to set.creationDate - - The creation_date value
to set.modificationDate - - The modification_date
value to set.
javax.ejb.CreateException - - If errors are encountered while
creating the new record.
Content findByPrimaryKey(int contentId)
throws javax.ejb.FinderException
primary
key value specified.
contentId - - The content_id based upon
which to find the appropriate bean instance.
javax.ejb.FinderException - - If errors are encountered while fetching
the bean instance.
java.util.Collection findByCategory(Category category)
throws javax.ejb.FinderException
category_id.
category - - The category_id based upon
which to find the appropriate bean instances.
javax.ejb.FinderException - - If errors are encountered while fetching
the bean instance.
java.util.Collection findAll()
throws javax.ejb.FinderException
Collection of all the entity bean instances
that represent all the records in the contents table.
javax.ejb.FinderException - - If errors are encountered while fetching
the bean instance.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||