Class MondrianOlap4jHierarchy

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

public class MondrianOlap4jHierarchy extends Object implements org.olap4j.metadata.Hierarchy, org.olap4j.impl.Named
Implementation of Hierarchy for the Mondrian OLAP engine.
Since:
May 25, 2007
Author:
jhyde
  • Method Details

    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDimension

      public org.olap4j.metadata.Dimension getDimension()
      Specified by:
      getDimension in interface org.olap4j.metadata.Hierarchy
    • getLevels

      public org.olap4j.metadata.NamedList<org.olap4j.metadata.Level> getLevels()
      Specified by:
      getLevels in interface org.olap4j.metadata.Hierarchy
    • hasAll

      public boolean hasAll()
      Specified by:
      hasAll in interface org.olap4j.metadata.Hierarchy
    • getDefaultMember

      public org.olap4j.metadata.Member getDefaultMember() throws org.olap4j.OlapException
      Specified by:
      getDefaultMember in interface org.olap4j.metadata.Hierarchy
      Throws:
      org.olap4j.OlapException
    • getRootMembers

      public org.olap4j.metadata.NamedList<org.olap4j.metadata.Member> getRootMembers() throws org.olap4j.OlapException
      Specified by:
      getRootMembers in interface org.olap4j.metadata.Hierarchy
      Throws:
      org.olap4j.OlapException
    • getName

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

      public String getUniqueName()
      Specified by:
      getUniqueName in interface org.olap4j.metadata.MetadataElement
    • getCaption

      public String getCaption()
      Specified by:
      getCaption in interface org.olap4j.metadata.MetadataElement
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.olap4j.metadata.MetadataElement
    • isVisible

      public boolean isVisible()
      Specified by:
      isVisible in interface org.olap4j.metadata.MetadataElement
    • getOlapElement

      protected OlapElement getOlapElement()
      Returns the Mondrian metadata element inside this wrapper, or null if there is none.
      Returns:
      The Mondrian metadata element, if any
    • getDisplayFolder

      public String getDisplayFolder()
    • getHierarchy

      public Hierarchy getHierarchy()
    • unwrapImpl

      protected <T> T unwrapImpl(Class<T> iface)
      Helper for OlapWrapper.unwrap(Class) and OlapWrapper.isWrapperFor(Class).
      Type Parameters:
      T - Type
      Parameters:
      iface - Desired interface
      Returns:
      This as desired interface, or null
    • unwrap

      public <T> T unwrap(Class<T> iface) throws SQLException
      Specified by:
      unwrap in interface org.olap4j.OlapWrapper
      Throws:
      SQLException
    • isWrapperFor

      public boolean isWrapperFor(Class<?> iface)
      Specified by:
      isWrapperFor in interface org.olap4j.OlapWrapper