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 DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.
-
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
-