Oracle9i OLAP Services Developer's Guide to the Oracle OLAP API Release 1 (9.0.1) Part Number A88756-01 |
|
Discovering the Available Metadata, 6 of 8
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
.
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
:
MdmDimensionMemberType
MdmAttribute
objects
MdmDimensionDefinition
MdmHierarchy
, the code obtains its component MdmHierarchy
objects. If it is a level MdmHierarchy
, the code objains its component MdmLevel
objects
MdmHierarchy
, if it is union MdmHierarchy
.
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.
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|