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, unwrapImpl
final 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 Schema
public NamedList<Cube> getCubes() throws OlapException
getCubes
in interface Schema
OlapException
public NamedList<Dimension> getSharedDimensions() throws OlapException
getSharedDimensions
in interface Schema
OlapException
public Collection<Locale> getSupportedLocales() throws OlapException
getSupportedLocales
in interface Schema
OlapException
public String getName()
getName
in interface org.olap4j.impl.Named
getName
in interface Schema
final Locale getLocale()
protected OlapElement getOlapElement()
MondrianOlap4jMetadataElement
getOlapElement
in class MondrianOlap4jMetadataElement