Package mondrian.olap
Interface Schema
- 
- All Superinterfaces:
- Annotated
 - All Known Implementing Classes:
- RolapSchema
 
 public interface Schema extends Annotated ASchemais a collection of cubes, shared dimensions, and roles.- Author:
- jhyde
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description CubecreateCube(String xml)Creates a cube by parsing an XML string.DimensioncreateDimension(Cube cube, String xml)Creates a dimension in the given cube by parsing an XML string.Cube[]getCubes()Returns a list of all cubes in this schema.FunTablegetFunTable()Returns this schema's function table.StringgetId()Returns the uniquely generated id of this schema.StringgetName()Returns the name of this schema.Parameter[]getParameters()Returns this schema's parameters.DategetSchemaLoadDate()Returns when this schema was last loaded.SchemaReadergetSchemaReader()Creates aSchemaReaderwithout any access control.Hierarchy[]getSharedHierarchies()Returns a list of shared dimensions in this schema.List<Exception>getWarnings()Returns a list of warnings and errors that occurred while loading this schema.CubelookupCube(String cube, boolean failIfNotFound)Finds a cube calledcubein this schema; if no cube exists,failIfNotFoundcontrols whether to raise an error or returnnull.RolelookupRole(String role)Finds a role with a given name in the current catalog, or returnsnullif no such role exists.booleanremoveCube(String cubeName)Removes a cube.- 
Methods inherited from interface mondrian.olap.AnnotatedgetAnnotationMap
 
- 
 
- 
- 
- 
Method Detail- 
getNameString getName() Returns the name of this schema.
 - 
getIdString getId() Returns the uniquely generated id of this schema.
 - 
lookupCubeCube lookupCube(String cube, boolean failIfNotFound) Finds a cube calledcubein this schema; if no cube exists,failIfNotFoundcontrols whether to raise an error or returnnull.
 - 
getCubesCube[] getCubes() Returns a list of all cubes in this schema.
 - 
getSharedHierarchiesHierarchy[] getSharedHierarchies() Returns a list of shared dimensions in this schema.
 - 
createDimensionDimension createDimension(Cube cube, String xml) Creates a dimension in the given cube by parsing an XML string. The XML string must be either a <Dimension> or a <DimensionUsage>. Returns the dimension created.
 - 
createCubeCube createCube(String xml) Creates a cube by parsing an XML string. Returns the cube created.
 - 
removeCubeboolean removeCube(String cubeName) Removes a cube.- Returns:
- Whether cube was removed
 
 - 
getSchemaReaderSchemaReader getSchemaReader() Creates aSchemaReaderwithout any access control.
 - 
lookupRoleRole lookupRole(String role) Finds a role with a given name in the current catalog, or returnsnullif no such role exists.
 - 
getFunTableFunTable getFunTable() Returns this schema's function table.
 - 
getParametersParameter[] getParameters() Returns this schema's parameters.
 - 
getSchemaLoadDateDate getSchemaLoadDate() Returns when this schema was last loaded.- Returns:
- Date and time when this schema was last loaded
 
 
- 
 
-