|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.orchestra.pvm.internal.model.CommentImpl
public class CommentImpl
| Field Summary | |
|---|---|
protected java.util.List<CommentImpl> |
comments
|
protected long |
dbid
|
protected int |
dbversion
|
protected java.lang.String |
message
|
protected CommentImpl |
parent
|
protected java.util.Date |
time
|
protected java.lang.String |
userId
|
| Constructor Summary | |
|---|---|
CommentImpl()
|
|
CommentImpl(java.lang.String message)
|
|
| Method Summary | |
|---|---|
Comment |
createComment(java.lang.String message)
create a comment |
boolean |
equals(java.lang.Object o)
|
java.util.List<Comment> |
getComments()
all comments. |
long |
getDbid()
the meaningless database primary key |
java.lang.String |
getMessage()
the actual message. |
Comment |
getParent()
|
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. |
int |
hashCode()
|
void |
removeComment(Comment comment)
remove a comment |
void |
setComments(java.util.List<CommentImpl> replies)
|
void |
setMessage(java.lang.String message)
|
void |
setParent(CommentImpl parent)
|
void |
setTime(java.util.Date time)
|
void |
setUserId(java.lang.String userId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, 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 parent
protected java.util.List<CommentImpl> comments
| Constructor Detail |
|---|
public CommentImpl()
public CommentImpl(java.lang.String message)
| Method Detail |
|---|
public Comment createComment(java.lang.String message)
Discussable
createComment in interface Discussablepublic void removeComment(Comment comment)
Discussable
removeComment in interface Discussablepublic Comment getParent()
public void setParent(CommentImpl parent)
public java.util.List<Comment> getComments()
Discussable
getComments in interface Discussablepublic void setComments(java.util.List<CommentImpl> replies)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode 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 | |||||||||