public abstract class Comment
extends java.lang.Object
CommentManager| Modifier and Type | Field and Description |
|---|---|
protected java.util.Date |
myTimestamp |
| Constructor and Description |
|---|
Comment(long commentId,
SUser user,
java.lang.String comment,
java.util.Date when)
Comment constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
delete()
Delete this comment from the database
|
java.lang.String |
getComment() |
long |
getCommentId() |
java.util.Date |
getTimestamp() |
SUser |
getUser() |
long |
getUserId() |
abstract boolean |
save() |
void |
setCurrentInfo(SUser user,
java.lang.String comment)
Set comment current information.
|
void |
setTimestamp(java.util.Date timestamp) |
java.lang.String |
toString() |
public Comment(long commentId,
SUser user,
java.lang.String comment,
java.util.Date when)
comment - comment textcommentId - comment identifieruser - user who made the commentwhen - when comment was updated@Nullable public java.lang.String getComment()
@NotNull public java.util.Date getTimestamp()
public long getCommentId()
@Nullable public SUser getUser()
public long getUserId()
public void setCurrentInfo(@Nullable
SUser user,
java.lang.String comment)
user - comment authorcomment - comment textpublic void setTimestamp(@NotNull
java.util.Date timestamp)
public abstract boolean save()
public abstract void delete()
public java.lang.String toString()
toString in class java.lang.Object