mondrian.olap4j
Class MondrianOlap4jDatabase

java.lang.Object
  extended by mondrian.olap4j.MondrianOlap4jMetadataElement
      extended by mondrian.olap4j.MondrianOlap4jDatabase
All Implemented Interfaces:
org.olap4j.impl.Named, Database, OlapWrapper

 class MondrianOlap4jDatabase
extends MondrianOlap4jMetadataElement
implements Database, org.olap4j.impl.Named

Implementation of Database 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
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
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 - Connection
catalogs - List of catalogs
name - Name of database
description - Description of database
providerName - Provider name
url - URL of provider
dataSourceInfo - Data source info
providerType - List of provider types supported by this database
authenticationMode - Authentication modes
Method Detail

getAuthenticationModes

public List<Database.AuthenticationMode> getAuthenticationModes()
                                                         throws OlapException
Specified by:
getAuthenticationModes in interface Database
Throws:
OlapException

getCatalogs

public NamedList<Catalog> getCatalogs()
                               throws OlapException
Specified by:
getCatalogs in interface Database
Throws:
OlapException

getDescription

public String getDescription()
                      throws OlapException
Specified by:
getDescription in interface Database
Throws:
OlapException

getName

public String getName()
Specified by:
getName in interface org.olap4j.impl.Named
Specified by:
getName in interface Database

getOlapConnection

public OlapConnection getOlapConnection()
Specified by:
getOlapConnection in interface Database

getProviderName

public String getProviderName()
                       throws OlapException
Specified by:
getProviderName in interface Database
Throws:
OlapException

getProviderTypes

public List<Database.ProviderType> getProviderTypes()
                                             throws OlapException
Specified by:
getProviderTypes in interface Database
Throws:
OlapException

getURL

public String getURL()
              throws OlapException
Specified by:
getURL in interface Database
Throws:
OlapException

getDataSourceInfo

public String getDataSourceInfo()
                         throws OlapException
Specified by:
getDataSourceInfo in interface Database
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 class MondrianOlap4jMetadataElement
Returns:
The Mondrian metadata element, if any

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads