Skip navigation links

Oracle® OLAP Java API Reference
11g Release 1 (11.1)

B28128-01


oracle.olapi.metadata.mdm
Class MdmPrimaryDimension

java.lang.Object
  extended by oracle.olapi.metadata.BaseMetadataObject
      extended by oracle.olapi.metadata.mdm.MdmObject
          extended by oracle.olapi.metadata.mdm.MdmSource
              extended by oracle.olapi.metadata.mdm.MdmDimension
                  extended by oracle.olapi.metadata.mdm.MdmPrimaryDimension

All Implemented Interfaces:
MdmMemberListMapOwner, MdmQuery, MdmViewColumnOwner, MetadataObject, Buildable
Direct Known Subclasses:
MdmMeasureDimension, MdmStandardDimension, MdmTimeDimension

public abstract class MdmPrimaryDimension
extends MdmDimension
implements MdmMemberListMapOwner, MdmViewColumnOwner, MdmQuery, Buildable

The base class for objects that represent an Oracle OLAP dimension. An MdmPrimaryDimension has one or more components that are subclasses of MdmSubDimension.

The concrete subclasses of the abstract MdmPrimaryDimension class represent dimensions that have different characteristics. An MdmStandardDimension typically has members that represent such things as products, customers, distribution channels, and so on. An MdmTimeDimension has members that represent time periods. An MdmMeasureDimension has members that are MdmMeasure objects.

The MdmHierarchy components of an MdmPrimaryDimension represent organizations of the members of the dimension. An Oracle OLAP dimension can be a simple, nonhierarchical set of members, or it can organize members into one or more hierarchies. A hierarchy can have parent-child relationships organized by levels or by values. For example, a dimension of time periods might be organized into two hierarchies, one organized by calendar year time periods and the other organized by fiscal year time periods. Both hierarchies are organized by levels for year, quarter, month, and day time periods. Each of those hierarchies is represented by an MdmLevelHierarchy, which is a concrete subclass of the abstract MdmHierarchy class. Those MdmLevelHierarchy objects are the components of the MdmTimeDimension.

Some the methods of an MdmPrimaryDimension return MdmAttribute objects that have members that are related to members of one or more of the components of the dimension. For example, the getLocalValueAttribute method returns an MdmAttribute that relates the unique value of a member of a component of the MdmPrimaryDimension to its corresponding local value. A unique value specifies a hierarchy, a level of the hierarchy, and the value of a member in that level, as in the following example from an MdmLevelHierarchy that represents products organized into levels by the type of product.

 PRODUCT_PRIMARY::ITEM::ENVY STD

The parts of the unique value are separated by a value separation string. The value separation string in the preceding example is ::, the double colons. The local value of that unique value is ENVY STD.

An application can create a concrete instance of an MdmPrimaryDimension by calling the appropriate method of an MdmDatabaseSchema. It can also get existing MdmPrimaryDimension objects from the MdmDatabaseSchema or an MdmDimensionedObject. It gets the MdmMeasureDimension for a schema by calling the getMeasureDimension method of an MdmDatabaseSchema.


