Class Comment

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.hr.Comment
All Implemented Interfaces:
Serializable, Comparable<Object>, AuthoredBean, IDBean, Cacheable

public class Comment extends DatabaseBean implements AuthoredBean
A bean to store comments about a Job Posting.
Since:
3.4
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • Comment

      public Comment(int jobID, int authorID)
      Creates a new comment.
      Parameters:
      jobID - the Job Posting database ID
      authorID - the author's database ID
  • Method Details

    • getCreatedOn

      public Instant getCreatedOn()
      Returns the creation date of this comment.
      Returns:
      the creation date/time
    • getBody

      public String getBody()
      Returns the comment body.
      Returns:
      the body
    • getAuthorID

      public int getAuthorID()
      Description copied from interface: AuthoredBean
      Returns the Author of this bean.
      Specified by:
      getAuthorID in interface AuthoredBean
      Returns:
      the author's database ID
      See Also:
    • setAuthorID

      public void setAuthorID(int id)
      Description copied from interface: AuthoredBean
      Updates the author of this bean.
      Specified by:
      setAuthorID in interface AuthoredBean
      Parameters:
      id - the author's database ID.
      See Also:
    • setCreatedOn

      public void setCreatedOn(Instant dt)
      Updates the creation datae of this comment.
      Parameters:
      dt - the creation date/time
    • setBody

      public void setBody(String body)
      Updates the comment body.
      Parameters:
      body - the body