public class DelegatingRolapMember extends RolapMemberBase
RolapMember
that delegates all calls
to an underlying member.RolapMemberBase.DefaultPropertyValueMapFactory, RolapMemberBase.PropertyValueMapFactory, RolapMemberBase.PropertyValueMapFactoryFactory
Member.MemberType
OlapElement.LocalizedProperty
Modifier and Type | Field and Description |
---|---|
RolapMember |
member |
flags, level, parentMember, uniqueName
caption, visible
Modifier | Constructor and Description |
---|---|
protected |
DelegatingRolapMember(RolapMember member) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
Compares this member to another
RolapMemberBase . |
List<Member> |
getAncestorMembers()
Returns a list of the ancestor members of this member.
|
Map<String,Annotation> |
getAnnotationMap()
Returns a list of annotations.
|
String |
getCaption()
Returns the display name of this catalog element.
|
Member |
getDataMember()
Returns the system-generated data member that is associated with a
nonleaf member of a dimension.
|
int |
getDepth()
returns the depth of this member, which is not the level's depth
in case of parent child dimensions
|
String |
getDescription() |
Dimension |
getDimension()
Returns the dimension of a this expression, or null if no dimension is
defined.
|
Exp |
getExpression()
Returns the expression by which this member is calculated.
|
RolapHierarchy |
getHierarchy() |
Object |
getKey() |
RolapLevel |
getLevel() |
Member.MemberType |
getMemberType()
Returns the type of member.
|
String |
getName() |
Comparable |
getOrderKey()
Returns the order key of this member among its siblings.
|
int |
getOrdinal()
Returns the ordinal of this member within its hierarchy.
|
RolapMember |
getParentMember()
Returns this member's parent, or null (not the 'null member', as
returned by
Hierarchy.getNullMember() ) if it has no parent. |
String |
getParentUniqueName()
Returns name of parent member, or empty string (not null) if we are the
root.
|
Property[] |
getProperties()
Returns the definitions of the properties this member may have.
|
String |
getPropertyFormattedValue(String propertyName)
Returns the formatted value of the property named
propertyName . |
Object |
getPropertyValue(String propertyName)
Returns the value of the property named
propertyName . |
Object |
getPropertyValue(String propertyName,
boolean matchCase)
Returns the value of the property named
propertyName ,
matching according to the required case-sensitivity. |
String |
getQualifiedName()
Returns the name of this element qualified by its class, for example
"hierarchy 'Customers'".
|
int |
getSolveOrder()
Returns the solve order of this calculation.
|
String |
getUniqueName() |
boolean |
isAll()
Returns whether this is the 'all' member.
|
boolean |
isAllMember() |
boolean |
isCalculated()
Returns whether this member is computed using either a
with
member clause in an mdx query or a calculated member defined in
cube. |
boolean |
isCalculatedInQuery()
Returns whether this member is computed from a
WITH MEMBER
clause in an MDX query. |
boolean |
isChildOrEqualTo(Member member2)
Returns whether
member is equal to, a child, or a
descendent of this Member . |
boolean |
isEvaluated()
Returns whether this member should be evaluated within the Evaluator.
|
boolean |
isHidden()
Returns whether this member is 'hidden', as per the rules which define
a ragged hierarchy.
|
boolean |
isMeasure()
Returns whether this is a member of the measures dimension.
|
boolean |
isNull()
Returns whether this is the 'null member'.
|
boolean |
isParentChildLeaf() |
boolean |
isParentChildPhysicalMember() |
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
Looks up a child element, returning null if it does not exist.
|
void |
setName(String name)
Only allowable if the member is part of the
WITH clause of
a query. |
void |
setProperty(String name,
Object value)
Sets a property of this member to a given value.
|
childLevelHasApproxRowCount, containsAggregateFunction, equals, equals, getAllMembers, getCaptionValue, getCompiledExpression, getHierarchyCardinality, getHierarchyOrdinal, getLogger, getPropertyFromMap, hashCode, keyToString, setCaptionValue, setContextIn, setOrdinal, setOrdinals, setUniqueName
computeCalculated, isChildOrEqualTo
clone, computeHashCode, getLocalized, isVisible, setCaption, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getLocalized, isVisible
public final RolapMember member
protected DelegatingRolapMember(RolapMember member)
public RolapLevel getLevel()
getLevel
in interface Member
getLevel
in interface RolapMember
getLevel
in class RolapMemberBase
public Object getKey()
getKey
in interface RolapMember
getKey
in class RolapMemberBase
public RolapMember getParentMember()
Member
Hierarchy.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)
.
getParentMember
in interface Member
getParentMember
in interface RolapMember
getParentMember
in class RolapMemberBase
public RolapHierarchy getHierarchy()
getHierarchy
in interface Member
getHierarchy
in interface OlapElement
getHierarchy
in interface RolapMember
getHierarchy
in class RolapMemberBase
public String getParentUniqueName()
Member
getParentUniqueName
in interface Member
getParentUniqueName
in class MemberBase
public Member.MemberType getMemberType()
Member
getMemberType
in interface Member
getMemberType
in class MemberBase
public boolean isParentChildLeaf()
isParentChildLeaf
in interface Member
isParentChildLeaf
in class RolapMemberBase
public boolean isParentChildPhysicalMember()
isParentChildPhysicalMember
in interface Member
isParentChildPhysicalMember
in class MemberBase
public void setName(String name)
Member
WITH
clause of
a query.setName
in interface Member
setName
in class RolapMemberBase
public boolean isAll()
Member
isAll
in interface Member
isAll
in class MemberBase
public boolean isMeasure()
Member
isMeasure
in interface Member
isMeasure
in class MemberBase
public boolean isNull()
Member
isNull
in interface Member
isNull
in class MemberBase
public boolean isChildOrEqualTo(Member member2)
Member
member
is equal to, a child, or a
descendent of this Member
.isChildOrEqualTo
in interface Member
isChildOrEqualTo
in class MemberBase
public boolean isCalculated()
Member
with
member
clause in an mdx query or a calculated member defined in
cube.isCalculated
in interface Member
isCalculated
in class MemberBase
public boolean isEvaluated()
Member
Normally Member.isCalculated()
and Member.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.
isEvaluated
in interface Member
isEvaluated
in class MemberBase
public int getSolveOrder()
getSolveOrder
in interface Member
getSolveOrder
in class MemberBase
public Exp getExpression()
MemberBase
getExpression
in interface Member
getExpression
in class MemberBase
public List<Member> getAncestorMembers()
Member
getAncestorMembers
in interface Member
getAncestorMembers
in class MemberBase
public boolean isCalculatedInQuery()
Member
WITH MEMBER
clause in an MDX query.isCalculatedInQuery
in interface Member
isCalculatedInQuery
in class RolapMemberBase
public Object getPropertyValue(String propertyName)
Member
propertyName
.
Name match is case-sensitive.getPropertyValue
in interface Member
getPropertyValue
in class RolapMemberBase
public Object getPropertyValue(String propertyName, boolean matchCase)
Member
propertyName
,
matching according to the required case-sensitivity.getPropertyValue
in interface Member
getPropertyValue
in class RolapMemberBase
public String getPropertyFormattedValue(String propertyName)
Member
propertyName
.getPropertyFormattedValue
in interface Member
getPropertyFormattedValue
in class RolapMemberBase
public void setProperty(String name, Object value)
RolapMemberBase
WARNING: Setting system properties such as "$name" may have nasty side-effects.
setProperty
in interface Member
setProperty
in class RolapMemberBase
public Property[] getProperties()
Member
getProperties
in interface Member
getProperties
in class RolapMemberBase
public int getOrdinal()
MemberBase
getOrdinal
in interface Member
getOrdinal
in class RolapMemberBase
public Comparable getOrderKey()
MemberBase
getOrderKey
in interface Member
getOrderKey
in class RolapMemberBase
public boolean isHidden()
Member
isHidden
in interface Member
isHidden
in class RolapMemberBase
public int getDepth()
Member
getDepth
in interface Member
getDepth
in class RolapMemberBase
public Member getDataMember()
Member
Returns this member if this member is a leaf member, or if the nonleaf member does not have an associated data member.
getDataMember
in interface Member
getDataMember
in class MemberBase
public int compareTo(Object o)
RolapMemberBase
RolapMemberBase
.
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.ordinal
field, because
ordinal is only unique within a parent. If you want to compare
members which may be at any position in the hierarchy, use
FunUtil.compareHierarchically(mondrian.olap.Member, mondrian.olap.Member, boolean)
.
compareTo
in interface Comparable
compareTo
in class RolapMemberBase
public String getUniqueName()
getUniqueName
in interface OlapElement
getUniqueName
in class MemberBase
public String getName()
getName
in interface OlapElement
getName
in class RolapMemberBase
public String getDescription()
getDescription
in interface OlapElement
getDescription
in class MemberBase
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElement
lookupChild
in interface OlapElement
lookupChild
in class MemberBase
public Map<String,Annotation> getAnnotationMap()
Annotated
The map may be empty, never null.
getAnnotationMap
in interface Annotated
getAnnotationMap
in class RolapMemberBase
public String getQualifiedName()
OlapElement
getQualifiedName
in interface OlapElement
getQualifiedName
in class MemberBase
public String getCaption()
OlapElementBase
getCaption
in interface OlapElement
getCaption
in class MemberBase
public Dimension getDimension()
OlapElement
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)
getDimension
in interface OlapElement
getDimension
in class MemberBase
public boolean isAllMember()
isAllMember
in interface RolapMember
isAllMember
in class RolapMemberBase
Copyright © 2018 Hitachi Vantara. All rights reserved.