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 TypeMethodDescriptionintReturns the Author of this bean.getBody()Returns the comment body.Returns the creation date of this comment.voidsetAuthorID(int id) Updates the author of this bean.voidUpdates the comment body.voidsetCreatedOn(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:AuthoredBeanReturns the Author of this bean.- Specified by:
getAuthorIDin interfaceAuthoredBean- Returns:
- the author's database ID
- See Also:
-
setAuthorID
public void setAuthorID(int id) Description copied from interface:AuthoredBeanUpdates the author of this bean.- Specified by:
setAuthorIDin 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
-