Class LifetimeStatus
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.econ.EliteStatus
org.deltava.beans.econ.LifetimeStatus
- All Implemented Interfaces:
Serializable, Comparable<Object>, EliteLevelBean, IDBean, RGBColor, Cacheable
A bean to store lifetime Elite status for a Pilot.
- Since:
- 11.5
- Version:
- 11.5
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this is a lifetime status.Returns the name of the lifetime Elite status level.Returns the lifetime Elite status level.Methods inherited from class EliteStatus
cacheKey, compareTo, generateKey, getColor, getEffectiveOn, getLevel, getUpgradeReason, setEffectiveOn, setLevel, setUpgradeReason, toStringModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intstatic LonggenerateKey(int year, int id) Generates the cache key for this type of bean.intgetColor()Returns the RGB color.Returns the effective date of this status.getLevel()Returns the Elite status level.Returns the reason for this status upgrade.voidReturns the effective date of this status.voidsetLevel(EliteLevel lvl) Updates the Elite status level.voidUpdates the reason for this status upgrade.toString()Methods inherited from class DatabaseBean
equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptionbooleangetHexID()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.Methods inherited from interface EliteLevelBean
overridenByModifier and TypeMethodDescriptiondefault booleanDetermines whether this bean's Elite status level is exceeded by another EliteLeveBean.Methods inherited from interface RGBColor
getHexColorModifier and TypeMethodDescriptiondefault StringReturns the RGB color as a 24-bit hexadecimal string.
-
Constructor Details
-
LifetimeStatus
LifetimeStatus(int pilotID, EliteLifetime el) Creates the bean.- Parameters:
pilotID- the Pilot database IDel- the EliteLifetime bean
-
-
Method Details
-
getIsLifetime
public boolean getIsLifetime()Description copied from class:EliteStatusReturns whether this is a lifetime status.- Overrides:
getIsLifetimein classEliteStatus- Returns:
- TRUE if a lifetime status, otherwise FALSE
-
getLifetimeName
Returns the name of the lifetime Elite status level.- Returns:
- the lifetime status name
-
getLifetimeStatus
Returns the lifetime Elite status level.- Returns:
- an EliteLifetime bean
-