|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Comment
public void setReplyTarget(CommentImpl replyTarget)
public java.util.List<Comment> getReplies()
Comment
getReplies
in interface Comment
public void setReplies(java.util.List<CommentImpl> replies)
public Comment createReply(java.lang.String message)
Comment
createReply
in interface Comment
public void removeReply(Comment reply)
Comment
removeReply
in interface Comment
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public long getDbid()
Comment
getDbid
in interface Comment
public java.lang.String getUserId()
Comment
getUserId
in interface Comment
public java.lang.String getMessage()
Comment
getMessage
in interface Comment
public java.util.Date getTime()
Comment
getTime
in interface Comment
public 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 |