Oracle9i OLAP Services Developer's Guide to the Oracle OLAP API Release 1 (9.0.1) Part Number A88756-01 |
|
Discovering the Available Metadata, 3 of 8
An MdmMetadataProvider
gives access to the metadata in a data store. It maps the metadata objects, such as measures, dimensions, and measure folders, that a database administrator created in the OLAP management feature of Oracle Enterprise Manager to the corresponding MDM objects, such as MdmMeasure
, MdmDimension
, and MdmSchema
.
Before you can create an MdmMetadataProvider
, you must do the following:
TransactionProvider
, which is required for constructing a DataProvider
.
DataProvider
, which is required for constructing an MdmMetadataProvider
.
Database
, which is required for constructing an MdmMetadataProvider
.
TransactionProvider
is an interface, and DataProvider
is an abstract class. Therefore, in your code, you use instances of the concrete classes called ExpressTransactionProvider
and ExpressDataProvider
.
The following code creates the preliminary objects on a Connection called conn. Chapter 3 explains how to create a Connection.
ExpressTransactionProvider tp = new ExpressTransactionProvider(); ExpressDataProvider dp = new ExpressDataProvider(conn, tp); Database db = conn.getDefaultDatabase();
The TransactionProvider
and DataProvider
objects that are created in these steps are the ones that you use throughout your work with the data store. For example, when you create certain Source
objects, you use methods on this DataProvider
object.
The following code creates an MdmMetadataProvider
using the preliminary objects described earlier.
MdmMetadataProvider mp = new MdmMetadataProivder (db, dp);
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|