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

Making Queries, 6 of 6


Creating Constant, List and Range Source Objects

How to create constant, list, and range Source objects

You create simple nondimensional Source objects that you can use as operands by using the createConstantSource, createListSource, and createRangeSource methods on the DataProvider class.

Example: Creating a constant Source

Assume that you have an object named myDataProvider that represents the DataProvider used by your application and that, for computational purposes, you want a Source with a single element that has a value of 4. To create this Source you issue the following code

NumberSource myConstantFour = myDataProvider.createConstantSource(4);

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