Package mondrian.olap4j
Class MondrianOlap4jDatabase
- java.lang.Object
-
- mondrian.olap4j.MondrianOlap4jMetadataElement
-
- mondrian.olap4j.MondrianOlap4jDatabase
-
- All Implemented Interfaces:
org.olap4j.impl.Named
,Database
,OlapWrapper
class MondrianOlap4jDatabase extends MondrianOlap4jMetadataElement implements Database, org.olap4j.impl.Named
Implementation ofDatabase
for the Mondrian OLAP engine.- Author:
- LBoudreau
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.olap4j.metadata.Database
Database.AuthenticationMode, Database.ProviderType
-
-
Constructor Summary
Constructors Constructor Description MondrianOlap4jDatabase(MondrianOlap4jConnection olap4jConnection, NamedList<MondrianOlap4jCatalog> catalogs, java.lang.String name, java.lang.String description, java.lang.String providerName, java.lang.String url, java.lang.String dataSourceInfo, java.util.List<Database.ProviderType> providerType, java.util.List<Database.AuthenticationMode> authenticationMode)
Creates a MondrianOlap4jDatabase.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Database.AuthenticationMode>
getAuthenticationModes()
NamedList<Catalog>
getCatalogs()
java.lang.String
getDataSourceInfo()
java.lang.String
getDescription()
java.lang.String
getName()
OlapConnection
getOlapConnection()
protected OlapElement
getOlapElement()
Returns the Mondrian metadata element inside this wrapper, or null if there is none.java.lang.String
getProviderName()
java.util.List<Database.ProviderType>
getProviderTypes()
java.lang.String
getURL()
-
Methods inherited from class mondrian.olap4j.MondrianOlap4jMetadataElement
isWrapperFor, unwrap, unwrapImpl
-
-
-
-
Constructor Detail
-
MondrianOlap4jDatabase
MondrianOlap4jDatabase(MondrianOlap4jConnection olap4jConnection, NamedList<MondrianOlap4jCatalog> catalogs, java.lang.String name, java.lang.String description, java.lang.String providerName, java.lang.String url, java.lang.String dataSourceInfo, java.util.List<Database.ProviderType> providerType, java.util.List<Database.AuthenticationMode> authenticationMode)
Creates a MondrianOlap4jDatabase.- Parameters:
olap4jConnection
- Connectioncatalogs
- List of catalogsname
- Name of databasedescription
- Description of databaseproviderName
- Provider nameurl
- URL of providerdataSourceInfo
- Data source infoproviderType
- List of provider types supported by this databaseauthenticationMode
- Authentication modes
-
-
Method Detail
-
getAuthenticationModes
public java.util.List<Database.AuthenticationMode> getAuthenticationModes() throws OlapException
- Specified by:
getAuthenticationModes
in interfaceDatabase
- Throws:
OlapException
-
getCatalogs
public NamedList<Catalog> getCatalogs() throws OlapException
- Specified by:
getCatalogs
in interfaceDatabase
- Throws:
OlapException
-
getDescription
public java.lang.String getDescription() throws OlapException
- Specified by:
getDescription
in interfaceDatabase
- Throws:
OlapException
-
getName
public java.lang.String getName()
-
getOlapConnection
public OlapConnection getOlapConnection()
- Specified by:
getOlapConnection
in interfaceDatabase
-
getProviderName
public java.lang.String getProviderName() throws OlapException
- Specified by:
getProviderName
in interfaceDatabase
- Throws:
OlapException
-
getProviderTypes
public java.util.List<Database.ProviderType> getProviderTypes() throws OlapException
- Specified by:
getProviderTypes
in interfaceDatabase
- Throws:
OlapException
-
getURL
public java.lang.String getURL() throws OlapException
- Specified by:
getURL
in interfaceDatabase
- Throws:
OlapException
-
getDataSourceInfo
public java.lang.String getDataSourceInfo() throws OlapException
- Specified by:
getDataSourceInfo
in interfaceDatabase
- Throws:
OlapException
-
getOlapElement
protected OlapElement getOlapElement()
Description copied from class:MondrianOlap4jMetadataElement
Returns the Mondrian metadata element inside this wrapper, or null if there is none.- Specified by:
getOlapElement
in classMondrianOlap4jMetadataElement
- Returns:
- The Mondrian metadata element, if any
-
-