mondrian.olap4j
Class MondrianOlap4jCube

java.lang.Object
  extended by mondrian.olap4j.MondrianOlap4jMetadataElement
      extended by mondrian.olap4j.MondrianOlap4jCube
All Implemented Interfaces:
org.olap4j.impl.Named, Cube, MetadataElement, OlapWrapper

 class MondrianOlap4jCube
extends MondrianOlap4jMetadataElement
implements Cube, org.olap4j.impl.Named

Implementation of Cube for the Mondrian OLAP engine.

Since:
May 24, 2007
Author:
jhyde

Field Summary
(package private)  Cube cube
           
(package private)  MondrianOlap4jSchema olap4jSchema
           
 
Constructor Summary
MondrianOlap4jCube(Cube cube, MondrianOlap4jSchema olap4jSchema)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCaption()
           
 String getDescription()
           
 NamedList<Dimension> getDimensions()
           
 NamedList<Hierarchy> getHierarchies()
           
 List<Measure> getMeasures()
           
 String getName()
           
protected  OlapElement getOlapElement()
          Returns the Mondrian metadata element inside this wrapper, or null if there is none.
 Schema getSchema()
           
 NamedList<NamedSet> getSets()
           
 Collection<Locale> getSupportedLocales()
           
 String getUniqueName()
           
 int hashCode()
           
 boolean isDrillThroughEnabled()
           
 boolean isVisible()
           
 MondrianOlap4jMember lookupMember(List<IdentifierSegment> nameParts)
           
 List<Member> lookupMembers(Set<Member.TreeOp> treeOps, List<IdentifierSegment> nameParts)
           
 
Methods inherited from class mondrian.olap4j.MondrianOlap4jMetadataElement
isWrapperFor, unwrap, unwrapImpl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cube

final Cube cube

olap4jSchema

final MondrianOlap4jSchema olap4jSchema
Constructor Detail

MondrianOlap4jCube

MondrianOlap4jCube(Cube cube,
                   MondrianOlap4jSchema olap4jSchema)
Method Detail

getSchema

public Schema getSchema()
Specified by:
getSchema in interface Cube

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getDimensions

public NamedList<Dimension> getDimensions()
Specified by:
getDimensions in interface Cube

getHierarchies

public NamedList<Hierarchy> getHierarchies()
Specified by:
getHierarchies in interface Cube

getMeasures

public List<Measure> getMeasures()
Specified by:
getMeasures in interface Cube

getSets

public NamedList<NamedSet> getSets()
Specified by:
getSets in interface Cube

getSupportedLocales

public Collection<Locale> getSupportedLocales()
Specified by:
getSupportedLocales in interface Cube

getName

public String getName()
Specified by:
getName in interface org.olap4j.impl.Named
Specified by:
getName in interface MetadataElement

getUniqueName

public String getUniqueName()
Specified by:
getUniqueName in interface MetadataElement

getCaption

public String getCaption()
Specified by:
getCaption in interface MetadataElement

getDescription

public String getDescription()
Specified by:
getDescription in interface MetadataElement

isVisible

public boolean isVisible()
Specified by:
isVisible in interface MetadataElement

lookupMember

public MondrianOlap4jMember lookupMember(List<IdentifierSegment> nameParts)
                                  throws OlapException
Specified by:
lookupMember in interface Cube
Throws:
OlapException

lookupMembers

public List<Member> lookupMembers(Set<Member.TreeOp> treeOps,
                                  List<IdentifierSegment> nameParts)
                           throws OlapException
Specified by:
lookupMembers in interface Cube
Throws:
OlapException

isDrillThroughEnabled

public boolean isDrillThroughEnabled()
Specified by:
isDrillThroughEnabled in interface Cube

getOlapElement

protected OlapElement getOlapElement()
Description copied from class: MondrianOlap4jMetadataElement
Returns the Mondrian metadata element inside this wrapper, or null if there is none.

Specified by:
getOlapElement in class MondrianOlap4jMetadataElement
Returns:
The Mondrian metadata element, if any

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