Method Summary
 void addDimensionLevel(MdmDimensionLevel level)
          Adds an MdmDimensionLevel to the List of MdmDimensionLevel objects associated with the MdmPrimaryDimension</CODE.
 void addHierarchy(MdmHierarchy hierarchy)
          Adds an MdmHierarchy to the List of MdmHierarchy objects associated with the MdmPrimaryDimension.
 void addModel(MdmDimensionCalculationModel model)
          Adds an MdmDimensionCalculationModel to the List of MdmDimensionCalculationModel objects associated with the MdmPrimaryDimension</CODE.
 AWPrimaryDimensionOrganization createAWOrganization(AW aw, boolean replaceExisting)
          Creates an AWPrimaryDimensionOrganization and possibly associates it with this MdmPrimaryDimension.
 MdmAttribute createBooleanAttribute(java.lang.String name, MtmValueExpression expression)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.
 MdmAttribute createBooleanAttribute(java.lang.String name, java.lang.String expression)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.
 MdmAttribute createDateAttribute(java.lang.String name, MtmValueExpression expression)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.
 MdmAttribute createDateAttribute(java.lang.String name, java.lang.String expression)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.
 MdmLevelHierarchy createLevelHierarchy(java.lang.String name, MdmLevelHierarchy prototype)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateLevelHierarchy.
 MdmAttribute createNumericAttribute(java.lang.String name, MtmValueExpression expression)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.
 MdmAttribute createNumericAttribute(java.lang.String name, java.lang.String expression)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.
 RolapPrimaryDimensionOrganization createRolapOrganization(boolean replaceExisting)
          Creates a RolapPrimaryDimensionOrganization and possibly associates it with this MdmPrimaryDimension.
 MdmLevelHierarchy createSolvedLevelHierarchy(java.lang.String name, MtmTabularSource table, MtmValueExpression gidExpression, MtmValueExpression etExpression, MtmValueExpression parentGIDExpression, MtmValueExpression parentETExpression)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateLevelHierarchy.
 MdmAttribute createStringAttribute(java.lang.String name, MtmValueExpression expression)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.
 MdmAttribute createStringAttribute(java.lang.String name, java.lang.String expression)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.
 MdmLevelHierarchy createUnsolvedLevelHierarchy(java.lang.String name, MtmTabularSource table)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateLevelHierarchy.
 MdmValueHierarchy createValueHierarchy(java.lang.String name, MdmLevelHierarchy levelHierarchy)
          Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateValueHierarchy.
 MdmBaseAttribute findOrCreateBaseAttribute(java.lang.String publicName)
          Gets the specified MdmBaseAttribute or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
 MdmDerivedAttribute findOrCreateDerivedAttribute(java.lang.String publicName)
          Gets the specified MdmDerivedAttribute or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
 MdmDimensionCalculationModel findOrCreateDimCalcModel(java.lang.String publicName)
          Gets the specified MdmDimensionCalculationModel or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
 MdmDimensionLevel findOrCreateDimensionLevel(java.lang.String publicName)
          Gets the specified MdmDimensionLevel or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
 MdmLevelHierarchy findOrCreateLevelHierarchy(java.lang.String publicName)
          Gets the specified MdmLevelHierarchy or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
 MdmCustomMember findOrCreateMdmCustomMember(java.lang.String memberName)
          Gets the specified MdmCustomMember of the dimension or, if the custom member does not already exist, creates a new one.
 MemberListMap findOrCreateMemberListMap()
          Gets the MemberListMap for the MdmPrimaryDimension or, if one does not already exist, creates a new one.
 MdmMultiValuedDerivedAttribute findOrCreateMultiValuedDerivedAttribute(java.lang.String publicName)
          Gets the specified MdmMultiValuedDerivedAttribute or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
 MdmValueHierarchy findOrCreateValueHierarchy(java.lang.String publicName)
          Gets the specified MdmValueHierarchy or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
 MdmAttribute getAncestorsAttribute()
          Gets the ancestors attribute for the MdmPrimaryDimension.
 java.util.List getAttributes()
          Gets a List of the MdmAttribute objects associated with the MdmPrimaryDimension.
 MdmDimensionCalculationModel getBooleanCalcModel()
          Gets the MdmDimensionCalculationModel that has a data type of Boolean.
 MdmDimensionCalculationModel getDateCalcModel()
          Gets the MdmDimensionCalculationModel that has a data type of Date.
 MdmDimensionCalculationModel getDefaultCalcModel()
          Gets the default MdmDimensionCalculationModel specified for the MdmPrimaryDimension.
 MdmHierarchy getDefaultHierarchy()
          Gets the default component of the MdmPrimaryDimension.
 java.util.List getDimensionLevels()
          Gets the List of the MdmDimensionLevel objects that are associated with the MdmPrimaryDimension</CODE.
 MdmViewColumn getETDimensionOrderColumn()
          Gets the dimension order column of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
 MdmViewColumn getETHierarchyOrderColumn()
          Gets the hierarchy order column of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
 MdmViewColumn getETKeyColumn()
          Gets the key column of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
 MdmViewColumn getETLevelNameColumn()
          Gets the level name column of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
 MdmViewColumn getETLocalValueColumn()
          Gets the local value column of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
 java.lang.String getETViewName()
          Gets the name of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
 java.util.List getHierarchies()
          Gets a List that contains the components of the MdmPrimaryDimension, which are MdmHierarchy objects.
 MdmHierarchy getHierarchy(java.lang.String name)
          Gets the specified MdmHierarchy component of the MdmPrimaryDimension.
 MdmAttribute getHierarchyAttribute()
          Gets the MdmAttribute that relates a hierarchy to each member of the MdmPrimaryDimension.
 MdmAttribute getIsCustomMemberAttribute()
          Gets the MdmAttribute that, for each member of the MdmPrimaryDimension, indicates whether that member is a custom member.
 MdmAttribute getLevelAttribute()
          Gets the MdmAttribute that relates the level of the hierarchy that a member of the hierarchy is in to each member of the MdmPrimaryDimension.
 MdmAttribute getLevelDepthAttribute()
          Gets the MdmAttribute that relates the depth of the level of the hierarchy that a member of the hierarchy is in to each member of the MdmPrimaryDimension.
 MdmAttribute getLocalValueAttribute()
          Gets the MdmAttribute that relates a local value to each member of the MdmPrimaryDimension.
 java.util.List getMdmCustomMembers()
          Gets the MdmCustomMember objects that are associated with the MdmPrimaryDimension.
 MemberListMap getMemberListMap()
          Gets the MemberListMap associated with the MdmPrimaryDimension.
 java.util.List getModels()
          Gets the List of the MdmDimensionCalculationModel objects that are associated with the MdmPrimaryDimension</CODE.
 MdmDimensionCalculationModel getNumberCalcModel()
          Gets the MdmDimensionCalculationModel that has a data type of Number.
 PrimaryDimensionOrganization getOrganization()
          Gets the organization object for the MdmPrimaryDimension, which specifies whether the dimension is deployed in an analytic workspace or in a relational OLAP organization.
 MdmSchema getOwner()
          Gets the MdmDatabaseSchema that owns this MdmPrimaryDimension.
 MdmAttribute getParentAttribute()
          Gets the parent attribute for the MdmPrimaryDimension.
 java.util.List getPersistentLanguages()
          Returns the list of all languages used for descriptions of this MdmPrimaryDimension and all objects owned by this MdmPrimaryDimension.
 MdmPrimaryDimension getPrimaryDimension()
          Gets the MdmPrimaryDimension.
 Query getQuery()
          Gets the Query that is associated with the MdmPrimaryDimension.
 MdmQueryColumn getQueryColumn(java.lang.String name)
          Gets the specified MdmQueryColumn.
 java.util.List<MdmQueryColumn> getQueryColumns()
          Gets the MdmQueryColumn objects that are associated with this MdmPrimaryDimension.
 java.lang.String getQueryName()
          Gets the identifier of this MdmPrimaryDimension.
 MdmAttribute getShortValueDescriptionAttribute()
          Gets the MdmAttribute that relates a short description to each member of the MdmPrimaryDimension.
 MdmDimensionCalculationModel getStringCalcModel()
          Gets the MdmDimensionCalculationModel that has a data type of String.
 MetadataObject getType()
          Gets the OLAP Java API String data type.
 MdmAttribute getValueDescriptionAttribute()
          Gets the MdmAttribute that relates a long description to each member MdmPrimaryDimension.
 MdmAttribute getValueLineageAttribute()
          Gets the MdmAttribute that relates a lineage to each member of the MdmPrimaryDimension.
 java.lang.String getValueSeparationString()
          Gets the String that separates the hierarchy, level, and local value parts of the unique value of a member of the MdmPrimaryDimension.
 void removeAttribute(MdmAttribute attr)
          Removes the specified MdmAttribute from the attributes of this MdmPrimaryDimension.
 void removeDimensionLevel(MdmDimensionLevel level)
          Removes an MdmDimensionLevel from the List of MdmDimensionLevel objects associated with the MdmPrimaryDimension</CODE.
 void removeHierarchy(MdmHierarchy hierarchy)
          Removes an MdmHierarchy from the components of the MdmPrimaryDimension.
 void removeMdmCustomMember(MdmCustomMember member)
          Removes an MdmCustomMember from the MdmPrimaryDimension.
 void removeModel(MdmDimensionCalculationModel model)
          Removes an MdmDimensionCalculationModel from the List of MdmDimensionCalculationModel objects associated with the MdmPrimaryDimension</CODE.
 void setBooleanCalcModel(MdmDimensionCalculationModel model)
          Specifies an MdmDimensionCalculationModel to use for an MdmMeasure or MdmAttribute that has Boolean values.
 void setDateCalcModel(MdmDimensionCalculationModel model)
          Specifies an MdmDimensionCalculationModel to use for an MdmMeasure or MdmAttribute that has Date values.
 void setDefaultCalcModel(MdmDimensionCalculationModel model)
          Specifies an MdmDimensionCalculationModel as the default for the MdmPrimaryDimension.
 void setDefaultHierarchy(MdmHierarchy hierarchy)
          Specifies a default hierarchy for the MdmPrimaryDimension.
 void setETViewName(java.lang.String name)
          Specifies a name for the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
 void setMemberListMap(MemberListMap map)
          Specifies the MemberListMap to associate with the MdmPrimaryDimension.
 void setNumberCalcModel(MdmDimensionCalculationModel model)
          Specifies an MdmDimensionCalculationModel to use for an MdmMeasure or MdmAttribute that has Number values.
 void setOwner(MdmDatabaseSchema owner)
          Specifies an MdmDatabaseSchema as the owner of this MdmPrimaryDimension.
 void setShortValueDescriptionAttribute(MdmAttribute attr)
          Specifes an MdmAttribute that contains short descriptions for the members of the MdmPrimaryDimension.
 void setStringCalcModel(MdmDimensionCalculationModel model)
          Specifies an MdmDimensionCalculationModel to use for an MdmMeasure or MdmAttribute that has String values.
 void setValueDescriptionAttribute(MdmAttribute attr)
          Specifes an MdmAttribute that contains long descriptions for the members of the MdmPrimaryDimension.
 void setValueSeparationString(java.lang.String sep)
          Specifies a String that separates the hierarchy, level, and local value parts of the unique value of a member of the MdmPrimaryDimension.

 

