public interface Catalog
Catalogs are the second element of the hierarchy of metadata objects.
A Catalog contains one or more Schema
s and has a parent
Database
.
Some OLAP servers may only have one Catalog. Mondrian is one such OLAP server; its sole catalog is called "LOCALDB".
To obtain the collection of catalogs in the current server, call the
OlapConnection.getOlapCatalogs()
method.
The hierarchy of metadata objects, rooted at the connection from which they are accessed, is as follows:
Modifier and Type | Method and Description |
---|---|
Database |
getDatabase()
Returns the parent database of this catalog.
|
OlapDatabaseMetaData |
getMetaData()
Retrieves the metadata describing the OLAP server that this Catalog
belongs to.
|
String |
getName()
Returns the name of this Catalog.
|
NamedList<Schema> |
getSchemas()
Returns a list of
Schema objects which belong to
this Catalog . |
NamedList<Schema> getSchemas() throws OlapException
Schema
objects which belong to
this Catalog
.
The caller should assume that the list is immutable; if the caller modifies the list, behavior is undefined.
Catalog
OlapException
- if error occursDatabaseMetaData.getSchemas()
String getName()
OlapDatabaseMetaData getMetaData()
Database getDatabase()