|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.olap.OlapElementBase mondrian.olap.MemberBase mondrian.rolap.RolapMember mondrian.rolap.RolapCubeMember
public class RolapCubeMember
RolapCubeMember wraps RolapMembers and binds them to a specific cube. RolapCubeMember wraps or overrides RolapMember methods that directly reference the wrapped Member. Methods that only contain calls to other methods do not need wrapped.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface mondrian.olap.Member |
---|
Member.MemberType |
Field Summary | |
---|---|
protected String |
rolapAllMemberCubeName
|
protected RolapCube |
rolapCube
|
protected RolapCubeLevel |
rolapLevel
|
protected RolapMember |
rolapMember
|
Fields inherited from class mondrian.olap.MemberBase |
---|
flags, level, parentMember, parentUniqueName, uniqueName |
Fields inherited from class mondrian.olap.OlapElementBase |
---|
caption |
Constructor Summary | |
---|---|
RolapCubeMember(RolapCubeMember parent,
RolapMember member,
RolapCubeLevel level,
RolapCube cube)
|
Method Summary | |
---|---|
int |
compareTo(Object o)
Compares this member to another RolapMember . |
boolean |
equals(Object o)
|
boolean |
equals(OlapElement o)
|
String |
getCaption()
Returns the display name of this catalog element. |
RolapCube |
getCube()
Returns the cube this cube member belongs to. |
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 |
Exp |
getExpression()
Returns the expression by which this member is calculated. |
RolapCubeHierarchy |
getHierarchy()
|
Object |
getKey()
|
RolapCubeLevel |
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. |
RolapCubeMember |
getParentMember()
Returns this member's parent, or null (not the 'null member', as returned by Hierarchy.getNullMember() ) if it has no parent. |
protected Object |
getPropertyFromMap(String propertyName,
boolean matchCase)
Returns the value of a property by looking it up in the property map. |
Object |
getPropertyValue(String propertyName,
boolean matchCase)
Returns the value of the property named propertyName ,
matching according to the required case-sensitivity. |
RolapMember |
getRolapMember()
|
int |
getSolveOrder()
|
boolean |
isAll()
Returns whether this is the 'all' member. |
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 |
isMeasure()
Returns whether this is a member of the measures dimension. |
boolean |
isNull()
Returns whether this is the 'null member'. |
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment childName,
MatchType matchType)
|
(package private) void |
setOrderKey(Comparable orderKey)
|
(package private) void |
setOrdinal(int ordinal)
|
void |
setProperty(String name,
Object value)
Sets a property of this member to a given value. |
Methods inherited from class mondrian.rolap.RolapMember |
---|
childLevelHasApproxRowCount, getAllMembers, getHierarchyCardinality, getLogger, getProperties, getPropertyFormattedValue, getPropertyValue, hashCode, isAllMember, isHidden, keyToString, makeUniqueName, setName, setOrdinals, setParentMember, setUniqueName |
Methods inherited from class mondrian.olap.MemberBase |
---|
computeCalculated, getAncestorMembers, getDescription, getDimension, getParentUniqueName, getQualifiedName, getUniqueName, isChildOrEqualTo, isChildOrEqualTo, lookupChild |
Methods inherited from class mondrian.olap.OlapElementBase |
---|
clone, computeHashCode, setCaption, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final String rolapAllMemberCubeName
protected final RolapMember rolapMember
protected final RolapCubeLevel rolapLevel
protected final RolapCube rolapCube
Constructor Detail |
---|
public RolapCubeMember(RolapCubeMember parent, RolapMember member, RolapCubeLevel level, RolapCube cube)
Method Detail |
---|
public int getDepth()
Member
getDepth
in interface Member
getDepth
in class RolapMember
public boolean isNull()
Member
isNull
in interface Member
isNull
in class MemberBase
public boolean isMeasure()
Member
isMeasure
in interface Member
isMeasure
in class MemberBase
public boolean isAll()
Member
isAll
in interface Member
isAll
in class MemberBase
public RolapMember getRolapMember()
public RolapCube getCube()
This method is not in the Member
interface, because regular
members may be shared, and therefore do not belong to a specific cube.
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)
RolapMember
RolapMember
.
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 RolapMember.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 RolapMember
public boolean equals(Object o)
equals
in class RolapMember
public boolean equals(OlapElement o)
equals
in class RolapMember
public Object getKey()
getKey
in class RolapMember
public RolapCubeHierarchy getHierarchy()
getHierarchy
in interface Member
getHierarchy
in interface OlapElement
getHierarchy
in class RolapMember
public RolapCubeLevel getLevel()
This method is central to how RolapCubeMember works. It allows a member from the cache to be used within different usages of the same shared dimension. The cache member is the same, but the RolapCubeMembers wrapping the cache member report that they belong to different levels, and hence different hierarchies, dimensions, and cubes.
getLevel
in interface Member
getLevel
in class RolapMember
public String getName()
getName
in interface OlapElement
getName
in class RolapMember
public Comparable getOrderKey()
MemberBase
getOrderKey
in interface Member
getOrderKey
in class RolapMember
void setOrderKey(Comparable orderKey)
setOrderKey
in class RolapMember
public int getOrdinal()
MemberBase
getOrdinal
in interface Member
getOrdinal
in class RolapMember
void setOrdinal(int ordinal)
setOrdinal
in class RolapMember
public void setProperty(String name, Object value)
RolapMember
WARNING: Setting system properties such as "$name" may have nasty side-effects.
setProperty
in interface Member
setProperty
in class RolapMember
public Object getPropertyValue(String propertyName, boolean matchCase)
Member
propertyName
,
matching according to the required case-sensitivity.
getPropertyValue
in interface Member
getPropertyValue
in class RolapMember
public int getSolveOrder()
getSolveOrder
in interface Member
getSolveOrder
in class MemberBase
protected Object getPropertyFromMap(String propertyName, boolean matchCase)
RolapMember
getPropertyFromMap
in class RolapMember
propertyName
- Name of propertymatchCase
- Whether to match name case-sensitive
public final Member.MemberType getMemberType()
Member
getMemberType
in interface Member
getMemberType
in class MemberBase
public RolapCubeMember 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 class RolapMember
public String getCaption()
OlapElementBase
getCaption
in interface OlapElement
getCaption
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 isCalculatedInQuery()
Member
WITH MEMBER
clause in an MDX query.
isCalculatedInQuery
in interface Member
isCalculatedInQuery
in class RolapMember
public Exp getExpression()
MemberBase
getExpression
in interface Member
getExpression
in class MemberBase
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment childName, MatchType matchType)
lookupChild
in interface OlapElement
lookupChild
in class MemberBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |