mondrian.olap
Class DriverManager

java.lang.Object
  extended by mondrian.olap.DriverManager

public class DriverManager
extends java.lang.Object

The basic service for managing a set of OLAP drivers.

Since:
15 January, 2002
Version:
$Id: //open/mondrian/src/main/mondrian/olap/DriverManager.java#28 $
Author:
jhyde

Constructor Summary
DriverManager()
           
 
Method Summary
static Connection getConnection(java.lang.String connectString, CatalogLocator locator)
          Creates a connection to a Mondrian OLAP Engine using a connect string and a catalog locator.
static Connection getConnection(Util.PropertyList properties, CatalogLocator locator)
          Creates a connection to a Mondrian OLAP Engine.
static Connection getConnection(Util.PropertyList properties, CatalogLocator locator, javax.sql.DataSource dataSource)
          Creates a connection to a Mondrian OLAP Engine using a list of connection properties, a catalog locator, and a JDBC data source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverManager

public DriverManager()
Method Detail

getConnection

public static Connection getConnection(java.lang.String connectString,
                                       CatalogLocator locator)
Creates a connection to a Mondrian OLAP Engine using a connect string and a catalog locator.

Parameters:
connectString - Connect string of the form 'property=value;property=value;...'. See Util.parseConnectString(java.lang.String) for more details of the format. See RolapConnectionProperties for a list of allowed properties.
locator - Use to locate real catalog url by a customized configuration value. If null, leave the catalog url unchanged.
Returns:
A Connection
Post-condition:
return != null

getConnection

public static Connection getConnection(Util.PropertyList properties,
                                       CatalogLocator locator)
Creates a connection to a Mondrian OLAP Engine.

Parameters:
properties - Collection of properties which define the location of the connection. See RolapConnection for a list of allowed properties.
locator - Use to locate real catalog url by a customized configuration value. If null, leave the catalog url unchanged.
Returns:
A Connection
Post-condition:
return != null

getConnection

public static Connection getConnection(Util.PropertyList properties,
                                       CatalogLocator locator,
                                       javax.sql.DataSource dataSource)
Creates a connection to a Mondrian OLAP Engine using a list of connection properties, a catalog locator, and a JDBC data source.

Parameters:
properties - Collection of properties which define the location of the connection. See RolapConnection for a list of allowed properties.
locator - Use to locate real catalog url by a customized configuration value. If null, leave the catalog url unchanged.
dataSource - - if not null an external DataSource to be used by Mondrian
Returns:
A Connection
Post-condition:
return != null

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