|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the Remote 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.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
public java.lang.Integer getId() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.Integer getFromUserId() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.Integer getToUserId() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.Integer getItemId() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic float getRating() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.String getDate() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.String getComment() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic void setFromUserId(java.lang.Integer id) throws java.rmi.RemoteException
id
- author user idjava.rmi.RemoteException
- if an error occurspublic void setToUserId(java.lang.Integer id) throws java.rmi.RemoteException
id
- user id comment is aboutjava.rmi.RemoteException
- if an error occurspublic void setItemId(java.lang.Integer id) throws java.rmi.RemoteException
id
- item idjava.rmi.RemoteException
- if an error occurspublic void setRating(int rating) throws java.rmi.RemoteException
rating
- maximum comment pricejava.rmi.RemoteException
- if an error occurspublic void setDate(java.lang.String newDate) throws java.rmi.RemoteException
newDate
- comment datejava.rmi.RemoteException
- if an error occurspublic void setComment(java.lang.String newComment) throws java.rmi.RemoteException
newComment
- Commentjava.rmi.RemoteException
- if an error occurspublic java.lang.String printComment(java.lang.String userName) throws java.rmi.RemoteException
String
containing HTML codejava.rmi.RemoteException
- if an error occurs
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |