Class ThreadUpdate
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.cooler.ThreadUpdate
- All Implemented Interfaces:
Serializable,Comparable<Object>,AuditEntry,AuthoredBean,CalendarEntry,IDBean,Cacheable
A bean to store Water Cooler thread history entries.
- Since:
- 1.0
- Version:
- 7.4
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares two beans by comparing their creation dates and thread IDs.Returns the audit object ID.Returns the audit object type.intReturns the Author of this bean.getDate()Returns the date the entry was created.Returns the entry description.voidsetAuthorID(int id) Updates the author of this bean.voidUpdates the status update date.voidsetDescription(String msg) Updates the status update message.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
ThreadUpdate
public ThreadUpdate(int id) Creates a new Water Cooler thread update entry.- Parameters:
id- the Thread database ID- Throws:
IllegalArgumentException- if id is zero or negative
-
-
Method Details
-
getDate
Description copied from interface:AuditEntryReturns the date the entry was created.- Specified by:
getDatein interfaceAuditEntry- Specified by:
getDatein interfaceCalendarEntry- Returns:
- the creation date/time
-
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:
-
getDescription
Description copied from interface:AuditEntryReturns the entry description.- Specified by:
getDescriptionin interfaceAuditEntry- Returns:
- the description
-
getAuditType
Description copied from interface:AuditEntryReturns the audit object type.- Specified by:
getAuditTypein interfaceAuditEntry- Returns:
- the type
-
getAuditID
Description copied from interface:AuditEntryReturns the audit object ID.- Specified by:
getAuditIDin interfaceAuditEntry- Returns:
- the ID
-
setDate
Updates the status update date.- Parameters:
dt- the date/time the status update was created- 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:
-
setDescription
Updates the status update message.- Parameters:
msg- the message- Throws:
NullPointerException- if msg is null- See Also:
-
compareTo
Compares two beans by comparing their creation dates and thread IDs.- Specified by:
compareToin interfaceComparable<Object>- Overrides:
compareToin classDatabaseBean
-