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 TypeMethodDescriptionint
Compares two beans by comparing their creation dates and thread IDs.Returns the audit object ID.Returns the audit object type.int
Returns the Author of this bean.getDate()
Returns the date the entry was created.Returns the entry description.void
setAuthorID
(int id) Updates the author of this bean.void
Updates the status update date.void
setDescription
(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:AuditEntry
Returns the date the entry was created.- Specified by:
getDate
in interfaceAuditEntry
- Specified by:
getDate
in interfaceCalendarEntry
- Returns:
- the creation date/time
-
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:
-
getDescription
Description copied from interface:AuditEntry
Returns the entry description.- Specified by:
getDescription
in interfaceAuditEntry
- Returns:
- the description
-
getAuditType
Description copied from interface:AuditEntry
Returns the audit object type.- Specified by:
getAuditType
in interfaceAuditEntry
- Returns:
- the type
-
getAuditID
Description copied from interface:AuditEntry
Returns the audit object ID.- Specified by:
getAuditID
in 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:AuthoredBean
Updates the author of this bean.- Specified by:
setAuthorID
in 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:
compareTo
in interfaceComparable<Object>
- Overrides:
compareTo
in classDatabaseBean
-