Class EssMemberImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.appliedolap.essbase.EssMember
EssMember.DataStorage, EssMember.DimensionStorage, EssMember.DimensionTypeNested classes/interfaces inherited from interface com.appliedolap.essbase.EssObject
EssObject.Type -
Field Summary
Fields inherited from class com.appliedolap.essbase.AbstractEssObject
api -
Method Summary
Modifier and TypeMethodDescriptionThis member's alias in every alias table the cube has, by table name.intReturns the count of children of this member.Gets the children of this member.How this member's data is held, orEssMember.DataStorage.STOREDwhere the server said nothing - it omits the field entirely for the default rather than naming it, so an absent value is information and not a gap.longHow many members sit below this one, at every level.The dimension this member belongs to.Whether this dimension is dense or sparse.The role this dimension plays, orEssMember.DimensionType.NONEfor an ordinary one and for any member below a dimension.Gets the level-0 descendants of this member.intgetLevel()Gets the level of the member as indicated by the REST APIgetName()Returns the name of the member.Gets the parent member (not implemented yet).Everything the server said about this member, as it said it.getType()Gets the type of this object.booleanCheck if the member is a normal member or a dimension member.booleanisLeaf()Checks if the member is a leaf node or level 0 (has no children).
-
Method Details
-
getName
Description copied from interface:EssMemberReturns the name of the member. -
getDimensionName
Description copied from interface:EssMemberThe dimension this member belongs to.Needed wherever a member has to be expressed as part of a cell rather than on its own - a drill-through POV is keyed by dimension, and a grid knows only the member names it is painting.
- Specified by:
getDimensionNamein interfaceEssMember- Returns:
- the dimension name
-
getType
Description copied from interface:EssObjectGets the type of this object. -
getParent
Description copied from interface:EssMemberGets the parent member (not implemented yet). -
getLevel
public int getLevel()Description copied from interface:EssMemberGets the level of the member as indicated by the REST API -
getDataStorage
Description copied from interface:EssMemberHow this member's data is held, orEssMember.DataStorage.STOREDwhere the server said nothing - it omits the field entirely for the default rather than naming it, so an absent value is information and not a gap.- Specified by:
getDataStoragein interfaceEssMember- Returns:
- the member's storage, never null
-
getAliases
Description copied from interface:EssMemberThis member's alias in every alias table the cube has, by table name.Free: the server sends all of them with the member itself, so reading one table's alias for a whole outline costs no requests beyond the ones that fetched the members. Established live - Sample.Basic's
100comes back with six entries, one per table on that cube.A table the member has no alias in is present with a null value rather than absent, so the keys are the cube's alias tables whether or not this member uses them.
EssMember.getAlias(String)is the reading that does not care about the difference.- Specified by:
getAliasesin interfaceEssMember- Returns:
- table name to alias, empty if the server sent none
-
getDimensionStorage
Description copied from interface:EssMemberWhether this dimension is dense or sparse.Only a standard dimension has one. A member below a dimension, and an attribute dimension, both answer
EssMember.DimensionStorage.UNSPECIFIED.- Specified by:
getDimensionStoragein interfaceEssMember- Returns:
- the dimension's storage, never null
-
getDescendantsCount
public long getDescendantsCount()Description copied from interface:EssMemberHow many members sit below this one, at every level.Reported by the outline with the member itself, so it costs nothing - which makes it the way to find out how big a walk would be before starting one. Zero for a leaf, and for a member read from a source that didn't report it.
- Specified by:
getDescendantsCountin interfaceEssMember- Returns:
- the descendant count
-
getDimensionType
Description copied from interface:EssMemberThe role this dimension plays, orEssMember.DimensionType.NONEfor an ordinary one and for any member below a dimension.- Specified by:
getDimensionTypein interfaceEssMember- Returns:
- the dimension's type, never null
-
getProperties
Description copied from interface:EssMemberEverything the server said about this member, as it said it.The outline viewer returns a different set of fields per member - it omits anything at its default, so a stored member with no formula and no UDAs is described in eight fields and an accounts member with a formula and a time balance in sixteen - which makes an exhaustive model of it a losing game. The typed accessors cover what is worth modelling; this is how a caller reaches
consolidation,formula,twoPassCalc,udaand the rest.- Specified by:
getPropertiesin interfaceEssMember- Returns:
- the member's fields, or empty for a member not read from the outline viewer
-
isDimension
public boolean isDimension()Description copied from interface:EssMemberCheck if the member is a normal member or a dimension member.- Specified by:
isDimensionin interfaceEssMember- Returns:
- true if it's a dimension, false if normal member
-
isLeaf
public boolean isLeaf()Description copied from interface:EssMemberChecks if the member is a leaf node or level 0 (has no children). -
getChildren
Description copied from interface:EssMemberGets the children of this member.- Specified by:
getChildrenin interfaceEssMember- Returns:
- the children of this member or an empty collection if none.
-
getChildCount
public int getChildCount()Description copied from interface:EssMemberReturns the count of children of this member.- Specified by:
getChildCountin interfaceEssMember- Returns:
- the number of children
-
getLeafDescendants
Description copied from interface:EssMemberGets the level-0 descendants of this member. There is currently no REST API to do this in one call, so this method works recursively to fetch children of children and so on until the member has been explored.- Specified by:
getLeafDescendantsin interfaceEssMember- Returns:
- the level-0 descendants of this member, or a collection containing just this member if it has no children.
-