public final class MdmStandardDimension extends MdmPrimaryDimension
MdmPrimaryDimension
that represents most types of metadata for Oracle OLAP dimensions, such as dimensions for products, customers, distribution channels, and so on. An application creates an MdmStandardDimension
by calling the findOrCreateStandardDimension
method of an MdmDatabaseSchema
.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context)
Calls the
visitMdmStandardDimension method of the MdmObjectVisitor and passes that method the MdmStandardDimension and an Object . |
void |
addCustomMember(MdmStandardMember customMember)
Adds a custom member to the
MdmStandardDimension . |
MdmStandardMember |
createCustomMember(java.lang.String name, MdmLevel level, java.lang.String parent, MdmLevel parentLevel, Source source, int precedence)
Creates a custom dimension member with the specified parent level for the
MdmStandardDimension . |
MdmStandardMember |
createCustomMember(java.lang.String name, MdmLevel level, java.lang.String parent, Source source, int precedence)
Creates a custom dimension member for the
MdmStandardDimension . |
MdmStandardMember |
createCustomMember(java.lang.String name, MdmValueHierarchy valueHier, Source source, int precedence)
Creates a custom dimension member for an
MdmValueHierarchy component of the MdmStandardDimension . |
java.util.List |
getCustomMembers()
Gets the custom members of the
MdmStandardDimension . |
void |
removeCustomMember(MdmStandardMember customMember)
Removes a custom member from the
MdmStandardDimension . |
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)
visitMdmStandardDimension
method of the MdmObjectVisitor
and passes that method the MdmStandardDimension
and an Object
.acceptVisitor
in class MdmObject
visitor
- An MdmObjectVisitor
.context
- An Object
.Object
returned by the visitMdmStandardDimension
method.public MdmStandardMember createCustomMember(java.lang.String name, MdmLevel level, java.lang.String parent, Source source, int precedence)
MdmStandardDimension
. For example, the following code creates a custom member of the Product dimension at the ITEM
level. In the example, calc1
defines a calculation that produces the measure value for the dimension member for a measure dimensioned by the dimension.
MdmStandardMember myProdMember = mdmProdStdDim.createCustomMember( "EXE and STD", mdmItemLevel, "LTPC", calc1, 10);
name
- A String
that contains the local value for the member.level
- The MdmLevel
to which you want the member to belong.parent
- A String
that contains the local value of the parent of the member. The parent must be a member of the level that is one level above the level to which the custom member belongs.source
- A Source
that specifies the value of the custom member; this value is the measure value that is specified by the custom member for an MdmMeasure
that is dimensioned by the MdmStandardDimension
.precedence
- An integer that specifies the precedence for the custom member.MdmStandardMember
that is a custom member of the dimension.FundamentalMetadataProvider
public MdmStandardMember createCustomMember(java.lang.String name, MdmLevel level, java.lang.String parent, MdmLevel parentLevel, Source source, int precedence)
MdmStandardDimension
.name
- A String
that contains the local value for the member.level
- The MdmLevel
to which you want the member to belong.parent
- A String
that contains the local value of the parent of the member.parentLevel
- The MdmLevel
to which the parent of the member belongs.source
- A Source
that specifies the value of the custom member; this value is the measure value that is specified by the custom member for an MdmMeasure
that is dimensioned by the MdmStandardDimension
.precedence
- An integer that specifies the precedence for the custom member.MdmStandardMember
that is a custom member of the dimension.public MdmStandardMember createCustomMember(java.lang.String name, MdmValueHierarchy valueHier, Source source, int precedence)
MdmValueHierarchy
component of the MdmStandardDimension
.name
- A String
that contains the local value for the member.valueHier
- The MdmValueHierarchy
to which you want the member to belong.source
- A Source
that specifies the value of the custom member; this value is the measure value that is specified by the custom member for an MdmMeasure
that is dimensioned by the MdmStandardDimension
.precedence
- An integer that specifies the precedence for the custom member.MdmStandardMember
that is a custom member of the dimension.public final java.util.List getCustomMembers()
MdmStandardDimension
.List
that contains the MdmStandardMember
objects that are the custom members of the MdmStandardDimension
.public final void addCustomMember(MdmStandardMember customMember)
MdmStandardDimension
. Use this method to add a custom member that you create with the constructor of the MdmStandardMember
class.customMember
- The custom MdmStandardMember
to add to the MdmStandardDimension
.public final void removeCustomMember(MdmStandardMember customMember)
MdmStandardDimension
.customMember
- The custom MdmStandardMember
to remove from the MdmStandardDimension
.