mondrian.olap4j
Class MondrianOlap4jSchema
java.lang.Object
mondrian.olap4j.MondrianOlap4jSchema
- All Implemented Interfaces:
- org.olap4j.impl.Named, Schema
class MondrianOlap4jSchema
- extends Object
- implements Schema, org.olap4j.impl.Named
Implementation of Schema
for the Mondrian OLAP engine.
- Since:
- May 24, 2007
- Version:
- $Id: //open/mondrian/src/main/mondrian/olap4j/MondrianOlap4jSchema.java#7 $
- Author:
- jhyde
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
olap4jCatalog
final MondrianOlap4jCatalog olap4jCatalog
schemaName
final String schemaName
schema
final Schema schema
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
getCatalog
public Catalog getCatalog()
- Specified by:
getCatalog in interface Schema
getCubes
public NamedList<Cube> getCubes()
throws OlapException
- Specified by:
getCubes in interface Schema
- Throws:
OlapException
getSharedDimensions
public NamedList<Dimension> getSharedDimensions()
throws OlapException
- Specified by:
getSharedDimensions in interface Schema
- Throws:
OlapException
getSupportedLocales
public Collection<Locale> getSupportedLocales()
throws OlapException
- Specified by:
getSupportedLocales in interface Schema
- Throws:
OlapException
getName
public String getName()
- Specified by:
getName in interface org.olap4j.impl.Named- Specified by:
getName in interface Schema
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