Methods inherited from class oracle.olapi.metadata.mdm.MdmDimension
getCardinality, getCustomOrder, getPluralDescription, getShortPluralDescription, setCardinality, setCustomOrder, setPluralDescription, setShortPluralDescription

 

Methods inherited from class oracle.olapi.metadata.mdm.MdmSource
getDataType, getModel, getSource, getSourceMap, setModel

 

Methods inherited from class oracle.olapi.metadata.mdm.MdmObject
acceptVisitor, findOrCreateDescription, getDescription, getDescription, getDescription, getMetadataProvider, getName, getShortDescription, setDescription, setDescription, setDescription, setName, setShortDescription

 

Methods inherited from class oracle.olapi.metadata.BaseMetadataObject
getID

 

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

 

Method Detail

getAncestorsAttribute

public MdmAttribute getAncestorsAttribute()
                                   throws oracle.express.mdm.MetadataNotFoundException
Gets the ancestors attribute for the MdmPrimaryDimension. The ancestors attribute maps each member of the MdmHierarchy components of the MdmPrimaryDimension to its group of ancestors in the hierarchy. For example, the ancestors for a month in a time hierarchy might be quarter and year.
Returns:
The MdmAttribute that is the ancestors attribute of the MdmPrimaryDimension.
Throws:
oracle.express.mdm.MetadataNotFoundException

