Class Post

  • All Implemented Interfaces:
    Serializable

    public class Post
    extends Object
    implements Serializable
    This class represents an user Post 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_OWNER_ID

        public static final String FIND_BY_OWNER_ID
        Named Query that finds Posts based on a specified parameter userId.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Post

        public Post()
        Constructor for JPA.
        Since:
        6.1.0
    • Method Detail

      • getId

        public String getId()
        Returns the object-Id
        Since:
        6.1.0
      • setId

        public void setId​(String id)
        Sets the Id
        Since:
        6.1.0
      • getCreation

        public Date getCreation()
        Sets the date and time of post creation
        Since:
        6.1.0
      • setCreation

        public void setCreation​(Date creation)
        Sets the date and time of post creation
        Since:
        6.1.0
      • getOwner

        public String getOwner()
        Gets the id from post owner
        Since:
        6.1.0
      • setOwner

        public void setOwner​(String owner)
        Sets the id from post owner
        Since:
        6.1.0
      • getServiceInstanceId

        public String getServiceInstanceId()
        Gets the service instance ID associated to the post
        Since:
        6.1.0
      • setServiceInstanceId

        public void setServiceInstanceId​(String serviceInstanceId)
        Sets the service instance ID associated to the post
        Since:
        6.1.0
      • getPost

        public String getPost()
        Gets the post value, itself.
        Returns:
        the post
        Since:
        6.1.0
      • setPost

        public void setPost​(String post)
        Sets the post value.
        Since:
        6.1.0