|
Oracle® OLAP Analytic Workspace Java API Reference 10g Release 2 (10.2) B14351-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--oracle.AWXML.BaseObject
|
+--oracle.AWXML.Measure
A BaseObject that represents a measure. A measure identifies data within a cube. A measure value is a simple fact, typically numeric and additive, such as unit cost or unit price. A Measure is owned by a Cube. For a diagram of the class hierarchy of Measure, see Measure Class Hierarchy.
The subclasses of Measure are DerivedMeasure and OlapMeasure. 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 calculating lag or lead values.
A Measure can have its own default AggregationDefinition that specifies the aggregation rules for the Measure. You can use the setAutoSolve method to specify whether the analytic workspace automatically calculates the aggregate values of the Measure when it builds the Cube to which the Measure belongs. The build process is initiated by the Execute method of the AWAction.BuildDatabase class.
Cube| Fields inherited from class oracle.AWXML.BaseObject |
DATABASENULL |
| Constructor Summary | |
Measure(BaseObject input)Creates a Measure for the specified Cube. |
|
| Method Summary | |
java.lang.String |
Alter(AWConnection connection)Alters the Measure in the current analytic workspace. |
java.lang.String |
Create(AWConnection connection)Creates the Measure in the current analytic workspace of the specified database connection. |
java.lang.String |
Delete(AWConnection connection)Deletes the Measure in the current analytic workspace of the specified database connection. |
java.lang.String |
getAutoSolve()Gets a String that indicates whether the analytic workspace automatically calculates the aggregate values of Measure when building the parent Cube. |
java.lang.String |
getDataType()Gets the data type of the Measure. |
SolveDefinition |
getSolveDefinition()Gets the default AggregationDefinition for the Measure. |
void |
setAutoSolve(java.lang.String input)Specifies whether the analytic workspace automatically calculates the aggregate values of the Measure when it builds the parent Cube. |
void |
setDataType(java.lang.String input)Specifies the data type of the Measure. |
void |
setSolveDefinition(SolveDefinition input)Specifies the default AggregationDefinition for the Measure. |
java.lang.String |
WriteToXML()Gets an XML representation of the Measure. |
| 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 |
public Measure(BaseObject input)
Measure for the specified Cube.input - The Cube that owns the Measure.| Method Detail |
public void setDataType(java.lang.String input)
Measure. Supported data types are INTEGER, DECIMAL, NUMBER, and TEXT.input - A String that contains the data type.public java.lang.String getDataType()
Measure.String that contains the data type.public void setAutoSolve(java.lang.String input)
Measure when it builds the parent Cube. When it automatically solves the Measure, the analytic workspace uses the default AggregationDefinition of the Measure.
The following table lists the acceptable values for the input parameter and the action specified by the value.
| Input Value | Action Specified |
|---|---|
AUTO_SOLVE |
Automatically calculate the aggregate values for the Measure. Use the default AggregationDefinition in calculating the values. |
NO_AUTO_SOLVE |
Do not calculate the aggregate values for the Measure. |
DEFAULT |
Use the setting for automatically calculating aggregate values specified by the parent Cube. |
input - A String that contains AUTO_SOLVE, NO_AUTO_SOLVE, or DEFAULT.public java.lang.String getAutoSolve()
String that indicates whether the analytic workspace automatically calculates the aggregate values of Measure when building the parent Cube. The value returned by this method is one of the following.
AUTO_SOLVENO_AUTO_SOLVEDEFAULTFor a description of these values, see setAutoSolve(java.lang.String)
String that indicates whether the analytic workspace automatically calculates the aggregate values of the Measure.public java.lang.String WriteToXML()
Measure.String that is an XML representation of the Measure.public void setSolveDefinition(SolveDefinition input)
AggregationDefinition for the Measure.input - The AggregationDefinition to specify as the default for the Measure.public SolveDefinition getSolveDefinition()
AggregationDefinition for the Measure.AggregationDefinition.public java.lang.String Create(AWConnection connection)
Measure in the current analytic workspace of the specified database connection. If it cannot create the Measure, then this method throws an AWException exception.connection - The AWConnection that represents the database connection.String that contains success if the method creates the Measure.public java.lang.String Alter(AWConnection connection)
Measure in the current analytic workspace. If it cannot alter the Measure, then this method throws an AWException exception.connection - The AWConnection that represents the database connection.String that contains success if the method alters the Measure.public java.lang.String Delete(AWConnection connection)
Measure in the current analytic workspace of the specified database connection. If it cannot delete the Measure, then this method throws an AWException exception.connection - The AWConnection that represents the database connection.String that contains success if the method deletes the Measure.
|
Oracle® OLAP Analytic Workspace Java API Reference 10g Release 2 (10.2) B14351-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||