Class FlightHistoryEntry
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.flight.FlightHistoryEntry
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,AuditEntry
,AuthoredBean
,IDBean
,Cacheable
A bean to store Flight Report status updates.
- Since:
- 9.0
- Version:
- 9.0
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlightHistoryEntry
(int id, HistoryType t, int authorID, Instant createdOn, String desc) Creates the bean. -
Method Summary
Modifier and TypeMethodDescriptionint
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 type of status update.void
setAuthorID
(int id) Updates the author of this bean.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
FlightHistoryEntry
Creates the bean.- Parameters:
id
- the FlightReport database IDt
- the HistoryTypeauthorID
- the author's database IDcreatedOn
- the creation date/timedesc
- the update message
-
-
Method Details
-
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
-
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:
-
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:
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Object>
- Overrides:
compareTo
in classDatabaseBean
-