Package mondrian.rolap
Class RolapCalculatedMember
- java.lang.Object
-
- mondrian.olap.OlapElementBase
-
- mondrian.olap.MemberBase
-
- mondrian.rolap.RolapMemberBase
-
- mondrian.rolap.RolapCalculatedMember
-
- All Implemented Interfaces:
Comparable,Annotated,Member,OlapElement,RolapMember
- Direct Known Subclasses:
RolapHierarchy.RolapCalculatedMeasure
public class RolapCalculatedMember extends RolapMemberBase
ARolapCalculatedMemberis a member based upon aFormula.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.rolap.RolapMemberBase
RolapMemberBase.DefaultPropertyValueMapFactory, RolapMemberBase.PropertyValueMapFactory, RolapMemberBase.PropertyValueMapFactoryFactory
-
Nested classes/interfaces inherited from interface mondrian.olap.Member
Member.MemberType
-
Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty
-
-
Field Summary
-
Fields inherited from class mondrian.olap.MemberBase
flags, level, parentMember, uniqueName
-
Fields inherited from class mondrian.olap.OlapElementBase
caption, visible
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancomputeCalculated(Member.MemberType memberType)Computes the value to be returned byMemberBase.isCalculated(), so it can be cached in a variable.Map<String,Annotation>getAnnotationMap()Returns a list of annotations.RolapCubegetBaseCube()ExpgetExpression()Returns the expression by which this member is calculated.FormulagetFormula()ObjectgetPropertyValue(String propertyName, boolean matchCase)Returns the value of the property namedpropertyName, matching according to the required case-sensitivity.intgetSolveOrder()booleanisCalculatedInQuery()Returns whether this member is computed from aWITH MEMBERclause in an MDX query.voidsetBaseCube(RolapCube baseCube)-
Methods inherited from class mondrian.rolap.RolapMemberBase
childLevelHasApproxRowCount, compareTo, containsAggregateFunction, equals, equals, getAllMembers, getCaptionValue, getCompiledExpression, getDepth, getHierarchy, getHierarchyCardinality, getHierarchyOrdinal, getKey, getLevel, getLogger, getName, getOrderKey, getOrdinal, getParentMember, getProperties, getPropertyFormattedValue, getPropertyFromMap, getPropertyValue, hashCode, isAllMember, isHidden, isParentChildLeaf, keyToString, setCaptionValue, setContextIn, setName, setOrdinal, setOrdinals, setProperty, setUniqueName
-
Methods inherited from class mondrian.olap.MemberBase
getAncestorMembers, getCaption, getDataMember, getDescription, getDimension, getMemberType, getParentUniqueName, getQualifiedName, getUniqueName, isAll, isCalculated, isChildOrEqualTo, isChildOrEqualTo, isEvaluated, isMeasure, isNull, isOnSameHierarchyChain, isOnSameHierarchyChainInternal, isParentChildPhysicalMember, lookupChild
-
Methods inherited from class mondrian.olap.OlapElementBase
clone, computeHashCode, getLocalized, isVisible, setCaption, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface mondrian.olap.Member
getAncestorMembers, getDataMember, getMemberType, getParentUniqueName, isAll, isCalculated, isChildOrEqualTo, isEvaluated, isMeasure, isNull, isOnSameHierarchyChain, isParentChildPhysicalMember
-
Methods inherited from interface mondrian.olap.OlapElement
getCaption, getDescription, getDimension, getLocalized, getQualifiedName, getUniqueName, isVisible, lookupChild
-
-
-
-
Method Detail
-
getSolveOrder
public int getSolveOrder()
- Specified by:
getSolveOrderin interfaceMember- Overrides:
getSolveOrderin classMemberBase
-
getPropertyValue
public Object getPropertyValue(String propertyName, boolean matchCase)
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
-
computeCalculated
protected boolean computeCalculated(Member.MemberType memberType)
Description copied from class:MemberBaseComputes the value to be returned byMemberBase.isCalculated(), so it can be cached in a variable.- Overrides:
computeCalculatedin classMemberBase- Parameters:
memberType- Member type- Returns:
- Whether this member is calculated
-
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
-
getExpression
public Exp 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
-
getFormula
public Formula getFormula()
-
getAnnotationMap
public Map<String,Annotation> 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.
-
getBaseCube
public RolapCube getBaseCube()
-
setBaseCube
public void setBaseCube(RolapCube baseCube)
-
-