Oracle® OLAP Analytic Workspace Java API Reference
10g Release 2 (10.2.0.4)

B14351-04

oracle.AWXML
Class Level

java.lang.Object
  extended byoracle.AWXML.BaseObject
      extended byoracle.AWXML.AWObject
          extended byoracle.AWXML.MemberSelection
              extended byoracle.AWXML.Level
All Implemented Interfaces:
DerivedMeasureInput

public class Level
extends MemberSelection
implements DerivedMeasureInput

A MemberSelection whose members share the same level within a hierarchy of a dimension. For example, the Month level within a Time dimension could consist of members January, February, and so on.

A Level implements the DerivedMeasureInput interface, and therefore can be used as input to the calculations that define a derived measure.


Field Summary
 
Fields inherited from class oracle.AWXML.BaseObject
DATABASENULL
 
Constructor Summary
Level(BaseObject input)
          Creates a Level for the specified Dimension.
 
Method Summary
 java.lang.String Alter(AWConnection connection)
          Alter the Level within the current analytic workspace of the specified connection.
 java.lang.String Create(AWConnection connection)
          Creates the Level within the current analytic workspace of the specified database connection.
 java.lang.String Delete(AWConnection connection)
          Deletes the Level in the current analytic workspace of the specified database 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 as an XML string.
 
Methods inherited from class oracle.AWXML.AWObject
addAttribute, addAttributeProjection, addSourceCubeMapGroup, addSourceDimensionMapGroup, addSourceMappingGroup, createAttribute, createAttributeProjection, createSourceCubeMapGroup, createSourceDimensionMapGroup, getAttributes, getSourceMapGroup, removeAttribute, removeAttributeProjection, removeAttributeProjection, removeSourceMappingGroup
 
Methods inherited from class oracle.AWXML.BaseObject
CreateAfter, CreateBefore, CreateFirst, DataRead, getColumnName, getId, getLongName, getLongName, getName, getOwner, getPluralName, getPluralName, getSchema, getShortName, getShortName, setColumnName, setLongName, setLongName, setName, setPluralName, setPluralName, setSchema, setShortName, setShortName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Level

public Level(BaseObject input)
Creates a 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 - The Dimension that owns the Level.
Method Detail

WriteToXML

public java.lang.String WriteToXML()
Returns the Level as an XML string.

Overrides:
WriteToXML in class MemberSelection
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 database connection.

Overrides:
Create in class BaseObject
Parameters:
connection - The AWConnection that specifies the database connection.
Returns:
A String that contains success if the method successfully creates a Level.

Alter

public java.lang.String Alter(AWConnection connection)
Alter the Level within the current analytic workspace of the specified connection.

Overrides:
Alter 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 database connection.

Overrides:
Delete in class BaseObject
Parameters:
connection - The AWConnection that specifies the database connection.
Returns:
A String that contains success if the method successfully creates a Level.

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:
input - 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 2 (10.2.0.4)

B14351-04

Copyright © 2003, 2007 Oracle. All rights reserved.