|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.server.ImplicitRepository
public class ImplicitRepository
Implementation of Repository for
a server that doesn't have a repository: each connection in the server
has its own catalog (specified in the connect string) and therefore the
catalog and schema metadata will be whatever pertains to that connection.
(That's why the methods have a connection parameter.)
| Constructor Summary | |
|---|---|
ImplicitRepository()
|
|
| Method Summary | |
|---|---|
List<String> |
getCatalogNames(RolapConnection connection,
String databaseName)
Returns a list of catalog names found in the repository. |
OlapConnection |
getConnection(MondrianServer server,
String databaseName,
String catalogName,
String roleName,
Properties props)
Returns an OlapConnection object. |
List<String> |
getDatabaseNames(RolapConnection connection)
Returns a list of database names found in this repository. |
List<Map<String,Object>> |
getDatabases(RolapConnection connection)
Returns a list of databases properties collections, one per database configured on this server. |
Map<String,RolapSchema> |
getRolapSchemas(RolapConnection connection,
String databaseName,
String catalogName)
Must return a map of schema names and schema objects who are children of the specified datasource and catalog. |
void |
shutdown()
Shuts down and terminates a repository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImplicitRepository()
| Method Detail |
|---|
public List<String> getCatalogNames(RolapConnection connection,
String databaseName)
Repository
getCatalogNames in interface Repositoryconnection - A connection object from which to obtain
the metadata. May be null or the Repository implementation
itself might ignore it.databaseName - The parent database name of which we
want to list the catalogs.
public List<String> getDatabaseNames(RolapConnection connection)
Repository
getDatabaseNames in interface Repositoryconnection - A connection object from which to obtain
the metadata. May be null or the Repository implementation
itself might ignore it.
public Map<String,RolapSchema> getRolapSchemas(RolapConnection connection,
String databaseName,
String catalogName)
Repository
getRolapSchemas in interface Repositoryconnection - The connection from which to obtain
the metadata. May be null or the Repository implementation
itself might ignore it.databaseName - The database name predicate for the list
of returned schemas.catalogName - The catalog name predicate for the list
of returned schemas.
public OlapConnection getConnection(MondrianServer server,
String databaseName,
String catalogName,
String roleName,
Properties props)
Repository
getConnection in interface Repositoryserver - The MondrianServer to use.databaseName - The database name. Can be null.catalogName - The catalog name. Can be null.roleName - The role name. Can be null.props - Additional connection properties.
public List<Map<String,Object>> getDatabases(RolapConnection connection)
Repository
getDatabases in interface Repositoryconnection - The connection from which to obtain
the metadata. May be null or the Repository implementation
itself might ignore it.
public void shutdown()
Repository
shutdown in interface Repository
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||