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 TypeMethodDescriptionintReturns 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 type of status update.voidsetAuthorID(int id) Updates the author of this bean.Methods inherited from class DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.booleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.
-
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: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
-
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:
-
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:
-
compareTo
- Specified by:
compareToin interfaceComparable<Object>- Overrides:
compareToin classDatabaseBean
-