|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.rice.rubis.beans.MDB_ViewUserInfo
This is a stateless session bean used to get the information about a user.
Constructor Summary | |
MDB_ViewUserInfo()
|
Method Summary | |
void |
ejbCreate()
The Message driven bean must define an ejbCreate methods with no args. |
void |
ejbRemove()
A container invokes this method before it ends the life of the message-driven object. |
java.lang.String |
getComments(int userId,
java.sql.Connection conn)
Get the comment related to a specific user. |
java.lang.String |
getHTMLGeneralUserInformation(java.lang.String firstname,
java.lang.String lastname,
java.lang.String nickname,
java.lang.String email,
java.lang.String creationDate,
int rating)
Returns a string displaying general information about the user. |
java.lang.String |
getUserInfo(int userId)
Get the information about a user. |
void |
onMessage(javax.jms.Message message)
|
java.lang.String |
printComment(java.lang.String userName,
java.lang.String date,
java.lang.String comment,
int fromUserId)
Display comment information as an HTML table row |
java.lang.String |
printCommentFooter()
Comment footer printed function |
java.lang.String |
printCommentHeader()
Comment header printed function |
void |
setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
Set the associated context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MDB_ViewUserInfo()
Method Detail |
public void onMessage(javax.jms.Message message)
onMessage
in interface javax.jms.MessageListener
public java.lang.String getComments(int userId, java.sql.Connection conn) throws java.rmi.RemoteException
userHome
- an UserHome
valueuserId
- a user idpublic java.lang.String getUserInfo(int userId) throws java.rmi.RemoteException
userId
- a user idpublic java.lang.String getHTMLGeneralUserInformation(java.lang.String firstname, java.lang.String lastname, java.lang.String nickname, java.lang.String email, java.lang.String creationDate, int rating) throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.String printCommentHeader()
public java.lang.String printComment(java.lang.String userName, java.lang.String date, java.lang.String comment, int fromUserId) throws java.rmi.RemoteException
String
containing HTML codejava.rmi.RemoteException
- if an error occurspublic java.lang.String printCommentFooter()
public void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
setMessageDrivenContext
in interface javax.ejb.MessageDrivenBean
MessageDrivenContext
- A MessageDrivenContext interface for the instance.javax.ejb.EJBException
- Thrown by the method to indicate a failure caused by
a system-level error.public void ejbCreate()
public void ejbRemove()
ejbRemove
in interface javax.ejb.MessageDrivenBean
javax.ejb.EJBException
- Thrown by the method to indicate a failure caused by
a system-level error.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |