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


Getting the Contents of the Root MdmSchema

MdmSchema contents

The root MdmSchema contains MdmMeasure, MdmDimension, and MdmSchema objects. In addition, the root MdmSchema has a measure MdmDimension that lists all the MdmMeasure objects.

Calling the getMeasures method

The following code gets a List of MdmMeasure objects that are in an MdmSchema called schema.

List measures = schema.getMeasures();

Calling the getDimensions method

The following code gets a List of MdmDimension objects that are in the MdmSchema called schema.

List dims = schema.getDimensions();

Calling the getSubSchemas method

The following code gets a List of MdmSchema objects that are in the MdmSchema called schema.

List subSchemas = schema.getSubSchemas();

Calling the getMeasureDimension method

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();

Getting the contents of subschemas

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.


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