|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the Home interface of the Comment Bean
Method Summary | |
Comment |
create(java.lang.Integer FromUserId,
java.lang.Integer ToUserId,
java.lang.Integer ItemId,
int Rating,
java.lang.String Comment)
This method is used to create a new Comment Bean. |
java.util.Collection |
findAllComments()
This method is used to retrieve all comments from the database! |
java.util.Collection |
findByFromUser(java.lang.Integer id)
This method is used to retrieve all Comment Beans belonging to a specific author. |
java.util.Collection |
findByItem(java.lang.Integer id)
This method is used to retrieve all Comment Beans related to one item. |
Comment |
findByPrimaryKey(CommentPK id)
This method is used to retrieve a Comment Bean from its primary key, that is to say its id. |
java.util.Collection |
findByToUser(java.lang.Integer id)
This method is used to retrieve all Comment Beans related to a specific user. |
Methods inherited from interface javax.ejb.EJBHome |
getEJBMetaData, getHomeHandle, remove, remove |
Method Detail |
public Comment create(java.lang.Integer FromUserId, java.lang.Integer ToUserId, java.lang.Integer ItemId, int Rating, java.lang.String Comment) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.RemoveException
FromUserId
- user id of the comment author, must match the primary key of table usersToUserId
- user id of the user this comment is about, must match the primary key of table usersItemId
- item id, must match the primary key of table itemsRating
- user (ToUserId) rating given by the author (FromUserId)Comment
- comment textpublic Comment findByPrimaryKey(CommentPK id) throws javax.ejb.FinderException, java.rmi.RemoteException
id
- Comment id (primary key)public java.util.Collection findByItem(java.lang.Integer id) throws javax.ejb.FinderException, java.rmi.RemoteException
id
- item idpublic java.util.Collection findByFromUser(java.lang.Integer id) throws javax.ejb.FinderException, java.rmi.RemoteException
id
- user idpublic java.util.Collection findByToUser(java.lang.Integer id) throws javax.ejb.FinderException, java.rmi.RemoteException
id
- user idpublic java.util.Collection findAllComments() throws java.rmi.RemoteException, javax.ejb.FinderException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |