Package mondrian.rolap
Class RolapCubeLevel
java.lang.Object
mondrian.olap.OlapElementBase
mondrian.olap.LevelBase
mondrian.rolap.RolapLevel
mondrian.rolap.RolapCubeLevel
- All Implemented Interfaces:
Annotated,Level,OlapElement
RolapCubeLevel wraps a RolapLevel for a specific Cube.
- Author:
- Will Gorman, 19 October 2007
-
Nested Class Summary
Nested classes/interfaces inherited from class mondrian.rolap.RolapLevel
RolapLevel.HideMemberConditionNested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty -
Field Summary
FieldsFields inherited from class mondrian.rolap.RolapLevel
captionExp, keyExp, nameExp, ordinalExp, parentExp, properties, xmlClosureFields inherited from class mondrian.olap.LevelBase
approxRowCount, depth, description, hierarchy, levelType, memberFormatter, name, uniqueNameFields inherited from class mondrian.olap.OlapElementBase
caption, visible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(RolapCubeLevel level) getBaseStarKeyColumn(RolapCube baseCube) this method returns the RolapStar.Column if non-virtual, if virtual, find the base cube level and return it's columnReturns the display name of this catalog element.final RolapCubeLevelfinal RolapCubegetCube()Returns the (non virtual) cube this level belongs to.final RolapCubeDimensionReturns the dimension of a this expression, or null if no dimension is defined.final RolapCubeHierarchyReturns the object that is used to format members of this level.final RolapCubeLevelReturns the underlying level.This is the RolapStar.Column that is related to this RolapCubeLevelvoidsetCaption(String caption) Sets the display name of this catalog element.voidsetStarKeyColumn(RolapStar.Column column) Methods inherited from class mondrian.rolap.RolapLevel
areMembersUnique, getAnnotationMap, getApproxRowCount, getCaptionExp, getDatatype, getInheritedProperties, getInternalType, getKeyExp, getLogger, getNameExp, getOrdinalExp, getProperties, getTableAlias, hasCaptionColumn, hasOrdinalExp, isAll, isParentChild, isSimple, isUnique, lookupChild, lookupChild, lookupLevelMethods inherited from class mondrian.olap.LevelBase
getDepth, getDescription, getLevelType, getName, getQualifiedName, getUniqueName, isMeasure, setApproxRowCountMethods inherited from class mondrian.olap.OlapElementBase
clone, computeHashCode, equals, equals, getLocalized, hashCode, isVisible, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface mondrian.olap.OlapElement
getLocalized, isVisible
-
Field Details
-
levelReader
protected mondrian.rolap.RolapCubeLevel.LevelReader levelReader
-
-
Constructor Details
-
RolapCubeLevel
-
-
Method Details
-
setStarKeyColumn
-
getStarKeyColumn
This is the RolapStar.Column that is related to this RolapCubeLevel- Returns:
- the RolapStar.Column related to this RolapCubeLevel
-
getBaseStarKeyColumn
this method returns the RolapStar.Column if non-virtual, if virtual, find the base cube level and return it's column- Parameters:
baseCube- the base cube for the specificed virtual level- Returns:
- the RolapStar.Column related to this RolapCubeLevel
-
getCube
Returns the (non virtual) cube this level belongs to.- Returns:
- cube
-
getDimension
Description copied from interface:OlapElementReturns the dimension of a this expression, or null if no dimension is defined. Applicable only to set expressions.Example 1:
has dimension[Sales].children
[Sales].Example 2:
has dimension [Promotion Media].order(except([Promotion Media].[Media Type].members, {[Promotion Media].[Media Type].[No Media]}), [Measures].[Unit Sales], DESC)Example 3:
has no dimension (well, actually it is [Product] x [Gender], but we can't represent that, so we return null);CrossJoin([Product].[Product Department].members, [Gender].members)- Specified by:
getDimensionin interfaceOlapElement- Overrides:
getDimensionin classLevelBase
-
getHierarchy
- Specified by:
getHierarchyin interfaceLevel- Specified by:
getHierarchyin interfaceOlapElement- Overrides:
getHierarchyin classRolapLevel
-
getChildLevel
- Specified by:
getChildLevelin interfaceLevel- Overrides:
getChildLevelin classLevelBase
-
getParentLevel
- Specified by:
getParentLevelin interfaceLevel- Overrides:
getParentLevelin classLevelBase
-
getCaption
Description copied from class:OlapElementBaseReturns the display name of this catalog element. If no caption is defined, the name is returned.- Specified by:
getCaptionin interfaceOlapElement- Overrides:
getCaptionin classOlapElementBase
-
setCaption
Description copied from class:OlapElementBaseSets the display name of this catalog element.- Overrides:
setCaptionin classOlapElementBase
-
getRolapLevel
Returns the underlying level.- Returns:
- Underlying level
-
equals
-
getClosedPeer
- Overrides:
getClosedPeerin classRolapLevel
-
getMemberFormatter
Description copied from interface:LevelReturns the object that is used to format members of this level.- Specified by:
getMemberFormatterin interfaceLevel- Overrides:
getMemberFormatterin classLevelBase
-