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, String name, String description, String providerName, String url, String dataSourceInfo, List<Database.ProviderType> providerType, List<Database.AuthenticationMode> authenticationMode)
Creates a MondrianOlap4jDatabase.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Database.AuthenticationMode>
getAuthenticationModes()
NamedList<Catalog>
getCatalogs()
String
getDataSourceInfo()
String
getDescription()
String
getName()
OlapConnection
getOlapConnection()
protected OlapElement
getOlapElement()
Returns the Mondrian metadata element inside this wrapper, or null if there is none.String
getProviderName()
List<Database.ProviderType>
getProviderTypes()
String
getURL()
-
Methods inherited from class mondrian.olap4j.MondrianOlap4jMetadataElement
isWrapperFor, unwrap, unwrapImpl
-
-
-
-
Constructor Detail
-
MondrianOlap4jDatabase
MondrianOlap4jDatabase(MondrianOlap4jConnection olap4jConnection, NamedList<MondrianOlap4jCatalog> catalogs, String name, String description, String providerName, String url, String dataSourceInfo, List<Database.ProviderType> providerType, 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 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 String getDescription() throws OlapException
- Specified by:
getDescription
in interfaceDatabase
- Throws:
OlapException
-
getName
public String getName()
-
getOlapConnection
public OlapConnection getOlapConnection()
- Specified by:
getOlapConnection
in interfaceDatabase
-
getProviderName
public String getProviderName() throws OlapException
- Specified by:
getProviderName
in interfaceDatabase
- Throws:
OlapException
-
getProviderTypes
public List<Database.ProviderType> getProviderTypes() throws OlapException
- Specified by:
getProviderTypes
in interfaceDatabase
- Throws:
OlapException
-
getURL
public String getURL() throws OlapException
- Specified by:
getURL
in interfaceDatabase
- Throws:
OlapException
-
getDataSourceInfo
public 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
-
-