Package mondrian.olap
Class DriverManager
java.lang.Object
mondrian.olap.DriverManager
The basic service for managing a set of OLAP drivers.
- Since:
- 15 January, 2002
- Author:
- jhyde
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Connection
getConnection
(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, DataSource dataSource) Creates a connection to a Mondrian OLAP Engine using a list of connection properties, a catalog locator, and a JDBC data source.
-
Constructor Details
-
DriverManager
public DriverManager()
-
-
Method Details
-
getConnection
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;...'. SeeUtil.parseConnectString(java.lang.String)
for more details of the format. SeeRolapConnectionProperties
for a list of allowed properties.locator
- Use to locate real catalog url by a customized configuration value. Ifnull
, leave the catalog url unchanged.- Returns:
- A
Connection
, never null
-
getConnection
Creates a connection to a Mondrian OLAP Engine.- Parameters:
properties
- Collection of properties which define the location of the connection. SeeRolapConnection
for a list of allowed properties.locator
- Use to locate real catalog url by a customized configuration value. Ifnull
, leave the catalog url unchanged.- Returns:
- A
Connection
, never null
-
getConnection
public static Connection getConnection(Util.PropertyList properties, CatalogLocator locator, 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. SeeRolapConnection
for a list of allowed properties.locator
- Use to locate real catalog url by a customized configuration value. Ifnull
, leave the catalog url unchanged.dataSource
- - if not null an external DataSource to be used by Mondrian- Returns:
- A
Connection
, never null
-