mondrian.rolap
Class RolapCalculatedMember

java.lang.Object
  extended by mondrian.olap.OlapElementBase
      extended by mondrian.olap.MemberBase
          extended by mondrian.rolap.RolapMember
              extended by 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
 

Nested Class Summary
 
Nested classes/interfaces inherited from interface mondrian.olap.Member
Member.MemberType
 
Field Summary
 
Fields inherited from class mondrian.olap.MemberBase
flags, level, parentMember, parentUniqueName, uniqueName
 
Fields inherited from class mondrian.olap.OlapElementBase
caption
 
Constructor Summary
RolapCalculatedMember(RolapMember parentMember, RolapLevel level, String name, Formula formula)
           
 
Method Summary
protected  boolean computeCalculated(Member.MemberType memberType)
          Computes the value to be returned by MemberBase.isCalculated(), so it can be cached in a variable.
 Exp getExpression()
          Returns the expression by which this member is calculated.
 Formula getFormula()
           
 Object getPropertyValue(String propertyName, boolean matchCase)
          Returns the value of the property named propertyName, matching according to the required case-sensitivity.
 int getSolveOrder()
           
 boolean isCalculatedInQuery()
          Returns whether this member is computed from a WITH MEMBER clause in an MDX query.
 
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
 
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
 

Constructor Detail

RolapCalculatedMember

RolapCalculatedMember(RolapMember parentMember,
                      RolapLevel level,
                      String name,
                      Formula formula)
Method Detail

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()

SourceForge.net_Logo