getHierarchies

public final java.util.List getHierarchies()
Gets a List that contains the components of the MdmPrimaryDimension, which are MdmHierarchy objects.
Returns:
A List that contains the components of the MdmPrimaryDimension.

getHierarchy

public final MdmHierarchy getHierarchy(java.lang.String name)
Gets the specified MdmHierarchy component of the MdmPrimaryDimension.
Parameters:
name - A String that contains the name of the MdmHierarchy to get.
Returns:
The MdmHierarchy that has the specified name.

getDefaultHierarchy

public MdmHierarchy getDefaultHierarchy()
Gets the default component of the MdmPrimaryDimension.
Returns:
The MdmHierarchy that is the default component of the MdmPrimaryDimension.

getPrimaryDimension

public final MdmPrimaryDimension getPrimaryDimension()
Gets the MdmPrimaryDimension.
Specified by:
getPrimaryDimension in class MdmDimension
Returns:
The MdmPrimaryDimension.

getParentAttribute

public MdmAttribute getParentAttribute()
                                throws oracle.express.mdm.MetadataNotFoundException
Gets the parent attribute for the MdmPrimaryDimension. The parent attribute maps each member of the MdmHierarchy components of the MdmPrimaryDimension to its parent.
Returns:
The MdmAttribute that is the parent attribute of the MdmPrimaryDimension.
Throws:
oracle.express.mdm.MetadataNotFoundException

getShortValueDescriptionAttribute

public final MdmAttribute getShortValueDescriptionAttribute()
                                                     throws oracle.express.mdm.MetadataNotFoundException
Gets the MdmAttribute that relates a short description to each member of the MdmPrimaryDimension.
Returns:
The MdmAttribute that relates a short description to each member MdmPrimaryDimension.
Throws:
oracle.express.mdm.MetadataNotFoundException

getValueDescriptionAttribute

public final MdmAttribute getValueDescriptionAttribute()
                                                throws oracle.express.mdm.MetadataNotFoundException
Gets the MdmAttribute that relates a long description to each member MdmPrimaryDimension.
Returns:
The MdmAttribute that relates a long description to each member of the components of the MdmPrimaryDimension.
Throws:
oracle.express.mdm.MetadataNotFoundException

getLevelAttribute

public final MdmAttribute getLevelAttribute()
Gets the MdmAttribute that relates the level of the hierarchy that a member of the hierarchy is in to each member of the MdmPrimaryDimension.
Returns:
The MdmAttribute that relates a level of a hierarchy to each member of the MdmPrimaryDimension.

getLevelDepthAttribute

public final MdmAttribute getLevelDepthAttribute()
Gets the MdmAttribute that relates the depth of the level of the hierarchy that a member of the hierarchy is in to each member of the MdmPrimaryDimension.
Returns:
The MdmAttribute that relates the depth of a level in a hierarchy to each member of the MdmPrimaryDimension.

getLocalValueAttribute

public final MdmAttribute getLocalValueAttribute()
                                          throws oracle.express.mdm.MetadataNotFoundException
Gets the MdmAttribute that relates a local value to each member of the MdmPrimaryDimension.
Returns:
The MdmAttribute that relates a local value to each member of the MdmPrimaryDimension.
Throws:
oracle.express.mdm.MetadataNotFoundException

getHierarchyAttribute

public final MdmAttribute getHierarchyAttribute()
                                         throws oracle.express.mdm.MetadataNotFoundException
Gets the MdmAttribute that relates a hierarchy to each member of the MdmPrimaryDimension.
Returns:
The MdmAttribute that relates a hierarchy to each member of the MdmPrimaryDimension.
Throws:
oracle.express.mdm.MetadataNotFoundException

getIsCustomMemberAttribute

public final MdmAttribute getIsCustomMemberAttribute()
                                              throws oracle.express.mdm.MetadataNotFoundException
Gets the MdmAttribute that, for each member of the MdmPrimaryDimension, indicates whether that member is a custom member.
Returns:
The MdmAttribute that, for each member of the of the MdmPrimaryDimension, indicates whether that member is a custom member.
Throws:
oracle.express.mdm.MetadataNotFoundException

getValueLineageAttribute

public final MdmAttribute getValueLineageAttribute()
                                            throws oracle.express.mdm.MetadataNotFoundException
