|
||||||||||
| 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 List<CommentImpl> |
comments
|
protected long |
dbid
|
protected int |
dbversion
|
protected String |
message
|
protected CommentImpl |
parent
|
protected Date |
time
|
protected String |
userId
|
| Constructor Summary | |
|---|---|
CommentImpl()
|
|
CommentImpl(String message)
|
|
| Method Summary | |
|---|---|
Comment |
createComment(String message)
create a comment |
boolean |
equals(Object o)
|
List<Comment> |
getComments()
all comments. |
long |
getDbid()
the meaningless database primary key |
String |
getMessage()
the actual message. |
Comment |
getParent()
|
Date |
getTime()
time that specifies when the comment was made |
String |
getUserId()
the id of the user that made this comment. |
int |
hashCode()
|
void |
removeComment(Comment comment)
remove a comment |
void |
setComments(List<CommentImpl> replies)
|
void |
setMessage(String message)
|
void |
setParent(CommentImpl parent)
|
void |
setTime(Date time)
|
void |
setUserId(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 String userId
protected Date time
protected String message
protected CommentImpl parent
protected List<CommentImpl> comments
| Constructor Detail |
|---|
public CommentImpl()
public CommentImpl(String message)
| Method Detail |
|---|
public Comment createComment(String message)
Discussable
createComment in interface Discussablepublic void removeComment(Comment comment)
Discussable
removeComment in interface Discussablepublic Comment getParent()
public void setParent(CommentImpl parent)
public List<Comment> getComments()
Discussable
getComments in interface Discussablepublic void setComments(List<CommentImpl> replies)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic long getDbid()
Comment
getDbid in interface Commentpublic String getUserId()
Comment
getUserId in interface Commentpublic String getMessage()
Comment
getMessage in interface Commentpublic Date getTime()
Comment
getTime in interface Commentpublic void setUserId(String userId)
public void setTime(Date time)
public void setMessage(String message)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||