|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.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 class mondrian.rolap.RolapMember |
|---|
RolapMember.DefaultPropertyValueMapFactory, RolapMember.PropertyValueMapFactory, RolapMember.PropertyValueMapFactoryFactory |
| Nested classes/interfaces inherited from interface mondrian.olap.Member |
|---|
Member.MemberType |
| Field Summary | |
|---|---|
protected java.lang.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(java.lang.Object o)
Compares this member to another RolapMember. |
boolean |
equals(java.lang.Object o)
|
boolean |
equals(OlapElement o)
|
java.lang.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()
|
java.lang.Object |
getKey()
|
RolapCubeLevel |
getLevel()
|
Member.MemberType |
getMemberType()
Returns the type of member. |
java.lang.String |
getName()
|
java.lang.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 java.lang.Object |
getPropertyFromMap(java.lang.String propertyName,
boolean matchCase)
Returns the value of a property by looking it up in the property map. |
java.lang.Object |
getPropertyValue(java.lang.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)
Looks up a child element, returning null if it does not exist. |
(package private) void |
setOrderKey(java.lang.Comparable orderKey)
|
(package private) void |
setOrdinal(int ordinal)
|
void |
setProperty(java.lang.String name,
java.lang.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, isParentChildLeaf, keyToString, makeUniqueName, setName, setOrdinals, setParentMember, setUniqueName |
| Methods inherited from class mondrian.olap.MemberBase |
|---|
computeCalculated, getAncestorMembers, getDescription, getDimension, getParentUniqueName, getQualifiedName, getUniqueName, isChildOrEqualTo, isChildOrEqualTo, isEvaluated |
| 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 java.lang.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 MembergetDepth in class RolapMemberpublic boolean isNull()
Member
isNull in interface MemberisNull in class MemberBasepublic boolean isMeasure()
Member
isMeasure in interface MemberisMeasure in class MemberBasepublic boolean isAll()
Member
isAll in interface MemberisAll in class MemberBasepublic 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()
MemberReturns this member if this member is a leaf member, or if the nonleaf member does not have an associated data member.
getDataMember in interface MembergetDataMember in class MemberBasepublic int compareTo(java.lang.Object o)
RolapMemberRolapMember.
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 java.lang.ComparablecompareTo in class RolapMemberpublic boolean equals(java.lang.Object o)
equals in class RolapMemberpublic boolean equals(OlapElement o)
equals in class RolapMemberpublic java.lang.Object getKey()
getKey in class RolapMemberpublic RolapCubeHierarchy getHierarchy()
getHierarchy in interface MembergetHierarchy in interface OlapElementgetHierarchy in class RolapMemberpublic 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 MembergetLevel in class RolapMemberpublic java.lang.String getName()
getName in interface OlapElementgetName in class RolapMemberpublic java.lang.Comparable getOrderKey()
MemberBase
getOrderKey in interface MembergetOrderKey in class RolapMembervoid setOrderKey(java.lang.Comparable orderKey)
setOrderKey in class RolapMemberpublic int getOrdinal()
MemberBase
getOrdinal in interface MembergetOrdinal in class RolapMembervoid setOrdinal(int ordinal)
setOrdinal in class RolapMember
public void setProperty(java.lang.String name,
java.lang.Object value)
RolapMemberWARNING: Setting system properties such as "$name" may have nasty side-effects.
setProperty in interface MembersetProperty in class RolapMember
public java.lang.Object getPropertyValue(java.lang.String propertyName,
boolean matchCase)
MemberpropertyName,
matching according to the required case-sensitivity.
getPropertyValue in interface MembergetPropertyValue in class RolapMemberpublic int getSolveOrder()
getSolveOrder in interface MembergetSolveOrder in class MemberBase
protected java.lang.Object getPropertyFromMap(java.lang.String propertyName,
boolean matchCase)
RolapMember
getPropertyFromMap in class RolapMemberpropertyName - Name of propertymatchCase - Whether to match name case-sensitive
public final Member.MemberType getMemberType()
Member
getMemberType in interface MembergetMemberType in class MemberBasepublic RolapCubeMember getParentMember()
MemberHierarchy.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 MembergetParentMember in class RolapMemberpublic java.lang.String getCaption()
OlapElementBase
getCaption in interface OlapElementgetCaption in class MemberBasepublic boolean isCalculated()
Memberwith
member clause in an mdx query or a calculated member defined in
cube.
isCalculated in interface MemberisCalculated in class MemberBasepublic boolean isCalculatedInQuery()
MemberWITH MEMBER
clause in an MDX query.
isCalculatedInQuery in interface MemberisCalculatedInQuery in class RolapMemberpublic Exp getExpression()
MemberBase
getExpression in interface MembergetExpression in class MemberBase
public OlapElement lookupChild(SchemaReader schemaReader,
Id.Segment childName,
MatchType matchType)
OlapElement
lookupChild in interface OlapElementlookupChild in class MemberBase
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||