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.

Author:
Will Gorman (wgorman@pentaho.org)
 

Field Summary
(package private)  int cubeOrdinal
           
(package private)  RolapCube parent
           
(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 parent, RolapDimension rolapDim, MondrianDef.CubeDimension cubeDim, String name, int cubeOrdinal, boolean highCardinality)
           
 
Method Summary
 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 or DimensionType.TimeDimension
 int getOrdinal()
           
 int getOrdinal(Cube cube)
          Returns dimension's ordinal within a given cube.
 Schema getSchema()
          Returns the schema this dimension belongs to.
(package private)  RolapCubeHierarchy newHierarchy(String subName, boolean hasAll)
           
 void setCaption(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, lookupChild, usesDimension
 
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

parent

RolapCube parent

rolapDimension

RolapDimension rolapDimension

cubeOrdinal

int cubeOrdinal

xmlDimension

MondrianDef.CubeDimension xmlDimension
Constructor Detail

RolapCubeDimension

public RolapCubeDimension(RolapCube parent,
                          RolapDimension rolapDim,
                          MondrianDef.CubeDimension cubeDim,
                          String name,
                          int cubeOrdinal,
                          boolean highCardinality)
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()

getOrdinal

public int getOrdinal(Cube cube)
Description copied from interface: Dimension
Returns dimension's ordinal within a given cube. The [Measures] always has ordinal 0.

Specified by:
getOrdinal in interface Dimension
Overrides:
getOrdinal in class RolapDimension

equals

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

newHierarchy

RolapCubeHierarchy newHierarchy(String subName,
                                boolean hasAll)
Overrides:
newHierarchy in class RolapDimension

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

setCaption

public void setCaption(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

SourceForge.net_Logo