mondrian.rolap
Class RolapCubeDimension

java.lang.Object
  extended by mondrian.olap.OlapElementBase
      extended by mondrian.olap.DimensionBase
          extended by mondrian.rolap.RolapDimension
              extended by mondrian.rolap.RolapCubeDimension
All Implemented Interfaces:
Dimension, OlapElement

public class RolapCubeDimension
extends RolapDimension

RolapCubeDimension wraps a RolapDimension for a specific Cube.

Version:
$Id: //open/mondrian/src/main/mondrian/rolap/RolapCubeDimension.java#10 $
Author:
Will Gorman (wgorman@pentaho.org)

Field Summary
(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
 
Fields inherited from interface mondrian.olap.Dimension
MEASURES_NAME, MEASURES_UNIQUE_NAME
 
Constructor Summary
RolapCubeDimension(RolapCube cube, RolapDimension rolapDim, MondrianDef.CubeDimension cubeDim, java.lang.String name, int cubeOrdinal, java.util.List<RolapHierarchy> hierarchyList, boolean highCardinality)
          Creates a RolapCubeDimension.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getCaption()
          Returns the display name of this catalog element.
 RolapCube getCube()
           
 DimensionType getDimensionType()
          Returns the type of this dimension (DimensionType.StandardDimension or DimensionType.TimeDimension
 int getOrdinal()
           
 Schema getSchema()
          Returns the schema this dimension belongs to.
(package private)  RolapCubeHierarchy newHierarchy(java.lang.String subName, boolean hasAll, RolapHierarchy closureFor)
          Creates a hierarchy.
 void setCaption(java.lang.String caption)
          Sets the display name of this catalog element.
 
Methods inherited from class mondrian.rolap.RolapDimension
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, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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,
                          java.lang.String name,
                          int cubeOrdinal,
                          java.util.List<RolapHierarchy> hierarchyList,
                          boolean highCardinality)
Creates a RolapCubeDimension.

Parameters:
cube - Cube
rolapDim - Dimension wrapped by this dimension
cubeDim - XML element definition
name - Name of dimension
cubeOrdinal - Ordinal of dimension within cube
hierarchyList - List of hierarchies in cube
highCardinality - 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 interface Dimension
Overrides:
getSchema in class RolapDimension

getOrdinal

public int getOrdinal()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class OlapElementBase

newHierarchy

RolapCubeHierarchy newHierarchy(java.lang.String subName,
                                boolean hasAll,
                                RolapHierarchy closureFor)
Description copied from class: RolapDimension
Creates a hierarchy.

Overrides:
newHierarchy in class RolapDimension
Parameters:
subName - Name of this hierarchy.
hasAll - Whether hierarchy has an 'all' member
closureFor - Hierarchy for which the new hierarchy is a closure; null for regular hierarchies
Returns:
Hierarchy

getCaption

public java.lang.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 interface OlapElement
Overrides:
getCaption in class OlapElementBase

setCaption

public void setCaption(java.lang.String caption)
Description copied from class: OlapElementBase
Sets the display name of this catalog element.

Overrides:
setCaption in class OlapElementBase

getDimensionType

public DimensionType getDimensionType()
Description copied from interface: Dimension
Returns the type of this dimension (DimensionType.StandardDimension or DimensionType.TimeDimension

Specified by:
getDimensionType in interface Dimension
Overrides:
getDimensionType in class DimensionBase

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads