Class DelegatingRolapMember
- All Implemented Interfaces:
Comparable,Annotated,Member,OlapElement,RolapMember
- Direct Known Subclasses:
RolapCubeMember,RolapResult.CompoundSlicerRolapMember
RolapMember that delegates all calls
to an underlying member.- Since:
- Mar 16, 2010
- Author:
- jhyde
-
Nested Class Summary
Nested classes/interfaces inherited from class mondrian.rolap.RolapMemberBase
RolapMemberBase.DefaultPropertyValueMapFactory, RolapMemberBase.PropertyValueMapFactory, RolapMemberBase.PropertyValueMapFactoryFactoryNested classes/interfaces inherited from interface mondrian.olap.Member
Member.MemberTypeNested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty -
Field Summary
FieldsFields inherited from class mondrian.olap.MemberBase
flags, level, parentMember, uniqueNameFields inherited from class mondrian.olap.OlapElementBase
caption, visible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares this member to anotherRolapMemberBase.Returns a list of the ancestor members of this member.Returns a list of annotations.Returns the display name of this catalog element.Returns the system-generated data member that is associated with a nonleaf member of a dimension.intgetDepth()returns the depth of this member, which is not the level's depth in case of parent child dimensionsReturns the dimension of a this expression, or null if no dimension is defined.Returns the expression by which this member is calculated.getKey()getLevel()Returns the type of member.getName()Returns the order key of this member among its siblings.intReturns the ordinal of this member within its hierarchy.Returns this member's parent, or null (not the 'null member', as returned byHierarchy.getNullMember()) if it has no parent.Returns name of parent member, or empty string (not null) if we are the root.Property[]Returns the definitions of the properties this member may have.getPropertyFormattedValue(String propertyName) Returns the formatted value of the property namedpropertyName.getPropertyValue(String propertyName) Returns the value of the property namedpropertyName.getPropertyValue(String propertyName, boolean matchCase) Returns the value of the property namedpropertyName, matching according to the required case-sensitivity.Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".intbooleanisAll()Returns whether this is the 'all' member.booleanbooleanReturns whether this member is computed using either awith memberclause in an mdx query or a calculated member defined in cube.booleanReturns whether this member is computed from aWITH MEMBERclause in an MDX query.booleanisChildOrEqualTo(Member member2) Returns whethermemberis equal to, a child, or a descendent of thisMember.booleanReturns whether this member should be evaluated within the Evaluator.booleanisHidden()Returns whether this member is 'hidden', as per the rules which define a ragged hierarchy.booleanReturns whether this is a member of the measures dimension.booleanisNull()Returns whether this is the 'null member'.booleanbooleanlookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType) Looks up a child element, returning null if it does not exist.voidOnly allowable if the member is part of theWITHclause of a query.voidsetProperty(String name, Object value) Sets a property of this member to a given value.Methods inherited from class mondrian.rolap.RolapMemberBase
childLevelHasApproxRowCount, containsAggregateFunction, equals, equals, getAllMembers, getCaptionValue, getCompiledExpression, getHierarchyCardinality, getHierarchyOrdinal, getLogger, getPropertyFromMap, hashCode, keyToString, setCaptionValue, setContextIn, setOrdinal, setOrdinals, setUniqueNameMethods inherited from class mondrian.olap.MemberBase
computeCalculated, isChildOrEqualTo, isOnSameHierarchyChain, isOnSameHierarchyChainInternalMethods inherited from class mondrian.olap.OlapElementBase
clone, computeHashCode, getLocalized, isVisible, setCaption, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface mondrian.olap.Member
isOnSameHierarchyChainMethods inherited from interface mondrian.olap.OlapElement
getLocalized, isVisible
-
Field Details
-
member
-
-
Constructor Details
-
DelegatingRolapMember
-
-
Method Details
-
getLevel
- Specified by:
getLevelin interfaceMember- Specified by:
getLevelin interfaceRolapMember- Overrides:
getLevelin classRolapMemberBase
-
getKey
- Specified by:
getKeyin interfaceRolapMember- Overrides:
getKeyin classRolapMemberBase
-
getParentMember
Description copied from interface:MemberReturns this member's parent, or null (not the 'null member', as returned byHierarchy.getNullMember()) if it has no parent.In an access-control context, a member may have no visible parents, so use
SchemaReader.getMemberParent(mondrian.olap.Member).- Specified by:
getParentMemberin interfaceMember- Specified by:
getParentMemberin interfaceRolapMember- Overrides:
getParentMemberin classRolapMemberBase
-
getHierarchy
- Specified by:
getHierarchyin interfaceMember- Specified by:
getHierarchyin interfaceOlapElement- Specified by:
getHierarchyin interfaceRolapMember- Overrides:
getHierarchyin classRolapMemberBase
-
getParentUniqueName
Description copied from interface:MemberReturns name of parent member, or empty string (not null) if we are the root.- Specified by:
getParentUniqueNamein interfaceMember- Overrides:
getParentUniqueNamein classMemberBase
-
getMemberType
Description copied from interface:MemberReturns the type of member.- Specified by:
getMemberTypein interfaceMember- Overrides:
getMemberTypein classMemberBase
-
isParentChildLeaf
public boolean isParentChildLeaf()- Specified by:
isParentChildLeafin interfaceMember- Overrides:
isParentChildLeafin classRolapMemberBase- Returns:
- True when the member is a leaf member, meaning it has no children
-
isParentChildPhysicalMember
public boolean isParentChildPhysicalMember()- Specified by:
isParentChildPhysicalMemberin interfaceMember- Overrides:
isParentChildPhysicalMemberin classMemberBase- Returns:
- True when the member is part of a Parent-Child hierarchy and it is a physical member. In a Parent Child Hierarchy without a closure table, each member needs to be treated as calculated. We need a way to distinguish between true calculated members and physical members that exist in the source data
-
setName
Description copied from interface:MemberOnly allowable if the member is part of theWITHclause of a query.- Specified by:
setNamein interfaceMember- Overrides:
setNamein classRolapMemberBase
-
isAll
public boolean isAll()Description copied from interface:MemberReturns whether this is the 'all' member.- Specified by:
isAllin interfaceMember- Overrides:
isAllin classMemberBase
-
isMeasure
public boolean isMeasure()Description copied from interface:MemberReturns whether this is a member of the measures dimension.- Specified by:
isMeasurein interfaceMember- Overrides:
isMeasurein classMemberBase
-
isNull
public boolean isNull()Description copied from interface:MemberReturns whether this is the 'null member'.- Specified by:
isNullin interfaceMember- Overrides:
isNullin classMemberBase
-
isChildOrEqualTo
Description copied from interface:MemberReturns whethermemberis equal to, a child, or a descendent of thisMember.- Specified by:
isChildOrEqualToin interfaceMember- Overrides:
isChildOrEqualToin classMemberBase
-
isCalculated
public boolean isCalculated()Description copied from interface:MemberReturns whether this member is computed using either awith memberclause in an mdx query or a calculated member defined in cube.- Specified by:
isCalculatedin interfaceMember- Overrides:
isCalculatedin classMemberBase
-
isEvaluated
public boolean isEvaluated()Description copied from interface:MemberReturns whether this member should be evaluated within the Evaluator.Normally
Member.isCalculated()andMember.isEvaluated()should return the same value, but in situations where mondrian would like to treat the two concepts separately such in role based security, these values may differ.- Specified by:
isEvaluatedin interfaceMember- Overrides:
isEvaluatedin classMemberBase- Returns:
- true if evaluated
-
getSolveOrder
public int getSolveOrder()- Specified by:
getSolveOrderin interfaceMember- Overrides:
getSolveOrderin classMemberBase
-
getExpression
Description copied from class:MemberBaseReturns the expression by which this member is calculated. The expression is not null if and only if the member is not calculated.- Specified by:
getExpressionin interfaceMember- Overrides:
getExpressionin classMemberBase
-
getAncestorMembers
Description copied from interface:MemberReturns a list of the ancestor members of this member.- Specified by:
getAncestorMembersin interfaceMember- Overrides:
getAncestorMembersin classMemberBase
-
isCalculatedInQuery
public boolean isCalculatedInQuery()Description copied from interface:MemberReturns whether this member is computed from aWITH MEMBERclause in an MDX query.- Specified by:
isCalculatedInQueryin interfaceMember- Overrides:
isCalculatedInQueryin classRolapMemberBase
-
getPropertyValue
Description copied from interface:MemberReturns the value of the property namedpropertyName. Name match is case-sensitive.- Specified by:
getPropertyValuein interfaceMember- Overrides:
getPropertyValuein classRolapMemberBase
-
getPropertyValue
Description copied from interface:MemberReturns the value of the property namedpropertyName, matching according to the required case-sensitivity.- Specified by:
getPropertyValuein interfaceMember- Overrides:
getPropertyValuein classRolapMemberBase
-
getPropertyFormattedValue
Description copied from interface:MemberReturns the formatted value of the property namedpropertyName.- Specified by:
getPropertyFormattedValuein interfaceMember- Overrides:
getPropertyFormattedValuein classRolapMemberBase
-
setProperty
Description copied from class:RolapMemberBaseSets a property of this member to a given value.WARNING: Setting system properties such as "$name" may have nasty side-effects.
- Specified by:
setPropertyin interfaceMember- Overrides:
setPropertyin classRolapMemberBase
-
getProperties
Description copied from interface:MemberReturns the definitions of the properties this member may have.- Specified by:
getPropertiesin interfaceMember- Overrides:
getPropertiesin classRolapMemberBase
-
getOrdinal
public int getOrdinal()Description copied from class:MemberBaseReturns the ordinal of this member within its hierarchy. The default implementation returns -1.- Specified by:
getOrdinalin interfaceMember- Overrides:
getOrdinalin classRolapMemberBase
-
getOrderKey
Description copied from class:MemberBaseReturns the order key of this member among its siblings. The default implementation returns null.- Specified by:
getOrderKeyin interfaceMember- Overrides:
getOrderKeyin classRolapMemberBase
-
isHidden
public boolean isHidden()Description copied from interface:MemberReturns whether this member is 'hidden', as per the rules which define a ragged hierarchy.- Specified by:
isHiddenin interfaceMember- Overrides:
isHiddenin classRolapMemberBase
-
getDepth
public int getDepth()Description copied from interface:Memberreturns the depth of this member, which is not the level's depth in case of parent child dimensions- Specified by:
getDepthin interfaceMember- Overrides:
getDepthin classRolapMemberBase- Returns:
- depth
-
getDataMember
Description copied from interface:MemberReturns the system-generated data member that is associated with a nonleaf member of a dimension.Returns this member if this member is a leaf member, or if the nonleaf member does not have an associated data member.
- Specified by:
getDataMemberin interfaceMember- Overrides:
getDataMemberin classMemberBase
-
compareTo
Description copied from class:RolapMemberBaseCompares this member to anotherRolapMemberBase.The method first compares on keys; null keys always collate last. If the keys are equal, it compares using unique name.
This method does not consider
RolapMemberBase.ordinalfield, because ordinal is only unique within a parent. If you want to compare members which may be at any position in the hierarchy, useFunUtil.compareHierarchically(mondrian.olap.Member, mondrian.olap.Member, boolean).- Specified by:
compareToin interfaceComparable- Overrides:
compareToin classRolapMemberBase- Returns:
- -1 if this is less, 0 if this is the same, 1 if this is greater
-
getUniqueName
- Specified by:
getUniqueNamein interfaceOlapElement- Overrides:
getUniqueNamein classMemberBase
-
getName
- Specified by:
getNamein interfaceOlapElement- Overrides:
getNamein classRolapMemberBase
-
getDescription
- Specified by:
getDescriptionin interfaceOlapElement- Overrides:
getDescriptionin classMemberBase
-
lookupChild
Description copied from interface:OlapElementLooks up a child element, returning null if it does not exist.- Specified by:
lookupChildin interfaceOlapElement- Overrides:
lookupChildin classMemberBase
-
getAnnotationMap
Description copied from interface:AnnotatedReturns a list of annotations.The map may be empty, never null.
- Specified by:
getAnnotationMapin interfaceAnnotated- Overrides:
getAnnotationMapin classRolapMemberBase- Returns:
- Map from annotation name to annotations.
-
getQualifiedName
Description copied from interface:OlapElementReturns the name of this element qualified by its class, for example "hierarchy 'Customers'".- Specified by:
getQualifiedNamein interfaceOlapElement- Overrides:
getQualifiedNamein classMemberBase
-
getCaption
Description copied from class:OlapElementBaseReturns the display name of this catalog element. If no caption is defined, the name is returned.- Specified by:
getCaptionin interfaceOlapElement- Overrides:
getCaptionin classMemberBase
-
getDimension
Description copied from interface:OlapElementReturns the dimension of a this expression, or null if no dimension is defined. Applicable only to set expressions.Example 1:
has dimension[Sales].children
[Sales].Example 2:
has dimension [Promotion Media].order(except([Promotion Media].[Media Type].members, {[Promotion Media].[Media Type].[No Media]}), [Measures].[Unit Sales], DESC)Example 3:
has no dimension (well, actually it is [Product] x [Gender], but we can't represent that, so we return null);CrossJoin([Product].[Product Department].members, [Gender].members)- Specified by:
getDimensionin interfaceOlapElement- Overrides:
getDimensionin classMemberBase
-
isAllMember
public boolean isAllMember()- Specified by:
isAllMemberin interfaceRolapMember- Overrides:
isAllMemberin classRolapMemberBase
-