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

B14351-02

oracle.AWXML
Class Operator

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

public class Operator
extends BaseObject
implements DerivedMeasureInput

An operator that an analytic workspace uses in calculating the values of a DerivedMeasure that are specified by the DerivedMeasureInput objects associated with the Operator. In creating an Operator, you specify a BaseObject that implements the DerivedMeasureInput interface, such as a Hierarchy, a Level, or another Operator. You can associate the Operator with more than one DerivedMeasureInput object by using the addDerivedMeasureInput method.

An Operator has an operation code that specifies the type of operation to perform. You specify an operation code with the setOpCode method. The operations that an Operator can represent are the following.


Fields inherited from class oracle.AWXML.BaseObject
DATABASENULL

 

Constructor Summary
Operator(BaseObject input)
          Creates a new Operator for a DerivedMeasureInput.

 

Method Summary
 void addDerivedMeasureInput(DerivedMeasureInput input)
          Adds the specified DerivedMeasureInput to the list of DerivedMeasureInput objects associated with the Operator.
 void addOperator(Operator input)
          Adds the specified Operator to the list of Operator objects associated with this Operator.
 Operator createOperator()
          Creates a new Operator and adds it to the list of Operator objects associated with this Operator.
 java.util.Vector getDerivedMeasureInputs()
          Gets the list of DerivedMeasureInput objects associated with the Operator.
 java.lang.String getOpCode()
          Gets the operation code specified by the Operator.
 java.util.Vector getOperators()
          Gets the list of the Operator objects associated with this Operator.
 void removeDerivedMeasureInput(DerivedMeasureInput input)
          Removes the specified DerivedMeasureInput from the list of DerivedMeasureInput objects associated with the Operator.
 void setOpCode(java.lang.String input)
          Specifies an operation code for the Operator.
 java.lang.String WriteToXML()
          Gets an XML representation of the Operator.

 

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 a new Operator for a DerivedMeasureInput.
Parameters:
input - The DerivedMeasureInput for which you want to create a new Operator.

Method Detail

getOpCode

public java.lang.String getOpCode()
Gets the operation code specified by the Operator.
Returns:
A String that contains the operation code.

setOpCode

public void setOpCode(java.lang.String input)
Specifies an operation code for the Operator. The operation code identifies the operation that the analytic workspace uses to calculate the values of a Measure.

The valid operation codes are the following.

   Add
   Subtract
   Multiply
   Divide
   Power
Parameters:
input - A String that contains the operation code.

createOperator

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

addOperator

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

getOperators

public java.util.Vector getOperators()
Gets the list of the Operator objects associated with this Operator.
Returns:
A Vector that contains the list of Operator objects associated with this Operator.

addDerivedMeasureInput

public void addDerivedMeasureInput(DerivedMeasureInput input)
Adds the specified DerivedMeasureInput to the list of DerivedMeasureInput objects associated with the Operator.
Parameters:
input - The DerivedMeasureInput to add to the list.

removeDerivedMeasureInput

public void removeDerivedMeasureInput(DerivedMeasureInput input)
Removes the specified DerivedMeasureInput from the list of DerivedMeasureInput objects associated with the Operator.
Parameters:
input - The DerivedMeasureInput to remove from the list.

getDerivedMeasureInputs

public java.util.Vector getDerivedMeasureInputs()
Gets the list of DerivedMeasureInput objects associated with the Operator.
Returns:
A Vector that contains the DerivedMeasureInput objects associated with the Operator.

WriteToXML

public java.lang.String WriteToXML()
Gets an XML representation of the Operator.
Overrides:
WriteToXML in class BaseObject
Returns:
An XML String that represents the Operator.

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

B14351-02

Copyright © 2003, 2005 Oracle. All rights reserved.