Gets the MdmAttribute that relates a lineage to each member of the MdmPrimaryDimension. The lineage is useful for display purposes.

The lineage associated with a dimension member provides the ancestors of the member in the hierarchy. The ancestor member values are in brackets and are separated by periods. For example, the value lineage attribute value associated with item ENVY EXE of the Product dimension is the following.

   [TOTAL].[HRD].[LTPC].[ENVY EXE]

The ancestor attribute returned by the getAncestorAttribute method associates each ancestor individually. The ancestor attribute values associated with item ENVY EXE are the following.

  PRODUCT_PRIMARY::TOTAL_PRODUCT::TOTAL
  PRODUCT_PRIMARY::CLASS::HRD
  PRODUCT_PRIMARY::FAMILY::LTPC
  PRODUCT_PRIMARY::ITEM::ENVY EXE
Returns:
The MdmAttribute that relates a lineage to each member of the MdmPrimaryDimension.
Throws:
oracle.express.mdm.MetadataNotFoundException

getValueSeparationString

public final java.lang.String getValueSeparationString()
Gets the String that separates the hierarchy, level, and local value parts of the unique value of a member of the MdmPrimaryDimension.
Returns:
The value separation string for the parts of a unique value of a member of the MdmPrimaryDimension.

createNumericAttribute

public MdmAttribute createNumericAttribute(java.lang.String name,
                                           MtmValueExpression expression)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.

createNumericAttribute

public MdmAttribute createNumericAttribute(java.lang.String name,
                                           java.lang.String expression)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.

createDateAttribute

public MdmAttribute createDateAttribute(java.lang.String name,
                                        MtmValueExpression expression)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.

createDateAttribute

public MdmAttribute createDateAttribute(java.lang.String name,
                                        java.lang.String expression)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.

createStringAttribute

public MdmAttribute createStringAttribute(java.lang.String name,
                                          MtmValueExpression expression)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.

createStringAttribute

public MdmAttribute createStringAttribute(java.lang.String name,
                                          java.lang.String expression)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.

createBooleanAttribute

public MdmAttribute createBooleanAttribute(java.lang.String name,
                                           MtmValueExpression expression)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.

createBooleanAttribute

public MdmAttribute createBooleanAttribute(java.lang.String name,
                                           java.lang.String expression)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateBaseAttribute.

setDefaultHierarchy

public void setDefaultHierarchy(MdmHierarchy hierarchy)
Specifies a default hierarchy for the MdmPrimaryDimension.
Parameters:
hierarchy - The MdmHierarchy to set as the default hierarchy for the MdmPrimaryDimension.

addHierarchy

public void addHierarchy(MdmHierarchy hierarchy)
Adds an MdmHierarchy to the List of MdmHierarchy objects associated with the MdmPrimaryDimension.
Parameters:
hierarchy - The MdmHierarchy to add to the dimension.

removeHierarchy

public void removeHierarchy(MdmHierarchy hierarchy)
Removes an MdmHierarchy from the components of the MdmPrimaryDimension.
Parameters:
hierarchy - The MdmHierarchy to remove from the MdmPrimaryDimension

createLevelHierarchy

public MdmLevelHierarchy createLevelHierarchy(java.lang.String name,
                                              MdmLevelHierarchy prototype)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateLevelHierarchy.

createUnsolvedLevelHierarchy

public MdmLevelHierarchy createUnsolvedLevelHierarchy(java.lang.String name,
                                                      MtmTabularSource table)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateLevelHierarchy.

createSolvedLevelHierarchy

public MdmLevelHierarchy createSolvedLevelHierarchy(java.lang.String name,
                                                    MtmTabularSource table,
                                                    MtmValueExpression gidExpression,
                                                    MtmValueExpression etExpression,
                                                    MtmValueExpression parentGIDExpression,
                                                    MtmValueExpression parentETExpression)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateLevelHierarchy.

createValueHierarchy

public MdmValueHierarchy createValueHierarchy(java.lang.String name,
                                              MdmLevelHierarchy levelHierarchy)
Deprecated. As of Oracle 11g, Release 1 (11.1); replaced by findOrCreateValueHierarchy.

setShortValueDescriptionAttribute

public final void setShortValueDescriptionAttribute(MdmAttribute attr)
Specifes an MdmAttribute that contains short descriptions for the members of the MdmPrimaryDimension.
Parameters:
attr - An MdmAttribute that relates short descriptions to members of the MdmPrimaryDimension.

setValueDescriptionAttribute

public final void setValueDescriptionAttribute(MdmAttribute attr)
Specifes an MdmAttribute that contains long descriptions for the members of the MdmPrimaryDimension.
Parameters:
attr - An MdmAttribute that relates long descriptions to members of the MdmPrimaryDimension.

setValueSeparationString

public final void setValueSeparationString(java.lang.String sep)
Specifies a String that separates the hierarchy, level, and local value parts of the unique value of a member of the MdmPrimaryDimension.
Parameters:
sep - The String to use as the value separation string for the parts of a unique value of a member of the MdmPrimaryDimension.

getBooleanCalcModel

