Package mondrian.olap4j
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 Summary
Modifier and TypeMethodDescriptionboolean
org.olap4j.metadata.Member
org.olap4j.metadata.Dimension
org.olap4j.metadata.NamedList<org.olap4j.metadata.Level>
getName()
protected OlapElement
Returns the Mondrian metadata element inside this wrapper, or null if there is none.org.olap4j.metadata.NamedList<org.olap4j.metadata.Member>
boolean
hasAll()
int
hashCode()
boolean
boolean
isWrapperFor
(Class<?> iface) <T> T
protected <T> T
unwrapImpl
(Class<T> iface) Helper forOlapWrapper.unwrap(Class)
andOlapWrapper.isWrapperFor(Class)
.
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getDimension
public org.olap4j.metadata.Dimension getDimension()- Specified by:
getDimension
in interfaceorg.olap4j.metadata.Hierarchy
-
getLevels
public org.olap4j.metadata.NamedList<org.olap4j.metadata.Level> getLevels()- Specified by:
getLevels
in interfaceorg.olap4j.metadata.Hierarchy
-
hasAll
public boolean hasAll()- Specified by:
hasAll
in interfaceorg.olap4j.metadata.Hierarchy
-
getDefaultMember
public org.olap4j.metadata.Member getDefaultMember() throws org.olap4j.OlapException- Specified by:
getDefaultMember
in interfaceorg.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 interfaceorg.olap4j.metadata.Hierarchy
- Throws:
org.olap4j.OlapException
-
getName
- Specified by:
getName
in interfaceorg.olap4j.metadata.MetadataElement
- Specified by:
getName
in interfaceorg.olap4j.impl.Named
-
getUniqueName
- Specified by:
getUniqueName
in interfaceorg.olap4j.metadata.MetadataElement
-
getCaption
- Specified by:
getCaption
in interfaceorg.olap4j.metadata.MetadataElement
-
getDescription
- Specified by:
getDescription
in interfaceorg.olap4j.metadata.MetadataElement
-
isVisible
public boolean isVisible()- Specified by:
isVisible
in interfaceorg.olap4j.metadata.MetadataElement
-
getOlapElement
Returns the Mondrian metadata element inside this wrapper, or null if there is none.- Returns:
- The Mondrian metadata element, if any
-
getDisplayFolder
-
getHierarchy
-
unwrapImpl
Helper forOlapWrapper.unwrap(Class)
andOlapWrapper.isWrapperFor(Class)
.- Type Parameters:
T
- Type- Parameters:
iface
- Desired interface- Returns:
- This as desired interface, or null
-
unwrap
- Specified by:
unwrap
in interfaceorg.olap4j.OlapWrapper
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceorg.olap4j.OlapWrapper
-