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

B12180-01

oracle.AWXML
Class Measure

java.lang.Object
  |
  +--oracle.AWXML.BaseObject
        |
        +--oracle.AWXML.Measure
Direct Known Subclasses:
DerivedMeasure, OlapMeasure

public class Measure
extends BaseObject
implements DerivedMeasureInput

Specifies the basic characteristics of a measure. A measure refers to data, usually numeric and additive, that can be examined and analyzed.

A Measure is be a simple fact, such as unit cost or unit price. A DerivedMeasure is a fact derived from existing data using a mathematical operation or a data transformation. Examples of derived facts include averages, totals, percentages, and differences. An OlapMeasure is a measure that implements a specific OLAP operation, such as Lag or Lead.

Solves can be applied to measures. Solves can implement aggregation, allocation, or forecasting.

A measure is a component of a cube. A cube represents a single measure or a group of measures with the same dimensionality.


Field Summary
protected  java.lang.String m_dataType
           

 

Fields inherited from class oracle.AWXML.BaseObject
AWNULL, DATABASENULL, m_commandResults, m_commandResultText, m_id, m_listResults, m_longName, m_name, m_owner, m_pluralName, m_schema, m_shortName, s_EndElementTag, s_EndEndTag, s_EndStartTag, s_EndTag, s_Indent, s_JAVA_LINEEND, s_NEWLINE, s_objectCounter, s_StartEndTag, s_StartStartTag

 

Constructor Summary
Measure(BaseObject input)
          Constructor that takes the owner of this object.

 

Method Summary
 java.lang.String Create(AWConnection connection)
          Creates the current object in the analytic workspace first as part of an ordered set of objects.
 java.lang.String Delete(AWConnection connection)
          Removes the object from the analytic workspace.
 java.lang.String getAutoSolve()
          Return the AutoSolve setting.
 java.lang.String getDataType()
          Returns the data type of the measure.
 SolveDefinition getSolveDefinition()
          Returns the solve associated with the measure.
 void setAutoSolve(java.lang.String input)
          Specify whether or not solves should be run automatically when the measure is refreshed.
 void setDataType(java.lang.String input)
          Sets the data type of the measure.
 void setSolveDefinition(SolveDefinition input)
          Applies a solve to the measure.
 java.lang.String WriteToXML()
          Returns the object as an XML string.

 

Methods inherited from class oracle.AWXML.BaseObject
Alter, CreateAfter, CreateBefore, CreateFirst, getId, getLongName, getName, getOwner, getParentId, getPluralName, getSchema, getShortName, setLongName, setName, setPluralName, setSchema, setShortName

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

m_dataType

protected java.lang.String m_dataType
Constructor Detail

Measure

public Measure(BaseObject input)
Constructor that takes the owner of this object.
Parameters:
input - BaseObject that is the owner of this object in the object model
Method Detail

setDataType

public void setDataType(java.lang.String input)
Sets the data type of the measure. Supported data types are text, integer, and decimal.
Parameters:
input - String specifying the data type

getDataType

public java.lang.String getDataType()
Returns the data type of the measure.
Returns:
String specifying the data type

setAutoSolve

public void setAutoSolve(java.lang.String input)
Specify whether or not solves should be run automatically when the measure is refreshed.
Parameters:
input - String with values "YES", "NO", or "DEFAULT"

getAutoSolve

public java.lang.String getAutoSolve()
Return the AutoSolve setting.
Returns:
String with values "YES", "NO", or "DEFAULT"

WriteToXML

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

setSolveDefinition

public void setSolveDefinition(SolveDefinition input)
Applies a solve to the measure. The SolveDefinition must be an AggregationDefinition.
Parameters:
input - SolveDefinition that specifies the AggregationDefinition

getSolveDefinition

public SolveDefinition getSolveDefinition()
Returns the solve associated with the measure.
Returns:
SolveDefinition that specifies the AggregationDefinition

Create

public java.lang.String Create(AWConnection connection)
Creates the current object in the analytic workspace first as part of an ordered set of objects.
Overrides:
Create in class BaseObject
Parameters:
connection - A AWConnection that represents the current OLAP session
Returns:
String containing "success" if successful

Delete

public java.lang.String Delete(AWConnection connection)
Removes the object from the analytic workspace.
Overrides:
Delete in class BaseObject
Parameters:
connection - AWConnection
Returns:
String containing "success" if successful

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

B12180-01

Copyright © 2003, Oracle. All Rights Reserved.