Package mondrian.olap4j
Class MondrianOlap4jSchema
- java.lang.Object
-
- mondrian.olap4j.MondrianOlap4jMetadataElement
-
- mondrian.olap4j.MondrianOlap4jSchema
-
- All Implemented Interfaces:
org.olap4j.impl.Named
,Schema
,OlapWrapper
class MondrianOlap4jSchema extends MondrianOlap4jMetadataElement implements Schema, org.olap4j.impl.Named
Implementation ofSchema
for the Mondrian OLAP engine.- Since:
- May 24, 2007
- Author:
- jhyde
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MondrianOlap4jCatalog
olap4jCatalog
(package private) Schema
schema
(package private) java.lang.String
schemaName
-
Constructor Summary
Constructors Constructor Description MondrianOlap4jSchema(MondrianOlap4jCatalog olap4jCatalog, java.lang.String schemaName, Schema schema)
Creates a MondrianOlap4jSchema.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Catalog
getCatalog()
NamedList<Cube>
getCubes()
(package private) java.util.Locale
getLocale()
Shorthand for catalog.database.connection.getLocale().java.lang.String
getName()
protected OlapElement
getOlapElement()
Returns the Mondrian metadata element inside this wrapper, or null if there is none.NamedList<Dimension>
getSharedDimensions()
java.util.Collection<java.util.Locale>
getSupportedLocales()
-
Methods inherited from class mondrian.olap4j.MondrianOlap4jMetadataElement
isWrapperFor, unwrap, unwrapImpl
-
-
-
-
Field Detail
-
olap4jCatalog
final MondrianOlap4jCatalog olap4jCatalog
-
schemaName
final java.lang.String schemaName
-
schema
final Schema schema
-
-
Constructor Detail
-
MondrianOlap4jSchema
MondrianOlap4jSchema(MondrianOlap4jCatalog olap4jCatalog, java.lang.String schemaName, Schema schema)
Creates a MondrianOlap4jSchema.The name of the schema is not necessarily the same as schema.getName(). If schema was loaded in a datasources.xml file, the name it was given there (in the <Catalog> element) trumps the name in the catalog.xml file.
- Parameters:
olap4jCatalog
- Catalog containing schemaschemaName
- Name of schemaschema
- Mondrian schema
-
-
Method Detail
-
getCatalog
public Catalog getCatalog()
- Specified by:
getCatalog
in interfaceSchema
-
getCubes
public NamedList<Cube> getCubes() throws OlapException
- Specified by:
getCubes
in interfaceSchema
- Throws:
OlapException
-
getSharedDimensions
public NamedList<Dimension> getSharedDimensions() throws OlapException
- Specified by:
getSharedDimensions
in interfaceSchema
- Throws:
OlapException
-
getSupportedLocales
public java.util.Collection<java.util.Locale> getSupportedLocales() throws OlapException
- Specified by:
getSupportedLocales
in interfaceSchema
- Throws:
OlapException
-
getName
public java.lang.String getName()
-
getLocale
final java.util.Locale getLocale()
Shorthand for catalog.database.connection.getLocale(). Not part of the olap4j api; do not make public.- Returns:
- Locale of current connection
-
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
-
-