Package mondrian.rolap
Class RolapCubeDimension
- java.lang.Object
-
- mondrian.olap.OlapElementBase
-
- mondrian.olap.DimensionBase
-
- mondrian.rolap.RolapDimension
-
- mondrian.rolap.RolapCubeDimension
-
- All Implemented Interfaces:
Annotated
,Dimension
,OlapElement
public class RolapCubeDimension extends RolapDimension
RolapCubeDimension wraps a RolapDimension for a specific Cube.- Author:
- Will Gorman, 19 October 2007
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty
-
-
Field Summary
Fields Modifier and Type Field Description (package private) RolapCube
cube
(package private) int
cubeOrdinal
(package private) RolapDimension
rolapDimension
(package private) MondrianDef.CubeDimension
xmlDimension
-
Fields inherited from class mondrian.olap.DimensionBase
description, dimensionType, hierarchies, highCardinality, name, uniqueName
-
Fields inherited from class mondrian.olap.OlapElementBase
caption, visible
-
Fields inherited from interface mondrian.olap.Dimension
MEASURES_NAME, MEASURES_UNIQUE_NAME
-
-
Constructor Summary
Constructors Constructor Description RolapCubeDimension(RolapCube cube, RolapDimension rolapDim, MondrianDef.CubeDimension cubeDim, String name, int cubeOrdinal, List<RolapHierarchy> hierarchyList, boolean highCardinality)
Creates a RolapCubeDimension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCaption()
Returns the display name of this catalog element.RolapCube
getCube()
DimensionType
getDimensionType()
Returns the type of this dimension (DimensionType.StandardDimension
orDimensionType.TimeDimension
int
getOrdinal()
Schema
getSchema()
Returns the schema this dimension belongs to.(package private) RolapCubeHierarchy
newHierarchy(String subName, boolean hasAll, RolapHierarchy closureFor)
Creates a hierarchy.void
setCaption(String caption)
Sets the display name of this catalog element.-
Methods inherited from class mondrian.rolap.RolapDimension
getAnnotationMap, getHierarchy, getLogger, init
-
Methods inherited from class mondrian.olap.DimensionBase
getDescription, getDimension, getHierarchies, getName, getQualifiedName, getUniqueName, isHighCardinality, isMeasures, lookupChild
-
Methods inherited from class mondrian.olap.OlapElementBase
clone, computeHashCode, equals, getLocalized, hashCode, isVisible, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface mondrian.olap.OlapElement
getLocalized, isVisible
-
-
-
-
Field Detail
-
cube
RolapCube cube
-
rolapDimension
RolapDimension rolapDimension
-
cubeOrdinal
int cubeOrdinal
-
xmlDimension
MondrianDef.CubeDimension xmlDimension
-
-
Constructor Detail
-
RolapCubeDimension
public RolapCubeDimension(RolapCube cube, RolapDimension rolapDim, MondrianDef.CubeDimension cubeDim, String name, int cubeOrdinal, List<RolapHierarchy> hierarchyList, boolean highCardinality)
Creates a RolapCubeDimension.- Parameters:
cube
- CuberolapDim
- Dimension wrapped by this dimensioncubeDim
- XML element definitionname
- Name of dimensioncubeOrdinal
- Ordinal of dimension within cubehierarchyList
- List of hierarchies in cubehighCardinality
- Whether high cardinality dimension
-
-
Method Detail
-
getCube
public RolapCube getCube()
-
getSchema
public Schema getSchema()
Description copied from interface:Dimension
Returns the schema this dimension belongs to.- Specified by:
getSchema
in interfaceDimension
- Overrides:
getSchema
in classRolapDimension
-
getOrdinal
public int getOrdinal()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classOlapElementBase
-
newHierarchy
RolapCubeHierarchy newHierarchy(String subName, boolean hasAll, RolapHierarchy closureFor)
Description copied from class:RolapDimension
Creates a hierarchy.- Overrides:
newHierarchy
in classRolapDimension
- Parameters:
subName
- Name of this hierarchy.hasAll
- Whether hierarchy has an 'all' memberclosureFor
- Hierarchy for which the new hierarchy is a closure; null for regular hierarchies- Returns:
- Hierarchy
-
getCaption
public String getCaption()
Description copied from class:OlapElementBase
Returns the display name of this catalog element. If no caption is defined, the name is returned.- Specified by:
getCaption
in interfaceOlapElement
- Overrides:
getCaption
in classOlapElementBase
-
setCaption
public void setCaption(String caption)
Description copied from class:OlapElementBase
Sets the display name of this catalog element.- Overrides:
setCaption
in classOlapElementBase
-
getDimensionType
public DimensionType getDimensionType()
Description copied from interface:Dimension
Returns the type of this dimension (DimensionType.StandardDimension
orDimensionType.TimeDimension
- Specified by:
getDimensionType
in interfaceDimension
- Overrides:
getDimensionType
in classDimensionBase
-
-