Class StatusUpdate
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.StatusUpdate
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,AuditEntry
,AuthoredBean
,IDBean
,Cacheable
A bean to track Pilot status updates and comments.
- Since:
- 1.0
- Version:
- 8.7
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatusUpdate
(int pilotID, UpdateType type) Creates a new Status Update for a Pilot. -
Method Summary
Modifier and TypeMethodDescriptionint
Compares this to another status update by comparing the creation date/times.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.getType()
Returns the status type.void
setAuthorID
(int id) Updates the author of this bean.void
Sets the date this update was created on.void
setDescription
(String desc) Sets the description or comments for this status update.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
StatusUpdate
Creates a new Status Update for a Pilot.- Parameters:
pilotID
- the Pilot Database IDtype
- the UpdateType
-
-
Method Details
-
getType
-
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:
-
getDate
Description copied from interface:AuditEntry
Returns the date the entry was created.- Specified by:
getDate
in interfaceAuditEntry
- Returns:
- the creation date/time
-
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
Sets the date this update was created on.- Parameters:
dt
- the date/time this update was created on- 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
Sets the description or comments for this status update.- Parameters:
desc
- the description/comments- See Also:
-
compareTo
Compares this to another status update by comparing the creation date/times.- Specified by:
compareTo
in interfaceComparable<Object>
- Overrides:
compareTo
in classDatabaseBean
- See Also:
-