Skip navigation links

Oracle® OLAP Java API Reference
11g Release 2 (11.2)

E10794-05


oracle.olapi.transaction.metadataStateManager
Interface MetadataState


public interface MetadataState

An interface for an object that stores values for a Template. An implementation of this interface must include a clone method that saves the current state of the values. When instantiating a new Template, an application passes a MetadataState to the Template constructor. The Template has methods for getting and setting the values stored by the MetadataState. When an application gets the Source produced by the Template, by calling the getSource method on a DynamicDefinition, the MetadataState is passed to the generateSource method on the SourceGenerator for the Template.

As an example of a MetadataState, suppose a Template produces a Source that defines the selection of a number of data values from the top or bottom of the elements of a measure for one of the dimensions of the measure. The other dimensions of the measure are limited to single values. The Source represents a request for data such as, "Give me the ten products that have the highest sales amount values of those sold through the direct sales channel to customers from San Francisco in the first quarter of the calendar year 2000 while a televised promotion was occurring."

The MetadataState for that Template has fields for storing the following kinds of values:

In using a Template, an application sets the values in the MetadataState by calling methods on the Template. The application then gets the Source produced by the Template by calling the getSource method on a DynamicDefinition created by the Template.

See Also:
SourceGenerator, Template

Method Summary
 java.lang.Object clone()
          Creates a copy of this MetadataState, thus saving the current state of the values stored by the MetadataState.

 

Method Detail

clone

java.lang.Object clone()
Creates a copy of this MetadataState, thus saving the current state of the values stored by the MetadataState.
Returns:
A copy of this MetadataState.

Skip navigation links

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