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.int
static Long
generateKey
(int year, int id) Generates the cache key for this type of bean.int
getColor()
Returns the RGB color.Returns the effective date of this status.boolean
Returns whether this is a lifetime status.getLevel()
Returns the Elite status level.Returns the reason for this status upgrade.void
Returns the effective date of this status.void
setLevel
(EliteLevel lvl) Updates the Elite status level.void
Updates the reason for this status upgrade.toString()
Methods inherited from class org.deltava.beans.DatabaseBean
equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.econ.EliteLevelBean
overridenBy
Methods 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:EliteLevelBean
Returns the Elite status level.- Specified by:
getLevel
in 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:EliteLevelBean
Updates the Elite status level.- Specified by:
setLevel
in 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:
compareTo
in interfaceComparable<Object>
- Overrides:
compareTo
in classDatabaseBean
-