Oracle9i OLAP Services Developer's Guide to the Oracle OLAP API
Release 1 (9.0.1)

Part Number A88756-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

Discovering the Available Metadata, 3 of 8


Creating an MdmMetadataProvider

Function of an MdmMetadataProvider

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.

Creating some preliminary objects

Before you can create an MdmMetadataProvider, you must do the following:

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.

Creating the MdmMetadataProvider

The following code creates an MdmMetadataProvider using the preliminary objects described earlier.

MdmMetadataProvider mp = new MdmMetadataProivder (db, dp);

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table of Contents
Contents
Go To Index
Index

Master Index

Feedback