Package org.deltava.beans.econ
Class EliteStatus
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.econ.EliteStatus
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,EliteLevelBean
,IDBean
,RGBColor
,Cacheable
A bean to store Pilots' Elite status level data.
- Since:
- 9.2
- Version:
- 11.1
- Author:
- Luke
- See Also:
-
Constructor Summary
-
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.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
-
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
-
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
-