class MondrianOlap4jSchema extends MondrianOlap4jMetadataElement implements Schema, org.olap4j.impl.Named
Schema
for the Mondrian OLAP engine.| Modifier and Type | Field and Description |
|---|---|
(package private) MondrianOlap4jCatalog |
olap4jCatalog |
(package private) Schema |
schema |
(package private) String |
schemaName |
| Constructor and Description |
|---|
MondrianOlap4jSchema(MondrianOlap4jCatalog olap4jCatalog,
String schemaName,
Schema schema)
Creates a MondrianOlap4jSchema.
|
| Modifier and Type | Method and Description |
|---|---|
Catalog |
getCatalog() |
NamedList<Cube> |
getCubes() |
(package private) Locale |
getLocale()
Shorthand for catalog.database.connection.getLocale().
|
String |
getName() |
protected OlapElement |
getOlapElement()
Returns the Mondrian metadata element inside this wrapper, or null if
there is none.
|
NamedList<Dimension> |
getSharedDimensions() |
Collection<Locale> |
getSupportedLocales() |
isWrapperFor, unwrap, unwrapImplfinal MondrianOlap4jCatalog olap4jCatalog
final String schemaName
MondrianOlap4jSchema(MondrianOlap4jCatalog olap4jCatalog, String schemaName, Schema schema)
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.
olap4jCatalog - Catalog containing schemaschemaName - Name of schemaschema - Mondrian schemapublic Catalog getCatalog()
getCatalog in interface Schemapublic NamedList<Cube> getCubes() throws OlapException
getCubes in interface SchemaOlapExceptionpublic NamedList<Dimension> getSharedDimensions() throws OlapException
getSharedDimensions in interface SchemaOlapExceptionpublic Collection<Locale> getSupportedLocales() throws OlapException
getSupportedLocales in interface SchemaOlapExceptionpublic String getName()
getName in interface org.olap4j.impl.NamedgetName in interface Schemafinal Locale getLocale()
protected OlapElement getOlapElement()
MondrianOlap4jMetadataElementgetOlapElement in class MondrianOlap4jMetadataElement