mondrian.olap4j
Class MondrianOlap4jHierarchy

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

 class MondrianOlap4jHierarchy
extends MondrianOlap4jMetadataElement
implements Hierarchy, org.olap4j.impl.Named

Implementation of Hierarchy for the Mondrian OLAP engine.

Since:
May 25, 2007
Author:
jhyde

Field Summary
(package private)  Hierarchy hierarchy
           
(package private)  MondrianOlap4jSchema olap4jSchema
           
 
Constructor Summary
MondrianOlap4jHierarchy(MondrianOlap4jSchema olap4jSchema, Hierarchy hierarchy)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCaption()
           
 Member getDefaultMember()
           
 String getDescription()
           
 Dimension getDimension()
           
 NamedList<Level> getLevels()
           
 String getName()
           
protected  OlapElement getOlapElement()
          Returns the Mondrian metadata element inside this wrapper, or null if there is none.
 NamedList<Member> getRootMembers()
           
 String getUniqueName()
           
 boolean hasAll()
           
 int hashCode()
           
 boolean isVisible()
           
 
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

olap4jSchema

final MondrianOlap4jSchema olap4jSchema

hierarchy

final Hierarchy hierarchy
Constructor Detail

MondrianOlap4jHierarchy

MondrianOlap4jHierarchy(MondrianOlap4jSchema olap4jSchema,
                        Hierarchy hierarchy)
Method Detail

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getDimension

public Dimension getDimension()
Specified by:
getDimension in interface Hierarchy

getLevels

public NamedList<Level> getLevels()
Specified by:
getLevels in interface Hierarchy

hasAll

public boolean hasAll()
Specified by:
hasAll in interface Hierarchy

getDefaultMember

public Member getDefaultMember()
Specified by:
getDefaultMember in interface Hierarchy

getRootMembers

public NamedList<Member> getRootMembers()
                                 throws OlapException
Specified by:
getRootMembers in interface Hierarchy
Throws:
OlapException

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

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