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 ofDatabasefor 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()StringgetDataSourceInfo()StringgetDescription()StringgetName()OlapConnectiongetOlapConnection()protected OlapElementgetOlapElement()Returns the Mondrian metadata element inside this wrapper, or null if there is none.StringgetProviderName()List<Database.ProviderType>getProviderTypes()StringgetURL()-
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:
getAuthenticationModesin interfaceDatabase- Throws:
OlapException
-
getCatalogs
public NamedList<Catalog> getCatalogs() throws OlapException
- Specified by:
getCatalogsin interfaceDatabase- Throws:
OlapException
-
getDescription
public String getDescription() throws OlapException
- Specified by:
getDescriptionin interfaceDatabase- Throws:
OlapException
-
getName
public String getName()
-
getOlapConnection
public OlapConnection getOlapConnection()
- Specified by:
getOlapConnectionin interfaceDatabase
-
getProviderName
public String getProviderName() throws OlapException
- Specified by:
getProviderNamein interfaceDatabase- Throws:
OlapException
-
getProviderTypes
public List<Database.ProviderType> getProviderTypes() throws OlapException
- Specified by:
getProviderTypesin interfaceDatabase- Throws:
OlapException
-
getURL
public String getURL() throws OlapException
- Specified by:
getURLin interfaceDatabase- Throws:
OlapException
-
getDataSourceInfo
public String getDataSourceInfo() throws OlapException
- Specified by:
getDataSourceInfoin interfaceDatabase- Throws:
OlapException
-
getOlapElement
protected OlapElement getOlapElement()
Description copied from class:MondrianOlap4jMetadataElementReturns the Mondrian metadata element inside this wrapper, or null if there is none.- Specified by:
getOlapElementin classMondrianOlap4jMetadataElement- Returns:
- The Mondrian metadata element, if any
-
-