Class EliteStatus
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.econ.EliteStatus
- All Implemented Interfaces:
Serializable,Comparable<Object>,EliteLevelBean,IDBean,RGBColor,Cacheable
- Direct Known Subclasses:
LifetimeStatus
A bean to store Pilots' Elite status level data.
- Since:
- 9.2
- Version:
- 11.5
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier 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.booleanReturns whether this is a lifetime 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 org.deltava.beans.DatabaseBean
equals, getHexID, getID, hashCode, setID, validateID, validateIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.econ.EliteLevelBean
overridenByMethods inherited from interface org.deltava.beans.RGBColor
getHexColor
-
Constructor Details
-
EliteStatus
Creates the bean.- Parameters:
pilotID- the Pilot's database IDlvl- the EliteLevel
-
-
Method Details
-
getLevel
Description copied from interface:EliteLevelBeanReturns the Elite status level.- Specified by:
getLevelin interfaceEliteLevelBean- Returns:
- the EliteLevel
-
getColor
-
getEffectiveOn
Returns the effective date of this status.- Returns:
- the effective date
-
getUpgradeReason
Returns the reason for this status upgrade.- Returns:
- an UpgradeReason
-
getIsLifetime
public boolean getIsLifetime()Returns whether this is a lifetime status.- Returns:
- TRUE if a lifetime status, otherwise FALSE
-
setEffectiveOn
Returns the effective date of this status.- Parameters:
dt- the effective date
-
setUpgradeReason
Updates the reason for this status upgrade.- Parameters:
ur- an UpgradeReason
-
setLevel
Description copied from interface:EliteLevelBeanUpdates the Elite status level.- Specified by:
setLevelin interfaceEliteLevelBean- Parameters:
lvl- the EliteLevel
-
generateKey
Generates the cache key for this type of bean.- Parameters:
year- the plan yearid- the pilot's database ID- Returns:
- the cache key
-
cacheKey
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Object>- Overrides:
compareToin classDatabaseBean
-