Oracle OLAP Analytic Workspace Java API Reference
10g Release 1 (10.1)

B12180-01

oracle.AWXML
Class Level

oracle.AWXML.Level

public class Level
implements DerivedMeasureInput

A model object that defines the basic characteristics of a level. A Level is a MemberSelection whose members share the same level within a hierarchy. For example, the Month level within a time dimension could consist of members January, February, and so on.

Levels implement the DerivedMeasureInput interface, and therefore can be used as input to the calculations that define a derived measure.

Methods for setting the logical name, and other text identifiers are inherited from BaseObject. Methods for applying attributes and defining a mapping to the data source are inherited from AWObject.


Constructor Summary
Level(BaseObject input)
          Creates a new Level for the specified Dimension.

 

Method Summary
 java.lang.String Create(AWConnection connection)
          Creates the Level within the current analytic workspace of the specified connection.
 java.lang.String Delete(AWConnection connection)
          Deletes the Level in the current analytic workspace of the specified connection.
 AttributeProjection findAttributeProjection(Attribute input)
          Returns the level attribute (AttributeProjection) that corresponds to the specified dimension attribute (Attribute).
 java.lang.String WriteToXML()
          Returns the Level object as an XML string.

 

Constructor Detail

Level

public Level(BaseObject input)
Creates a new Level for the specified Dimension.

Note: The object factories are a recommended way of creating objects. For example, use the createLevel method on a Dimension object.

Parameters:
input - A BaseObject representing the parent dimension
Method Detail

WriteToXML

public java.lang.String WriteToXML()
Returns the Level object as an XML string.
Returns:
A String containing the XML that represents the Level.

Create

public java.lang.String Create(AWConnection connection)
Creates the Level within the current analytic workspace of the specified connection.
Overrides:
Create in class BaseObject
Parameters:
connection - An AWConnection that defines the connection.
Returns:
String

Delete

public java.lang.String Delete(AWConnection connection)
Deletes the Level in the current analytic workspace of the specified connection.
Overrides:
Delete in class BaseObject
Parameters:
connection - An AWConnection that defines the connection.
Returns:
String

findAttributeProjection

public AttributeProjection findAttributeProjection(Attribute input)
Returns the level attribute (AttributeProjection) that corresponds to the specified dimension attribute (Attribute). For example, the TIME_SPAN dimension attribute for the Month level might be MONTH_TIME_SPAN.
Parameters:
The - Attribute that defines the dimension attribute
Returns:
The AttributeProjection that defines the dimension attribute for this level

Oracle OLAP Analytic Workspace Java API Reference
10g Release 1 (10.1)

B12180-01

Copyright © 2003, Oracle. All Rights Reserved.