Class TakeoffLanding
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.TakeoffLanding
- All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable
A bean to store ACARS takeoff/landing data.
- Since:
- 2.8
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DatabaseBean
cacheKey, compareTo, getHexID, getID, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intgetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.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
-
TakeoffLanding
public TakeoffLanding(int id, boolean isTakeoff) Initializes the bean.- Parameters:
id- the ACARS Flight IDisTakeoff- TRUE if a takeoff, otherwise FALSE
-
-
Method Details
-
getIsTakeoff
public boolean getIsTakeoff()Returns whether this is a takeoff or a landing.- Returns:
- TRUE if a takeoff, otherwise FALSE
-
getDate
Returns the date of the takeoff/landing.- Returns:
- the takeoff/landing date/time
-
setDate
Updates the takeoff/landing date.- Parameters:
dt- the takeoff/landing date/time
-
hashCode
public int hashCode()- Overrides:
hashCodein classDatabaseBean
-
equals
- Overrides:
equalsin classDatabaseBean
-