Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-01

Oracle® OLAP Java API Reference.

See:
          Description

Packages
oracle.express Contains classes that support processing in Oracle OLAP.
oracle.express.mdm Except for the exception classes, the interfaces and classes in this package are deprecated; use the classes in the oracle.olapi.metadata.mdm package instead of the classes in this package.
oracle.express.olapi.data.full Contains an implementation of the SpecifiedCursorManager interface, an extension of the DataProvider class, and ExpressSQLCursorManager, a class that returns the SQL SELECT statement specified by its Source objects.
oracle.express.olapi.transaction Contains an implementation of the oracle.olapi.transaction.TransactionProvider interface for Oracle OLAP.
oracle.express.olapi.transaction.resource Provides support for the internationalization of the oracle.express.olapi.transaction package.
oracle.express.resource Provides support for the internationalization of the oracle.express package.
oracle.express.spl Contains classes that support the execution of OLAP DML commands in Oracle OLAP.
oracle.olapi Contains an interface, an exception, and a class that are of general use in the OLAP API.
oracle.olapi.data.cursor Contains interfaces and classes for retrieving and accessing the result set of a query.
oracle.olapi.data.source Contains classes and interfaces that provide, represent, and define the objects that specify queries.
oracle.olapi.metadata Contains interfaces and classes that represent metadata for a data store and that Oracle OLAP uses to make metadata objects available.
oracle.olapi.metadata.mdm Contains classes that represent data supporting the multidimensional model (MDM) for metadata.
oracle.olapi.metadata.mtm Contains classes that map objects in the multidimensional model (MDM) for metadata to the relational tables and views on which those objects are based.
oracle.olapi.metadata.resource Provides support for the internationalization of the oracle.olapi.metadata package.
oracle.olapi.transaction Contains interfaces that are not implemented by OLAP API application developers and exception classes that an application might encounter.
oracle.olapi.transaction.metadataStateManager Contains an interface to implement when you use Template objects and a class that is not used by OLAP API application developers.

 

Oracle® OLAP Java API Reference.

June, 2005

This is the reference documentation for the Oracle OLAP API, the Java application programming interface for Oracle OLAP. For updated versions of this documentation as they become available, see the Oracle Technology Network Web site at

http://www.oracle.com/technology/products/bi/olap/olap.html

Intended Audience

This documentation is intended for Java programmers who are responsible for creating applications that perform online analytical processing. It assumes that you are already familiar with Java, relational database management systems, data warehousing, and online analytical processing (OLAP) concepts.

Before You Begin

Before you can use the Oracle OLAP API, you must add the Oracle OLAP API classes to your Java development environment. You must also have access to an Oracle Database instance that has the OLAP option installed. In addition, that database must include data that has been prepared as a data warehouse and supplied with OLAP Catalog metadata. For information on setting up the Oracle OLAP API client files, see Oracle OLAP Developer's Guide to the OLAP API. For information on installing an Oracle database with the OLAP option, see your Oracle Database installation documentation. For information on creating OLAP Catalog metadata, see Oracle OLAP Application Developer's Guide.

New Features

For a description of the new features of the Oracle OLAP API for this release, see New Features.

Examples of Using the OLAP API

The examples of OLAP API code in this documentation use OLAP Catalog metadata that is mapped to the tables of the Global Schema for Documentation, which is a sample relational schema. You can download SQL scripts that create the Global Schema for Documentation and the OLAP Catalog metadata for it from the Documentation section of the Oracle Technology Network Web site at

http://www.oracle.com/technology/products/bi/olap/olap.html

To download the sample schema, in the Documentation section click Sample Schemas for Documentation, and then click Global Schema for Documentation with OLAP Catalog Metadata.

For programs that include the code from some of the examples in this documentation and the examples in Oracle OLAP Developer's Guide to the OLAP API, see Example Oracle OLAP API Programs.

Unique and Local Values in the OLAP API

The members of an Oracle OLAP dimension are usually organized into one or more hierarchies. Some hierarchies have parent-child relationships based on levels and some have those relationships based on values. In the OLAP API a dimension always has at least one hierarchy dimension object and that hierarchy object has at least one level object. Even a nonhierarchical dimension is represented by a hierarchy dimension object with one level object.

The OLAP API uses a three-part format to specify the hierarchy, the level, and the value of a dimension member, and thereby identify a unique value. The first part of a unique value is the name of the hierarchy object, the second part is the name of the level object, and the third part is the value of the member in the level. The parts of the unique value are separated by a value separation string, which by default is double colons (::). The following is an example of unique value in the YEAR level of the CALENDAR hierarchy of the TIME dimension:

CALENDAR::YEAR::4

The third part of a unique value is the local value. In the preceding example, the local value is 4, which is the identifier for the year 2001 in the Global schema. The OLAP API has classes and methods that you can use to get the local values of dimension members. See the descriptions of the MdmPrimaryDimension and MdmDimensionMemberInfo classes for more information about unique and local values.

An application can specify that Oracle OLAP use unique or local dimension hierarchy values by setting the HierarchyValueType property in a java.util.Properties object and using the Properties object to construct an ExpressDataProvider. The use of Model objects requires unique hierarchy values.

An application can also specify the use of unique or local hierarchy values in the context of a query by setting the HierarchyValueType property and passing the Properties object to a createCursorManager method of an ExpressDataProvider. The selection of dimension members in the query must match the setting of the property. For a complex query, using unique dimension hierarchy values generally provides faster performance when Oracle OLAP fetches the data.

Documentation Accessibility

Our goal is to make Oracle products, services, and supporting documentation accessible, with good usability, to the disabled community. To that end, our documentation includes features that make information available to users of assistive technology. This documentation is available in HTML format, and contains markup to facilitate access by the disabled community. Standards will continue to evolve over time, and Oracle is actively engaged with other market-leading technology vendors to address technical obstacles so that our documentation can be accessible to all of our customers. For additional information, visit the Oracle Accessibility Program Web site at

http://www.oracle.com/accessibility/.

Accessibility of Code Examples in Documentation

Screen readers may not always correctly read the code examples in this document. The conventions for writing code require that closing braces should appear on an otherwise empty line; however, some screen readers may not always read a line of text that consists solely of a bracket or brace.

Accessibility of Links to External Web Sites in Documentation

This documentation may contain links to Web sites of other companies or organizations that Oracle Corporation does not own or control. Oracle Corporation neither evaluates nor makes any representations regarding the accessibility of these Web sites.

Related Documentation

The following documentation is helpful when using Oracle OLAP.


Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-01

Copyright © 2002, 2005, Oracle. All rights reserved.