| Oracle9i OLAP Services Developer's Guide to the Oracle OLAP API Release 1 (9.0.1) Part Number A88756-01 |
|
Making Queries, 2 of 6
In the OLAP API, queries are represented by two objects:
Source object. Source objects merely describe the data. They are not actual result sets.
Cursor object. Cursor objects are the objects that you use to actually retrieve data from the database.
Only some of the query specifications represented by Source objects represent queries that the OLAP service can retrieve from a database and process. The kinds of Source objects for which you can define a Cursor and the use of Cursor objects are described more completely in Chapter 9.
Source objects are immutable. You cannot change a Source object once it has been created. When you want to present a Source object as changeable to your users (for example, to support what-if analysis), use a Source object defined by a Template object. Template objects themselves have state and can be modified at any time. For more information on using Template objects, see Chapter 11.
As outlined in the following table, the Source class has different subclasses for different data types. Each of the subclasses defines methods that are type-specific versions of various Source methods and methods that perform type-specific operations.
For more information on these subclasses, see the online reference documentation for the OLAP API. For more information on OLAP API data type, see "Getting and Working with Fundamental Source Objects".
The OLAP API has the following kinds of Source objects:
Source objects which are Source objects that correspond to metadata objects. Primary Source objects have a structure that is similar to the metadata objects from which they are created.
Source objects which are new Source objects that are created by manipulating existing Source objects.
Source objects which are Source objects that represent data types and functions that are intrinsic to the OLAP API.
Source objects which are simple nondimensional Source objects that you can use as operands when making selections and calculations.
Since a Source is an object, you must obtain an object reference to it in order to use it. The way you obtain an object reference to a Source varies by the kind of Source.
|
|
![]() Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|