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:
java.io.Serializable

public class Comment
extends java.lang.Object
implements java.io.Serializable

This class represents an user Comment on a Microblog.

Since:
6.1.0
See Also:
Serialized Form

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

FIND_BY_AUTHOR_ID

public static final java.lang.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 java.lang.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(java.lang.String comment,
               java.lang.String authorId,
               java.lang.String postId,
               java.lang.String serviceInstanceId)
Method Detail

getId

public java.lang.String getId()
Returns the id.

Returns:
the id
Since:
6.1.0

setId

public void setId(java.lang.String id)
Sets the id.

Parameters:
id - the id value to set.
Since:
6.1.0

getComment

public java.lang.String getComment()
Returns the comment.

Returns:
the comment
Since:
6.1.0

setComment

public void setComment(java.lang.String comment)
Sets the comment.

Parameters:
comment - the comment value to set.
Since:
6.1.0

getAuthor

public java.lang.String getAuthor()
Returns the ownerId.

Returns:
the ownerId
Since:
6.1.0

setAuthor

public void setAuthor(java.lang.String author)
Sets the ownerId.

Parameters:
author - the ownerId value to set.
Since:
6.1.0

getPostId

public java.lang.String getPostId()
Returns the postId.

Returns:
the postId
Since:
6.1.0

setPostId

public void setPostId(java.lang.String postId)
Sets the postId.

Parameters:
postId - the postId value to set.
Since:
6.1.0

getServiceInstanceId

public java.lang.String getServiceInstanceId()
Returns the serviceInstanceId.

Returns:
the serviceInstanceId
Since:
6.1.0

setServiceInstanceId

public void setServiceInstanceId(java.lang.String serviceInstanceId)
Sets the serviceInstanceId.

Parameters:
serviceInstanceId - the serviceInstanceId value to set.
Since:
6.1.0

getCreation

public java.util.Date getCreation()
Returns the creation.

Returns:
the creation
Since:
6.1.0

setCreation

public void setCreation(java.util.Date creation)
Sets the creation.

Parameters:
creation - the creation value to set.
Since:
6.1.0

getRemoved

public java.lang.Boolean getRemoved()
Returns the removed.

Returns:
the removed
Since:
6.1.0

setRemoved

public void setRemoved(java.lang.Boolean removed)
Sets the removed.

Parameters:
removed - the removed value to set.
Since:
6.1.0

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Lumisportal  6.1.0.111014 - Copyright © 2001-2007, Lumis. All Rights Reserved.