| Oracle9i OLAP Services Developer's Guide to the Oracle OLAP API Release 1 (9.0.1) Part Number A88756-01 |
|
Discovering the Available Metadata, 5 of 8
The root MdmSchema contains MdmMeasure, MdmDimension, and MdmSchema objects. In addition, the root MdmSchema has a measure MdmDimension that lists all the MdmMeasure objects.
The following code gets a List of MdmMeasure objects that are in an MdmSchema called schema.
List measures = schema.getMeasures();
The following code gets a List of MdmDimension objects that are in the MdmSchema called schema.
List dims = schema.getDimensions();
The following code gets a List of MdmSchema objects that are in the MdmSchema called schema.
List subSchemas = schema.getSubSchemas();
The following code gets the measure MdmDimension that is in the root MdmSchema. Use this method only on the root MdmSchema. It makes no sense to use it on subschemas, because only the root MdmSchema has a measure MdmDimension.
MdmMeasureDimension mdmMeasureDim = root.getMeasureDimension();
For each MdmSchema that is under the root MdmSchema, you can call the getMeasures, getDimensions, and getSubSchemas methods. The procedures are the same as those for getting the contents of the root MdmSchema.
|
|
![]() Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|