public final MdmDimensionCalculationModel getBooleanCalcModel()
Gets the MdmDimensionCalculationModel that has a data type of Boolean.
Returns:
An MdmDimensionCalculationModel that has a data type of Boolean.

getStringCalcModel

public final MdmDimensionCalculationModel getStringCalcModel()
Gets the MdmDimensionCalculationModel that has a data type of String.
Returns:
An MdmDimensionCalculationModel that has a data type of String.

getDateCalcModel

public final MdmDimensionCalculationModel getDateCalcModel()
Gets the MdmDimensionCalculationModel that has a data type of Date.
Returns:
An MdmDimensionCalculationModel that has a data type of Date.

getNumberCalcModel

public final MdmDimensionCalculationModel getNumberCalcModel()
Gets the MdmDimensionCalculationModel that has a data type of Number.
Returns:
An MdmDimensionCalculationModel that has a data type of Number.

setBooleanCalcModel

public final void setBooleanCalcModel(MdmDimensionCalculationModel model)
Specifies an MdmDimensionCalculationModel to use for an MdmMeasure or MdmAttribute that has Boolean values.
Parameters:
model - The MdmDimensionCalculationModel to use for MdmDimensionedObject objects that have a data type of Boolean.

setStringCalcModel

public final void setStringCalcModel(MdmDimensionCalculationModel model)
Specifies an MdmDimensionCalculationModel to use for an MdmMeasure or MdmAttribute that has String values.
Parameters:
model - The MdmDimensionCalculationModel to use for MdmDimensionedObject objects that have a data type of String.

setDateCalcModel

public final void setDateCalcModel(MdmDimensionCalculationModel model)
Specifies an MdmDimensionCalculationModel to use for an MdmMeasure or MdmAttribute that has Date values.
Parameters:
model - The MdmDimensionCalculationModel to use for MdmDimensionedObject objects that have a data type of Date.

setNumberCalcModel

public final void setNumberCalcModel(MdmDimensionCalculationModel model)
Specifies an MdmDimensionCalculationModel to use for an MdmMeasure or MdmAttribute that has Number values.
Parameters:
model - The MdmDimensionCalculationModel to use for MdmDimensionedObject objects that have a data type of Number.

addDimensionLevel

public final void addDimensionLevel(MdmDimensionLevel level)
Adds an MdmDimensionLevel to the List of MdmDimensionLevel objects associated with the MdmPrimaryDimension</CODE.
Parameters:
level - The MdmDimensionLevel to add to the list of MdmDimensionLevel objects of the MdmPrimaryDimension</CODE.

removeDimensionLevel

public final void removeDimensionLevel(MdmDimensionLevel level)
Removes an MdmDimensionLevel from the List of MdmDimensionLevel objects associated with the MdmPrimaryDimension</CODE.
Parameters:
level - The MdmDimensionLevel to remove from the list of MdmDimensionLevel objects of the MdmPrimaryDimension</CODE.

getDimensionLevels

public final java.util.List getDimensionLevels()
Gets the List of the MdmDimensionLevel objects that are associated with the MdmPrimaryDimension</CODE.
Returns:
A List of the MdmDimensionLevel objects of the MdmPrimaryDimension</CODE.

addModel

public final void addModel(MdmDimensionCalculationModel model)
Adds an MdmDimensionCalculationModel to the List of MdmDimensionCalculationModel objects associated with the MdmPrimaryDimension</CODE.
Parameters:
model - The MdmDimensionCalculationModel to add to the list of MdmDimensionCalculationModel objects of the MdmPrimaryDimension</CODE.

removeModel

public final void removeModel(MdmDimensionCalculationModel model)
Removes an MdmDimensionCalculationModel from the List of MdmDimensionCalculationModel objects associated with the MdmPrimaryDimension</CODE.
Parameters:
model - The MdmDimensionCalculationModel to remove from the list of MdmDimensionCalculationModel objects of the MdmPrimaryDimension</CODE.

getModels

public final java.util.List getModels()
Gets the List of the MdmDimensionCalculationModel objects that are associated with the MdmPrimaryDimension</CODE.
Returns:
A List of the MdmDimensionCalculationModel objects of the MdmPrimaryDimension</CODE.

getDefaultCalcModel

public final MdmDimensionCalculationModel getDefaultCalcModel()
Gets the default MdmDimensionCalculationModel specified for the MdmPrimaryDimension.
Returns:
The default MdmDimensionCalculationModel for the MdmPrimaryDimension.

setDefaultCalcModel

public final void setDefaultCalcModel(MdmDimensionCalculationModel model)
Specifies an MdmDimensionCalculationModel as the default for the MdmPrimaryDimension.
Parameters:
model - The MdmDimensionCalculationModel to specify as the default for the dimension.

getOwner

public final MdmSchema getOwner()
Gets the MdmDatabaseSchema that owns this MdmPrimaryDimension.
Overrides:
getOwner in class BaseMetadataObject
Returns:
The MdmDatabaseSchema that owns this MdmPrimaryDimension.

setOwner

