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 ofSchemafor the Mondrian OLAP engine.- Since:
- May 24, 2007
- Author:
- jhyde
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MondrianOlap4jCatalogolap4jCatalog(package private) Schemaschema(package private) StringschemaName
-
Constructor Summary
Constructors Constructor Description MondrianOlap4jSchema(MondrianOlap4jCatalog olap4jCatalog, String schemaName, Schema schema)Creates a MondrianOlap4jSchema.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CataloggetCatalog()NamedList<Cube>getCubes()(package private) LocalegetLocale()Shorthand for catalog.database.connection.getLocale().StringgetName()protected OlapElementgetOlapElement()Returns the Mondrian metadata element inside this wrapper, or null if there is none.NamedList<Dimension>getSharedDimensions()Collection<Locale>getSupportedLocales()-
Methods inherited from class mondrian.olap4j.MondrianOlap4jMetadataElement
isWrapperFor, unwrap, unwrapImpl
-
-
-
-
Field Detail
-
olap4jCatalog
final MondrianOlap4jCatalog olap4jCatalog
-
schemaName
final String schemaName
-
schema
final Schema schema
-
-
Constructor Detail
-
MondrianOlap4jSchema
MondrianOlap4jSchema(MondrianOlap4jCatalog olap4jCatalog, 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:
getCatalogin interfaceSchema
-
getCubes
public NamedList<Cube> getCubes() throws OlapException
- Specified by:
getCubesin interfaceSchema- Throws:
OlapException
-
getSharedDimensions
public NamedList<Dimension> getSharedDimensions() throws OlapException
- Specified by:
getSharedDimensionsin interfaceSchema- Throws:
OlapException
-
getSupportedLocales
public Collection<Locale> getSupportedLocales() throws OlapException
- Specified by:
getSupportedLocalesin interfaceSchema- Throws:
OlapException
-
getName
public String getName()
-
getLocale
final 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:MondrianOlap4jMetadataElementReturns the Mondrian metadata element inside this wrapper, or null if there is none.- Specified by:
getOlapElementin classMondrianOlap4jMetadataElement- Returns:
- The Mondrian metadata element, if any
-
-