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, 6 of 8


Getting the Characteristics of Metadata Objects

Getting the MdmDimension objects for an MdmMeasure

A primary characteristic of an MdmMeasure is that it has related MdmDimension objects. The following code gets a List of MdmDimension objects for an MdmMeasure called sales.

List dimsOfSales = mdmSalesAmount.getDimensions();

The getMeasureInfo method in the sample code provided later in this chapter shows one way to iterate through the MdmDimension objects belonging to a given MdmMeasure.

Getting the related objects for an MdmDimension

An MdmDimension has related MdmDimensionDefinition and MdmDimensionMemberType objects, which you can obtain by calling its getDefinition and getMemberType methods. If it is an MdmHierarchy, it also has regions, which you can obtain by calling the getRegions method on its MdmUnionDimensionDefinition.

The getDimInfo method in the sample code provided later in this chapter shows one way to get the following metadata objects for a given MdmDimension:

Methods are also available for obtaining other MdmDimension characteristics. See the Oracle9i OLAP Services OLAP API Reference for descriptions of all the methods on the MDM classes.


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