|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the Local Interface for the Comment Bean
Method Summary | |
java.lang.String |
getComment()
Get the comment text. |
java.lang.String |
getDate()
Time of the Comment in the format 'YYYY-MM-DD hh:mm:ss' |
java.lang.Integer |
getFromUserId()
Get the user id of the author of the comment |
java.lang.Integer |
getId()
Get comment's id. |
java.lang.Integer |
getItemId()
Get the item id which is the primary key in the items table. |
float |
getRating()
Get the rating associated to this comment. |
java.lang.Integer |
getToUserId()
Get the user id of the user this comment is about. |
java.lang.String |
printComment(java.lang.String userName)
Display comment information as an HTML table row |
void |
setComment(java.lang.String newComment)
Set a new comment for ToUserId from FromUserId. |
void |
setDate(java.lang.String newDate)
Set a new date for this comment |
void |
setFromUserId(java.lang.Integer id)
Set a new user identifier for the author of the comment. |
void |
setItemId(java.lang.Integer id)
Set a new item identifier. |
void |
setRating(int rating)
Set a new rating for the ToUserId. |
void |
setToUserId(java.lang.Integer id)
Set a new user identifier for the user this comment is about. |
Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
Method Detail |
public java.lang.Integer getId()
public java.lang.Integer getFromUserId()
public java.lang.Integer getToUserId()
public java.lang.Integer getItemId()
public float getRating()
public java.lang.String getDate()
public java.lang.String getComment()
public void setFromUserId(java.lang.Integer id)
id
- author user idpublic void setToUserId(java.lang.Integer id)
id
- user id comment is aboutpublic void setItemId(java.lang.Integer id)
id
- item idpublic void setRating(int rating)
rating
- maximum comment pricepublic void setDate(java.lang.String newDate)
newDate
- comment datepublic void setComment(java.lang.String newComment)
newComment
- Commentpublic java.lang.String printComment(java.lang.String userName)
String
containing HTML code
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |