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 TypeMethodDescriptionintCompares this to another status update by comparing the creation date/times.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.getType()Returns the status type.voidsetAuthorID(int id) Updates the author of this bean.voidSets the date this update was created on.voidsetDescription(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:AuthoredBeanReturns the Author of this bean.- Specified by:
getAuthorIDin interfaceAuthoredBean- Returns:
- the author's database ID
- See Also:
-
getDate
Description copied from interface:AuditEntryReturns the date the entry was created.- Specified by:
getDatein interfaceAuditEntry- Returns:
- the creation date/time
-
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
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:AuthoredBeanUpdates the author of this bean.- Specified by:
setAuthorIDin 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:
compareToin interfaceComparable<Object>- Overrides:
compareToin classDatabaseBean- See Also:
-