lumis.service.socialnetworkservices.microblog.entity
Class Comment

Package class diagram package Comment
java.lang.Object
  extended by 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
See Also:
Serialized Form

Field Summary
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.
 
Constructor Summary
Comment()
          Constructor for JPA.
Comment(String comment, String authorId, String postId, String serviceInstanceId)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

Comment

public Comment()
Constructor for JPA.

Since:
6.1.0

Comment

public Comment(String comment,
               String authorId,
               String postId,
               String serviceInstanceId)
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

toString

public String toString()
Overrides:
toString in class Object


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.