Home > Class Reference > %SYS namespace > %DeepSee.Age.Years


class %DeepSee.Age.Years extends %DeepSee.Age.AbstractLevel

This class implements an age-in-years level within a age dimension.


Parameters Properties Methods Queries Indices ForeignKeys Triggers


%AddToSaveSet %BaseRangeToKey %ClassIsLatestVersion %ClassName
%ConstructClone %Convert %Count %DispatchClassMethod
%DispatchGetModified %DispatchGetProperty %DispatchMethod %DispatchSetModified
%DispatchSetMultidimProperty %DispatchSetProperty %Extends %FormatToZDTCode
%GetAllMembers %GetCalendar %GetDimType %GetLevelMembers
%GetName %GetNthKey %GetOptionList %GetParameter
%GetPeriodLength %GetRelatedKey %IsA %IsIndependent
%IsModified %KeyToBaseRange %KeyToValue %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %SupportsNOW
%ValidateObject %ValueToKey


classmethod %BaseRangeToKey(Output pKey As %String, pStart As %Date, pEnd As %Date, pOffset As %String = "") as %Status
Given a pair of base values (in $H format) find a key value that lies within the range.
classmethod %Convert(pTime As %DeepSee.Datatype.dateTime, pTimeOffset As %String = "") as %Integer
Convert a $H value to the logical value used for this level. This is used within the computed field logic for properties within a fact table based on this level.
. In this case we convert $H to age relative to today (age-based rollup dimensions need to be rebuilt, so there is no point in using a fixed reference date).
classmethod %GetLevelMembers(Output pList As %List, pCube As %String, pFact As %String, pStartRange As %Date, pEndRange As %Date, pTimeOffset As %String = "", pFormat As %String = "") as %Status
Return an array of members of this level.
classmethod %GetName() as %String
Return the user-visible name of this level.
classmethod %GetRelatedKey(Output pRelatedKey As %String, pCube As %String, pFact As %String, pKey As %String, pRelation As %String, pOffset As %Integer = "", pEndKey As %String = "", pTimeOffset As %String = "") as %Status
Return, via pRelatedKey a key within this level related to pKey.
classmethod %KeyToBaseRange(pKey As %String, Output pStart As %Date, Output pEnd As %Date, pOffset As %String = "") as %Status
Convert a year value (age in years) into starting and ending base values (in $H format).
classmethod %KeyToValue(pKey As %Integer, pFormat As %String = "", pOffset As %String = "") as %String
Convert a level key value to a display value.
classmethod %ValueToKey(pValue As %String, pFormat As %String = "", pOffset As %String = "") as %Integer
Convert a level display value to its corresponding key value. Return "" if there is no corresponding key.