Package mondrian.olap4j
Class MondrianOlap4jLevel
- java.lang.Object
-
- mondrian.olap4j.MondrianOlap4jMetadataElement
-
- mondrian.olap4j.MondrianOlap4jLevel
-
- All Implemented Interfaces:
org.olap4j.impl.Named
,Level
,MetadataElement
,OlapWrapper
class MondrianOlap4jLevel extends MondrianOlap4jMetadataElement implements Level, org.olap4j.impl.Named
Implementation ofLevel
for the Mondrian OLAP engine.- Since:
- May 25, 2007
- Author:
- jhyde
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.olap4j.metadata.Level
Level.Type
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Level
level
(package private) MondrianOlap4jSchema
olap4jSchema
-
Constructor Summary
Constructors Constructor Description MondrianOlap4jLevel(MondrianOlap4jSchema olap4jSchema, Level level)
Creates a MondrianOlap4jLevel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCaption()
int
getCardinality()
int
getDepth()
String
getDescription()
Dimension
getDimension()
Hierarchy
getHierarchy()
Level.Type
getLevelType()
List<Member>
getMembers()
String
getName()
protected OlapElement
getOlapElement()
Returns the Mondrian metadata element inside this wrapper, or null if there is none.NamedList<Property>
getProperties()
(package private) NamedList<Property>
getProperties(boolean includeStandard)
Returns a list of this level's properties, optionally including standard properties that are available on every level.String
getUniqueName()
int
hashCode()
boolean
isCalculated()
boolean
isVisible()
-
Methods inherited from class mondrian.olap4j.MondrianOlap4jMetadataElement
isWrapperFor, unwrap, unwrapImpl
-
-
-
-
Field Detail
-
olap4jSchema
final MondrianOlap4jSchema olap4jSchema
-
level
final Level level
-
-
Constructor Detail
-
MondrianOlap4jLevel
MondrianOlap4jLevel(MondrianOlap4jSchema olap4jSchema, Level level)
Creates a MondrianOlap4jLevel.- Parameters:
olap4jSchema
- Schemalevel
- Mondrian level
-
-
Method Detail
-
getHierarchy
public Hierarchy getHierarchy()
- Specified by:
getHierarchy
in interfaceLevel
-
getDimension
public Dimension getDimension()
- Specified by:
getDimension
in interfaceLevel
-
isCalculated
public boolean isCalculated()
- Specified by:
isCalculated
in interfaceLevel
-
getLevelType
public Level.Type getLevelType()
- Specified by:
getLevelType
in interfaceLevel
-
getProperties
public NamedList<Property> getProperties()
- Specified by:
getProperties
in interfaceLevel
-
getProperties
NamedList<Property> getProperties(boolean includeStandard)
Returns a list of this level's properties, optionally including standard properties that are available on every level.NOTE: Not part of the olap4j API.
- Parameters:
includeStandard
- Whether to include standard properties- Returns:
- List of properties
-
getMembers
public List<Member> getMembers() throws OlapException
- Specified by:
getMembers
in interfaceLevel
- Throws:
OlapException
-
getName
public String getName()
- Specified by:
getName
in interfaceMetadataElement
- Specified by:
getName
in interfaceorg.olap4j.impl.Named
-
getUniqueName
public String getUniqueName()
- Specified by:
getUniqueName
in interfaceMetadataElement
-
getCaption
public String getCaption()
- Specified by:
getCaption
in interfaceMetadataElement
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceMetadataElement
-
getCardinality
public int getCardinality()
- Specified by:
getCardinality
in interfaceLevel
-
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interfaceMetadataElement
-
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 classMondrianOlap4jMetadataElement
- Returns:
- The Mondrian metadata element, if any
-
-