public final class MdmMeasureDimension extends MdmPrimaryDimension
MdmPrimaryDimension
with members that are MdmMeasure
objects. The MdmRootSchema
of an MdmMetadataProvider
has one persistent MdmMeasureDimension
, which you can get by calling the getMeasureDimension
method of the MdmRootSchema
.
With a createCustomMeasure
method, you can create a transient custom measure that is not visible outside of your current session. You can create a custom measure in a child Transaction
, commit the child Transaction
, and then use the custom measure in a query.
The precedence of a custom measure affects the order in which Oracle OLAP calculates values and assigns the values to the measure. Oracle OLAP evaluates the measure with the highest precedence value first, and then the measure with the next highest precedence value, and so on. If the value for one custom measure depends on the calculated value of another custom measure, then the measure with the dependent value should have a lower precedence.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context)
Calls the
visitMdmMeasureDimension method of the MdmObjectVisitor and passes that method the MdmMeasureDimension and an Object . |
void |
addMeasure(MdmMeasure measure)
Adds an
MdmMeasure to the MdmMeasureDimension . |
MdmMeasure |
createCustomMeasure(java.lang.String name, MdmSchema schema, Source source, int precedence)
Creates a custom
MdmMeasure for the specified MdmSchema . |
MdmMeasure |
createCustomMeasure(java.lang.String name, Source source, int precedence)
Creates a custom
MdmMeasure . |
MdmCube |
getCube()
Gets the
MdmCube that is associated with this MdmMeasureDimension . |
java.util.List |
getMeasures()
Gets a
List that contains the MdmMeasure objects that are the members of the MdmMeasureDimension . |
void |
removeMeasure(MdmMeasure measure)
Removes an
MdmMeasure from the MdmMeasureDimension . |
addDimensionLevel, addHierarchy, addModel, findOrCreateAWPrimaryDimensionOrganization, findOrCreateBaseAttribute, findOrCreateDimCalcModel, findOrCreateDimensionLevel, findOrCreateLevelHierarchy, findOrCreateMdmCustomMember, findOrCreateMemberListMap, findOrCreateRolapPrimaryDimensionOrganization, findOrCreateValueHierarchy, getAncestorsAttribute, getAttributes, getDefaultCalcModel, getDefaultHierarchy, getDimensionLevels, getETDimensionOrderColumn, getETHierarchyOrderColumn, getETKeyColumn, getETLevelNameColumn, getETLocalValueColumn, getETMemberTypeColumn, getETViewName, getHierarchies, getHierarchy, getHierarchyAttribute, getIsCustomMemberAttribute, getLevelAttribute, getLevelDepthAttribute, getLocalValueAttribute, getMdmCustomMembers, getMemberListMap, getModels, getNamespace, getOrganization, getOwner, getParentAttribute, getPersistentLanguages, getQuery, getQueryColumn, getQueryColumns, getQueryName, getShortValueDescriptionAttribute, getType, getValueDescriptionAttribute, getValueLineageAttribute, getValueSeparationString, removeAttribute, removeDimensionLevel, removeHierarchy, removeMdmCustomMember, removeModel, setDefaultCalcModel, setDefaultHierarchy, setETViewName, setMemberListMap, setOwner, setShortValueDescriptionAttribute, setValueDescriptionAttribute, setValueSeparationString
getCardinality, getCustomOrder, getPluralDescription, getPrimaryDimension, getShortPluralDescription, setCardinality, setCustomOrder, setPluralDescription, setShortPluralDescription
getDataType, getSource
addDescription, addObjectClassification, findOrCreateDescription, getDescription, getDescription, getDescription, getDescriptions, getMetadataProvider, getObjectClassifications, getShortDescription, isClassifiedAs, removeDescription, removeObjectClassification, setDescription, setDescription, setDescription, setName, setShortDescription
getContainedByObject, getID, getName, getNewName
public java.lang.Object acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context)
visitMdmMeasureDimension
method of the MdmObjectVisitor
and passes that method the MdmMeasureDimension
and an Object
.acceptVisitor
in class MdmObject
visitor
- An MdmObjectVisitor
.context
- An Object
.Object
returned by the visitMdmMeasureDimension
method.public final java.util.List getMeasures()
List
that contains the MdmMeasure
objects that are the members of the MdmMeasureDimension
.List
containing all the MdmMeasure
objects of the MdmMeasureDimension
.public void addMeasure(MdmMeasure measure)
MdmMeasure
to the MdmMeasureDimension
.measure
- The MdmMeasure
to add to the MdmMeasureDimension
.public void removeMeasure(MdmMeasure measure)
MdmMeasure
from the MdmMeasureDimension
.measure
- The MdmMeasure
to remove.public MdmMeasure createCustomMeasure(java.lang.String name, Source source, int precedence)
MdmMeasure
.name
- A String
that contains a name for the custom MdmMeasure
.source
- A Source
that specifies the values of the custom measure.precedence
- An integer that specifies the precedence for the MdmMeasure
.public MdmMeasure createCustomMeasure(java.lang.String name, MdmSchema schema, Source source, int precedence)
MdmMeasure
for the specified MdmSchema
.name
- A String
that contains a name for the custom MdmMeasure
.schema
- The MdmSchema
to which you want the custom measure to belong.source
- A Source
that specifies the values of the custom measure.precedence
- An integer that specifies the precedence for the MdmMeasure
.public final MdmCube getCube()
MdmCube
that is associated with this MdmMeasureDimension
.MdmCube
associated with this MdmMeasureDimension
.