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

B14351-01

oracle.AWXML
Class DerivedMeasure

java.lang.Object
  |
  +--oracle.AWXML.BaseObject
        |
        +--oracle.AWXML.Measure
              |
              +--oracle.AWXML.DerivedMeasure

public class DerivedMeasure
extends Measure

A Measure that results from calculations involving other Measure objects. A DerivedMeasure is a measure resulting from calculations on other measures. The calculations that result in a DerivedMeasure are mathematical operations or data transformations on existing data. Examples of derived facts include averages, totals, percentages, and differences.

See Also:
OlapMeasure

Fields inherited from class oracle.AWXML.BaseObject
DATABASENULL

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

Method Summary
java.lang.String Alter(AWConnection connection)
Alters the DerivedMeasure in the current analytic workspace of the specified database connection.
java.lang.String Create(AWConnection connection)
Creates a DerivedMeasure in the current analytic workspace of the specified database connection.
java.lang.String Delete(AWConnection connection)
Deletes the DerivedMeasure in the current analytic workspace of the specified database connection.
java.lang.String getExpressionText()
Returns the OLAP DML that generates the derived measure.
java.lang.String getId()
Returns the full name of the DerivedMeasure.
Operator getOperator()
Returns the Operator for the DerivedMeasure.
boolean isValid()
Indicates whether the DerivedMeasure is a valid object in the analytic workspace.
void setExpressionText(java.lang.String input)
Specifies the OLAP DML that generates the derived measure.
void setOperator(Operator input)
Sets the Operator for the DerivedMeasure.
java.lang.String WriteToXML()
Returns the DerivedMeasure as an XML string.

Methods inherited from class oracle.AWXML.Measure
getAutoSolve, getDataType, getSolveDefinition, setAutoSolve, setDataType, setSolveDefinition

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

DerivedMeasure

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

Method Detail

getId

public java.lang.String getId()
Returns the full name of the DerivedMeasure.

The full name includes the simple logical name, the name space to which the object belongs (its lineage in the object model hierarchy, and the object type.

lineage.name.type

The full name of a DerivedMeasure called Profit owned by the Sales measure in the Sales_Cube cube would be:

Sales_Cube.Sales.Profit.DerivedMeasure

Overrides:
getId in class BaseObject
Returns:
The full name of the DerivedMeasure.

setExpressionText

public void setExpressionText(java.lang.String input)
Specifies the OLAP DML that generates the derived measure.
Parameters:
input - A String of OLAP DML commands.

getExpressionText

public java.lang.String getExpressionText()
Returns the OLAP DML that generates the derived measure.
Returns:
A String of OLAP DML commands.

setOperator

public void setOperator(Operator input)
Sets the Operator for the DerivedMeasure.
Parameters:
input - The Operator to use.

getOperator

public Operator getOperator()
Returns the Operator for the DerivedMeasure.
Returns:
The Operator used in the DerivedMeasure.

WriteToXML

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

Create

public java.lang.String Create(AWConnection connection)
Creates a DerivedMeasure in the current analytic workspace of the specified database connection.
Overrides:
Create in class Measure
Parameters:
connection - The AWConnection that specifies the database connection.
Returns:
"succsss" if successful.

Delete

public java.lang.String Delete(AWConnection connection)
Deletes the DerivedMeasure in the current analytic workspace of the specified database connection.
Overrides:
Delete in class Measure
Parameters:
connection - The AWConnection that specifies the database connection.
Returns:
"success" if successful.

Alter

public java.lang.String Alter(AWConnection connection)
Alters the DerivedMeasure in the current analytic workspace of the specified database connection.
Overrides:
Alter in class Measure
Parameters:
connection - The AWConnection that specifies the database connection.
Returns:
"success" if successful.

isValid

public boolean isValid()
Indicates whether the DerivedMeasure is a valid object in the analytic workspace.
Returns:
A boolean that is true if the DerivedMeasure is valid or false if it is not valid.

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

B14351-01

Copyright © 2003, 2005 Oracle. All rights reserved.