public final void setOwner(MdmDatabaseSchema owner)
Specifies an MdmDatabaseSchema as the owner of this MdmPrimaryDimension.
Parameters:
owner - The MdmDatabaseSchema to specify as the owner of this MdmPrimaryDimension.

getMemberListMap

public final MemberListMap getMemberListMap()
Gets the MemberListMap associated with the MdmPrimaryDimension.
Specified by:
getMemberListMap in interface MdmMemberListMapOwner
Returns:
MemberListMap associated with the MdmPrimaryDimension.

setMemberListMap

public final void setMemberListMap(MemberListMap map)
Specifies the MemberListMap to associate with the MdmPrimaryDimension.
Parameters:
map - The MemberListMap to associate with the MdmPrimaryDimension.

getAttributes

public java.util.List getAttributes()
Gets a List of the MdmAttribute objects associated with the MdmPrimaryDimension.
Specified by:
getAttributes in class MdmDimension
Returns:
A List of the MdmAttribute objects for the MdmPrimaryDimension.
See Also:
MdmAttribute

removeAttribute

public void removeAttribute(MdmAttribute attr)
Removes the specified MdmAttribute from the attributes of this MdmPrimaryDimension.
Specified by:
removeAttribute in class MdmDimension
Parameters:
attr - The MdmAttribute to remove from this MdmPrimaryDimension.

getOrganization

public final PrimaryDimensionOrganization getOrganization()
Gets the organization object for the MdmPrimaryDimension, which specifies whether the dimension is deployed in an analytic workspace or in a relational OLAP organization.

createAWOrganization

public final AWPrimaryDimensionOrganization createAWOrganization(AW aw,
                                                                 boolean replaceExisting)
Creates an AWPrimaryDimensionOrganization and possibly associates it with this MdmPrimaryDimension. The replaceExisting parameter specifies whether the new AWPrimaryDimensionOrganization should replace the current PrimaryDimensionOrganization if the MdmPrimaryDimension already has one.
Parameters:
aw - The AW object to associate with the AWPrimaryDimensionOrganization.
replaceExisting - A boolean that is true if the new AWPrimaryDimensionOrganization should replace the current PrimaryDimensionOrganization, if any, or false if it should not replace it.
Returns:
The new AWPrimaryDimensionOrganization.

createRolapOrganization

public final RolapPrimaryDimensionOrganization createRolapOrganization(boolean replaceExisting)
Creates a RolapPrimaryDimensionOrganization and possibly associates it with this MdmPrimaryDimension. The replaceExisting parameter specifies whether the new RolapPrimaryDimensionOrganization should replace the current PrimaryDimensionOrganization if the MdmPrimaryDimension already has one.
Parameters:
replaceExisting - A boolean that is true if the new RolapPrimaryDimensionOrganization should replace the current PrimaryDimensionOrganization, if any, or false if it should not replace it.
Returns:
The new RolapPrimaryDimensionOrganization.

getETViewName

public final java.lang.String getETViewName()
Gets the name of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
Returns:
A String that contains the name of the ET view.

setETViewName

public final void setETViewName(java.lang.String name)
Specifies a name for the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
Parameters:
name - A String that contains the name for the ET view.

getETKeyColumn

public final MdmViewColumn getETKeyColumn()
Gets the key column of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
Returns:
An MdmViewColumn that represents the key column of the ET view.

getETLocalValueColumn

public final MdmViewColumn getETLocalValueColumn()
Gets the local value column of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
Returns:
An MdmViewColumn that represents the local value column of the ET view.

getETLevelNameColumn

public final MdmViewColumn getETLevelNameColumn()
Gets the level name column of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
Returns:
An MdmViewColumn that represents the level name column of the ET view.

getETDimensionOrderColumn

public final MdmViewColumn getETDimensionOrderColumn()
Gets the dimension order column of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
Returns:
An MdmViewColumn that represents the dimension order column of the ET view.

getETHierarchyOrderColumn

public final MdmViewColumn getETHierarchyOrderColumn()
Gets the hierarchy order column of the ET (Embedded Totals) materialized view that is associated with the MdmPrimaryDimension.
Returns:
An MdmViewColumn that represents the hierarchy order column of the ET view.

getQuery

public final Query getQuery()
Gets the Query that is associated with the MdmPrimaryDimension.
Specified by:
getQuery in interface MdmQuery
Returns:
The Query associated with the MdmPrimaryDimension.

getQueryColumns

public final java.util.List<MdmQueryColumn> getQueryColumns()
Gets the MdmQueryColumn objects that are associated with this MdmPrimaryDimension.
Specified by:
getQueryColumns in interface MdmQuery
Returns:
A List of the MdmQueryColumn objects associated with this MdmPrimaryDimension.

getQueryName

public final java.lang.String getQueryName()
Gets the identifier of this MdmPrimaryDimension.
Specified by:
getQueryName in interface MdmQuery
Returns:
A String that contains the identifier of this MdmPrimaryDimension.

getQueryColumn

