|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jbpm.pvm.impl.CommentImpl
public class CommentImpl
| Field Summary | |
|---|---|
protected long |
dbid
|
protected int |
dbversion
|
protected java.lang.String |
message
|
protected java.util.List<CommentImpl> |
replies
|
protected CommentImpl |
replyTarget
|
protected java.util.Date |
time
|
protected java.lang.String |
userId
|
| Constructor Summary | |
|---|---|
CommentImpl()
|
|
CommentImpl(java.lang.String message)
|
|
| Method Summary | |
|---|---|
Comment |
createReply(java.lang.String message)
add a reply to this comment |
boolean |
equals(java.lang.Object o)
|
long |
getDbid()
the meaningless database primary key |
java.lang.String |
getMessage()
the actual message. |
java.util.List<Comment> |
getReplies()
replies to this comment |
Comment |
getReplyTarget()
the comment to which this comment is a reply. |
java.util.Date |
getTime()
time that specifies when the comment was made |
java.lang.String |
getUserId()
the id of the user that made this comment. |
void |
removeReply(Comment reply)
remove a reply from this comment. |
void |
setMessage(java.lang.String message)
|
void |
setReplies(java.util.List<CommentImpl> replies)
|
void |
setReplyTarget(CommentImpl replyTarget)
|
void |
setTime(java.util.Date time)
|
void |
setUserId(java.lang.String userId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long dbid
protected int dbversion
protected java.lang.String userId
protected java.util.Date time
protected java.lang.String message
protected CommentImpl replyTarget
protected java.util.List<CommentImpl> replies
| Constructor Detail |
|---|
public CommentImpl()
public CommentImpl(java.lang.String message)
| Method Detail |
|---|
public Comment getReplyTarget()
Comment
getReplyTarget in interface Commentpublic void setReplyTarget(CommentImpl replyTarget)
public java.util.List<Comment> getReplies()
Comment
getReplies in interface Commentpublic void setReplies(java.util.List<CommentImpl> replies)
public Comment createReply(java.lang.String message)
Comment
createReply in interface Commentpublic void removeReply(Comment reply)
Comment
removeReply in interface Commentpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic long getDbid()
Comment
getDbid in interface Commentpublic java.lang.String getUserId()
Comment
getUserId in interface Commentpublic java.lang.String getMessage()
Comment
getMessage in interface Commentpublic java.util.Date getTime()
Comment
getTime in interface Commentpublic void setUserId(java.lang.String userId)
public void setTime(java.util.Date time)
public void setMessage(java.lang.String message)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||