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

B14351-01

oracle.AWXML
Class Operator

java.lang.Object
  |
  +--oracle.AWXML.BaseObject
        |
        +--oracle.AWXML.Operator

public class Operator
extends BaseObject
implements DerivedMeasureInput

The calculation specification in a DerivedMeasure.

A DerivedMeasure owns an Operator, and it can include a text expression of OLAP DML commands.

An Operator consists of one or more input specifications and a calculation method on each input. The input can be any object that implements the DerivedMeasureInput interface. Implementing objects are: hierarchies, levels within hierarchies, levels, measures, and attributes.

Since Operator also implements the DerivedMeasureInput interface, an Operator can include a series of Operator objects.

The Operator class supports the following calculation methods:

   Add
   Subtract 
   Multiply
   Divide
   Power
   
See Also:
DerivedMeasure

Fields inherited from class oracle.AWXML.BaseObject
DATABASENULL

Constructor Summary
Operator(BaseObject input)
Creates the Operator for the specified DerivedMeasure.

Method Summary
void addDerivedMeasureInput(DerivedMeasureInput input)
Adds the specified input to the calculation of the derived measure.
void addOperator(Operator input)
Adds the specified Operator to the list of Operator objects.
Operator createOperator()
Creates a new Operator and adds it to the list of Operator objects.
java.util.Vector getDerivedMeasureInputs()
Returns the list of inputs to the calculation of the derived measure.
java.lang.String getOpCode()
Returns the name of the calculation method in the Operator.
java.util.Vector getOperators()
Returns the list of Operator objects.
void removeDerivedMeasureInput(DerivedMeasureInput input)
Removes the specified input from the calculation of the derived measure.
void setOpCode(java.lang.String input)
Sets the calculation method to the specified name.
java.lang.String WriteToXML()
Returns the Operator as an XML string.

Methods inherited from class oracle.AWXML.BaseObject
Alter, Create, CreateAfter, CreateBefore, CreateFirst, DataRead, Delete, 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

Operator

public Operator(BaseObject input)
Creates the Operator for the specified DerivedMeasure.
Parameters:
input - The DerivedMeasure that owns the Operator.

Method Detail

getOpCode

public java.lang.String getOpCode()
Returns the name of the calculation method in the Operator.
Returns:
The name of the calculation operator.

setOpCode

public void setOpCode(java.lang.String input)
Sets the calculation method to the specified name.
Parameters:
input - The name of the operator.

createOperator

public Operator createOperator()
Creates a new Operator and adds it to the list of Operator objects.
Returns:
The new Operator.

addOperator

public void addOperator(Operator input)
Adds the specified Operator to the list of Operator objects.
Parameters:
input - The Operator to add.

getOperators

public java.util.Vector getOperators()
Returns the list of Operator objects.
Returns:
A Vector of Operator objects.

addDerivedMeasureInput

public void addDerivedMeasureInput(DerivedMeasureInput input)
Adds the specified input to the calculation of the derived measure.
Parameters:
input - An object that implements the DerivedMeasureInput interface.

removeDerivedMeasureInput

public void removeDerivedMeasureInput(DerivedMeasureInput input)
Removes the specified input from the calculation of the derived measure.
Parameters:
input - The object that implements the DerivedMeasureInput interface.

getDerivedMeasureInputs

public java.util.Vector getDerivedMeasureInputs()
Returns the list of inputs to the calculation of the derived measure.
Returns:
A Vector of objects that implement the DerivedMeasureInput interface.

WriteToXML

public java.lang.String WriteToXML()
Returns the Operator as an XML string.
Overrides:
WriteToXML in class BaseObject
Returns:
A String containing the XML that represents the Operator.

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

B14351-01

Copyright © 2003, 2005 Oracle. All rights reserved.