public MdmQueryColumn getQueryColumn(java.lang.String name)
Gets the specified MdmQueryColumn.
Specified by:
getQueryColumn in interface MdmQuery
Parameters:
name - A String that contains the name of an MdmQueryColumn.
Returns:
The MdmQueryColumn that has the specified name.

getType

public MetadataObject getType()
Gets the OLAP Java API String data type. An MdmPrimaryDimension has String values.
Specified by:
getType in class MdmSource
Returns:
A MetadataObject that represents the OLAP Java API String data type.

findOrCreateLevelHierarchy

public MdmLevelHierarchy findOrCreateLevelHierarchy(java.lang.String publicName)
Gets the specified MdmLevelHierarchy or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
Parameters:
publicName - A String that contains the name of the MdmLevelHierarchy to get or create.
Returns:
The specified MdmLevelHierarchy or a new one with the specified name.

findOrCreateValueHierarchy

public MdmValueHierarchy findOrCreateValueHierarchy(java.lang.String publicName)
Gets the specified MdmValueHierarchy or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
Parameters:
publicName - A String that contains the name of the MdmValueHierarchy to get or create.
Returns:
The specified MdmValueHierarchy or a new one with the specified name.

findOrCreateDimensionLevel

public MdmDimensionLevel findOrCreateDimensionLevel(java.lang.String publicName)
Gets the specified MdmDimensionLevel or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
Parameters:
publicName - A String that contains the name of the MdmDimensionLevel to get or create.
Returns:
The specified MdmDimensionLevel or a new one with the specified name.

findOrCreateMultiValuedDerivedAttribute

public MdmMultiValuedDerivedAttribute findOrCreateMultiValuedDerivedAttribute(java.lang.String publicName)
Gets the specified MdmMultiValuedDerivedAttribute or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
Parameters:
publicName - A String that contains the name of the MdmMultiValuedDerivedAttribute to get or create.
Returns:
The specified MdmMultiValuedDerivedAttribute or a new one with the specified name.

findOrCreateDerivedAttribute

public MdmDerivedAttribute findOrCreateDerivedAttribute(java.lang.String publicName)
Gets the specified MdmDerivedAttribute or, if it does not already exist, creates a new one for the MdmPrimaryDimension. The public name of the MdmDerivedAttribute is the String returned by the getName method of the MdmDerivedAttribute.
Parameters:
publicName - A String that contains the name of the MdmDerivedAttribute to get or create.
Returns:
The specified MdmDerivedAttribute or a new one with the specified name.

findOrCreateDimCalcModel

public MdmDimensionCalculationModel findOrCreateDimCalcModel(java.lang.String publicName)
Gets the specified MdmDimensionCalculationModel or, if it does not already exist, creates a new one for the MdmPrimaryDimension.
Parameters:
publicName - A String that contains the name of the MdmDimensionCalculationModel to get or create.
Returns:
The specified MdmDimensionCalculationModel or a new one with the specified name.

findOrCreateBaseAttribute

public MdmBaseAttribute findOrCreateBaseAttribute(java.lang.String publicName)
Gets the specified MdmBaseAttribute or, if it does not already exist, creates a new one for the MdmPrimaryDimension. The public name of the MdmBaseAttribute is the String returned by the getName method of the MdmBaseAttribute. An application specifies the role of an MdmBaseAttribute with methods like setValueDescriptionAttribute.
Parameters:
publicName - A String that contains the name of the MdmBaseAttribute to get or create.
Returns:
The specified MdmBaseAttribute or a new one with the specified name.

findOrCreateMemberListMap

public MemberListMap findOrCreateMemberListMap()
Gets the MemberListMap for the MdmPrimaryDimension or, if one does not already exist, creates a new one.
Specified by:
findOrCreateMemberListMap in interface MdmMemberListMapOwner
Returns:
The MemberListMap for the MdmPrimaryDimension.

getPersistentLanguages

public java.util.List getPersistentLanguages()
Returns the list of all languages used for descriptions of this MdmPrimaryDimension and all objects owned by this MdmPrimaryDimension. The returned list also includes languages for AttributeMap objects contained within any DimensionMap objects owned directly or indirectly by this MdmPrimaryDimension.
Returns:
List of Strings representing NLS Languages.

getMdmCustomMembers

public final java.util.List getMdmCustomMembers()
Gets the MdmCustomMember objects that are associated with the MdmPrimaryDimension.
Returns:
A List of the MdmCustomMember objects that are associated with the MdmPrimaryDimension.

findOrCreateMdmCustomMember

public MdmCustomMember findOrCreateMdmCustomMember(java.lang.String memberName)
Gets the specified MdmCustomMember of the dimension or, if the custom member does not already exist, creates a new one.
Parameters:
memberName - A String that contains the name of and existing custom member or a name for the new custom member.
Returns:
The new or existing MdmCustomMember.

removeMdmCustomMember

public final void removeMdmCustomMember(MdmCustomMember member)
Removes an MdmCustomMember from the MdmPrimaryDimension.
Parameters:
member - The MdmCustomMember to remove from the MdmPrimaryDimension.

Skip navigation links

Copyright © 2002, 2007, Oracle. All rights reserved.