Class Comment
- java.lang.Object
-
- lumis.service.socialnetworkservices.microblog.entity.Comment
-
- All Implemented Interfaces:
Serializable
public class Comment extends Object implements Serializable
This class represents an user Comment on a Microblog.- Since:
- 6.1.0
- Version:
- $Revision: 13752 $ $Date: 2011-10-13 14:10:51 -0300 (Thu, 13 Oct 2011) $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIND_BY_AUTHOR_ID
Name of named query to retrieve a list of comments by its author.static String
FIND_BY_POST_ID
Name of named query to retrieve a list of comments by its associated post.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthor()
Returns the ownerId.String
getComment()
Returns the comment.Date
getCreation()
Returns the creation.String
getId()
Returns the id.String
getPostId()
Returns the postId.Boolean
getRemoved()
Returns the removed.String
getServiceInstanceId()
Returns the serviceInstanceId.void
setAuthor(String author)
Sets the ownerId.void
setComment(String comment)
Sets the comment.void
setCreation(Date creation)
Sets the creation.void
setId(String id)
Sets the id.void
setPostId(String postId)
Sets the postId.void
setRemoved(Boolean removed)
Sets the removed.void
setServiceInstanceId(String serviceInstanceId)
Sets the serviceInstanceId.String
toString()
-
-
-
Field Detail
-
FIND_BY_AUTHOR_ID
public static final String FIND_BY_AUTHOR_ID
Name of named query to retrieve a list of comments by its author. Parameter:authorId
- See Also:
- Constant Field Values
-
FIND_BY_POST_ID
public static final String FIND_BY_POST_ID
Name of named query to retrieve a list of comments by its associated post. Parameter:postId
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
Returns the id.- Returns:
- the id
- Since:
- 6.1.0
-
setId
public void setId(String id)
Sets the id.- Parameters:
id
- the id value to set.- Since:
- 6.1.0
-
getComment
public String getComment()
Returns the comment.- Returns:
- the comment
- Since:
- 6.1.0
-
setComment
public void setComment(String comment)
Sets the comment.- Parameters:
comment
- the comment value to set.- Since:
- 6.1.0
-
getAuthor
public String getAuthor()
Returns the ownerId.- Returns:
- the ownerId
- Since:
- 6.1.0
-
setAuthor
public void setAuthor(String author)
Sets the ownerId.- Parameters:
author
- the ownerId value to set.- Since:
- 6.1.0
-
getPostId
public String getPostId()
Returns the postId.- Returns:
- the postId
- Since:
- 6.1.0
-
setPostId
public void setPostId(String postId)
Sets the postId.- Parameters:
postId
- the postId value to set.- Since:
- 6.1.0
-
getServiceInstanceId
public String getServiceInstanceId()
Returns the serviceInstanceId.- Returns:
- the serviceInstanceId
- Since:
- 6.1.0
-
setServiceInstanceId
public void setServiceInstanceId(String serviceInstanceId)
Sets the serviceInstanceId.- Parameters:
serviceInstanceId
- the serviceInstanceId value to set.- Since:
- 6.1.0
-
getCreation
public Date getCreation()
Returns the creation.- Returns:
- the creation
- Since:
- 6.1.0
-
setCreation
public void setCreation(Date creation)
Sets the creation.- Parameters:
creation
- the creation value to set.- Since:
- 6.1.0
-
getRemoved
public Boolean getRemoved()
Returns the removed.- Returns:
- the removed
- Since:
- 6.1.0
-
setRemoved
public void setRemoved(Boolean removed)
Sets the removed.- Parameters:
removed
- the removed value to set.- Since:
- 6.1.0
-
-