Class 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 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
    • 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