|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.service.socialnetworkservices.microblog.entity.Comment
public class Comment
This class represents an user Comment on a Microblog.
Field Summary | |
---|---|
static java.lang.String |
FIND_BY_AUTHOR_ID
Name of named query to retrieve a list of comments by its author. |
static java.lang.String |
FIND_BY_POST_ID
Name of named query to retrieve a list of comments by its associated post. |
Constructor Summary | |
---|---|
Comment()
Constructor for JPA. |
|
Comment(java.lang.String comment,
java.lang.String authorId,
java.lang.String postId,
java.lang.String serviceInstanceId)
|
Method Summary | |
---|---|
java.lang.String |
getAuthor()
Returns the ownerId. |
java.lang.String |
getComment()
Returns the comment. |
java.util.Date |
getCreation()
Returns the creation. |
java.lang.String |
getId()
Returns the id. |
java.lang.String |
getPostId()
Returns the postId. |
java.lang.Boolean |
getRemoved()
Returns the removed. |
java.lang.String |
getServiceInstanceId()
Returns the serviceInstanceId. |
void |
setAuthor(java.lang.String author)
Sets the ownerId. |
void |
setComment(java.lang.String comment)
Sets the comment. |
void |
setCreation(java.util.Date creation)
Sets the creation. |
void |
setId(java.lang.String id)
Sets the id. |
void |
setPostId(java.lang.String postId)
Sets the postId. |
void |
setRemoved(java.lang.Boolean removed)
Sets the removed. |
void |
setServiceInstanceId(java.lang.String serviceInstanceId)
Sets the serviceInstanceId. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FIND_BY_AUTHOR_ID
authorId
public static final java.lang.String FIND_BY_POST_ID
postId
Constructor Detail |
---|
public Comment()
public Comment(java.lang.String comment, java.lang.String authorId, java.lang.String postId, java.lang.String serviceInstanceId)
Method Detail |
---|
public java.lang.String getId()
public void setId(java.lang.String id)
id
- the id value to set.public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- the comment value to set.public java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
author
- the ownerId value to set.public java.lang.String getPostId()
public void setPostId(java.lang.String postId)
postId
- the postId value to set.public java.lang.String getServiceInstanceId()
public void setServiceInstanceId(java.lang.String serviceInstanceId)
serviceInstanceId
- the serviceInstanceId value to set.public java.util.Date getCreation()
public void setCreation(java.util.Date creation)
creation
- the creation value to set.public java.lang.Boolean getRemoved()
public void setRemoved(java.lang.Boolean removed)
removed
- the removed value to set.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |