Class Comment
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.hr.Comment
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,AuthoredBean
,IDBean
,Cacheable
A bean to store comments about a Job Posting.
- Since:
- 3.4
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the Author of this bean.getBody()
Returns the comment body.Returns the creation date of this comment.void
setAuthorID
(int id) Updates the author of this bean.void
Updates the comment body.void
setCreatedOn
(Instant dt) Updates the creation datae of this comment.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
Comment
public Comment(int jobID, int authorID) Creates a new comment.- Parameters:
jobID
- the Job Posting database IDauthorID
- the author's database ID
-
-
Method Details
-
getCreatedOn
Returns the creation date of this comment.- Returns:
- the creation date/time
-
getBody
-
getAuthorID
public int getAuthorID()Description copied from interface:AuthoredBean
Returns the Author of this bean.- Specified by:
getAuthorID
in interfaceAuthoredBean
- 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 interfaceAuthoredBean
- Parameters:
id
- the author's database ID.- See Also:
-
setCreatedOn
Updates the creation datae of this comment.- Parameters:
dt
- the creation date/time
-
setBody
-