Package mondrian.olap4j
Class MondrianOlap4jCube
- java.lang.Object
-
- mondrian.olap4j.MondrianOlap4jMetadataElement
-
- mondrian.olap4j.MondrianOlap4jCube
-
- All Implemented Interfaces:
org.olap4j.impl.Named
,Cube
,MetadataElement
,OlapWrapper
class MondrianOlap4jCube extends MondrianOlap4jMetadataElement implements Cube, org.olap4j.impl.Named
Implementation ofCube
for the Mondrian OLAP engine.- Since:
- May 24, 2007
- Author:
- jhyde
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Cube
cube
(package private) MondrianOlap4jSchema
olap4jSchema
-
Constructor Summary
Constructors Constructor Description MondrianOlap4jCube(Cube cube, MondrianOlap4jSchema olap4jSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getCaption()
java.lang.String
getDescription()
NamedList<Dimension>
getDimensions()
NamedList<Hierarchy>
getHierarchies()
java.util.List<Measure>
getMeasures()
java.lang.String
getName()
protected OlapElement
getOlapElement()
Returns the Mondrian metadata element inside this wrapper, or null if there is none.Schema
getSchema()
NamedList<NamedSet>
getSets()
java.util.Collection<java.util.Locale>
getSupportedLocales()
java.lang.String
getUniqueName()
int
hashCode()
boolean
isDrillThroughEnabled()
boolean
isVisible()
MondrianOlap4jMember
lookupMember(java.util.List<IdentifierSegment> nameParts)
java.util.List<Member>
lookupMembers(java.util.Set<Member.TreeOp> treeOps, java.util.List<IdentifierSegment> nameParts)
-
Methods inherited from class mondrian.olap4j.MondrianOlap4jMetadataElement
isWrapperFor, unwrap, unwrapImpl
-
-
-
-
Field Detail
-
cube
final Cube cube
-
olap4jSchema
final MondrianOlap4jSchema olap4jSchema
-
-
Constructor Detail
-
MondrianOlap4jCube
MondrianOlap4jCube(Cube cube, MondrianOlap4jSchema olap4jSchema)
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getDimensions
public NamedList<Dimension> getDimensions()
- Specified by:
getDimensions
in interfaceCube
-
getHierarchies
public NamedList<Hierarchy> getHierarchies()
- Specified by:
getHierarchies
in interfaceCube
-
getMeasures
public java.util.List<Measure> getMeasures()
- Specified by:
getMeasures
in interfaceCube
-
getSupportedLocales
public java.util.Collection<java.util.Locale> getSupportedLocales()
- Specified by:
getSupportedLocales
in interfaceCube
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceMetadataElement
- Specified by:
getName
in interfaceorg.olap4j.impl.Named
-
getUniqueName
public java.lang.String getUniqueName()
- Specified by:
getUniqueName
in interfaceMetadataElement
-
getCaption
public java.lang.String getCaption()
- Specified by:
getCaption
in interfaceMetadataElement
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceMetadataElement
-
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interfaceMetadataElement
-
lookupMember
public MondrianOlap4jMember lookupMember(java.util.List<IdentifierSegment> nameParts) throws OlapException
- Specified by:
lookupMember
in interfaceCube
- Throws:
OlapException
-
lookupMembers
public java.util.List<Member> lookupMembers(java.util.Set<Member.TreeOp> treeOps, java.util.List<IdentifierSegment> nameParts) throws OlapException
- Specified by:
lookupMembers
in interfaceCube
- Throws:
OlapException
-
isDrillThroughEnabled
public boolean isDrillThroughEnabled()
- Specified by:
isDrillThroughEnabled
in interfaceCube
-
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
-
-