mondrian.rolap
Class RolapCalculatedMember
java.lang.Object
mondrian.olap.OlapElementBase
mondrian.olap.MemberBase
mondrian.rolap.RolapMember
mondrian.rolap.RolapCalculatedMember
- All Implemented Interfaces:
- Comparable, Member, OlapElement
- Direct Known Subclasses:
- RolapHierarchy.RolapCalculatedMeasure
public class RolapCalculatedMember
- extends RolapMember
A RolapCalculatedMember
is a member based upon a
Formula
.
It is created before the formula has been resolved; the formula is
responsible for setting the "format_string" property.
- Since:
- 26 August, 2001
- Author:
- jhyde
-
-
Methods inherited from class mondrian.rolap.RolapMember |
childLevelHasApproxRowCount, compareTo, equals, equals, getAllMembers, getDepth, getHierarchy, getHierarchyCardinality, getKey, getLevel, getLogger, getName, getOrderKey, getOrdinal, getParentMember, getProperties, getPropertyFormattedValue, getPropertyFromMap, getPropertyValue, hashCode, isAllMember, isHidden, keyToString, makeUniqueName, setName, setOrderKey, setOrdinal, setOrdinals, setParentMember, setProperty, setUniqueName |
Methods inherited from class mondrian.olap.MemberBase |
getAncestorMembers, getCaption, getDataMember, getDescription, getDimension, getMemberType, getParentUniqueName, getQualifiedName, getUniqueName, isAll, isCalculated, isChildOrEqualTo, isChildOrEqualTo, isMeasure, isNull, lookupChild, lookupChild |
RolapCalculatedMember
RolapCalculatedMember(RolapMember parentMember,
RolapLevel level,
String name,
Formula formula)
getSolveOrder
public int getSolveOrder()
- Specified by:
getSolveOrder
in interface Member
- Overrides:
getSolveOrder
in class MemberBase
getPropertyValue
public Object getPropertyValue(String propertyName,
boolean matchCase)
- Description copied from interface:
Member
- Returns the value of the property named
propertyName
,
matching according to the required case-sensitivity.
- Specified by:
getPropertyValue
in interface Member
- Overrides:
getPropertyValue
in class RolapMember
computeCalculated
protected boolean computeCalculated(Member.MemberType memberType)
- Description copied from class:
MemberBase
- Computes the value to be returned by
MemberBase.isCalculated()
, so it can
be cached in a variable.
- Overrides:
computeCalculated
in class MemberBase
- Parameters:
memberType
- Member type
- Returns:
- Whether this member is calculated
isCalculatedInQuery
public boolean isCalculatedInQuery()
- Description copied from interface:
Member
- Returns whether this member is computed from a
WITH MEMBER
clause in an MDX query.
- Specified by:
isCalculatedInQuery
in interface Member
- Overrides:
isCalculatedInQuery
in class RolapMember
getExpression
public Exp getExpression()
- Description copied from class:
MemberBase
- Returns the expression by which this member is calculated. The expression
is not null if and only if the member is not calculated.
- Specified by:
getExpression
in interface Member
- Overrides:
getExpression
in class MemberBase
getFormula
public Formula getFormula()