Class Post

  • All Implemented Interfaces:
    java.io.Serializable

    public class Post
    extends java.lang.Object
    implements java.io.Serializable
    This class represents an user Post on a Microblog.
    Since:
    6.1.0
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FIND_BY_OWNER_ID
      Named Query that finds Posts based on a specified parameter userId.
    • Constructor Summary

      Constructors 
      Constructor Description
      Post()
      Constructor for JPA.
      Post​(java.util.Date creation, java.lang.String userId, java.lang.String serviceInstanceId, java.lang.String post)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getCreation()
      Sets the date and time of post creation
      java.lang.String getId()
      Returns the object-Id
      java.lang.String getOwner()
      Gets the id from post owner
      java.lang.String getPost()
      Gets the post value, itself.
      java.lang.String getServiceInstanceId()
      Gets the service instance ID associated to the post
      void setCreation​(java.util.Date creation)
      Sets the date and time of post creation
      void setId​(java.lang.String id)
      Sets the Id
      void setOwner​(java.lang.String owner)
      Sets the id from post owner
      void setPost​(java.lang.String post)
      Sets the post value.
      void setServiceInstanceId​(java.lang.String serviceInstanceId)
      Sets the service instance ID associated to the post
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FIND_BY_OWNER_ID

        public static final java.lang.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
      • Post

        public Post​(java.util.Date creation,
                    java.lang.String userId,
                    java.lang.String serviceInstanceId,
                    java.lang.String post)
    • Method Detail

      • getId

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

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

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

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

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

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

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

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

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

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