Skip navigation links

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

B28128-01


oracle.olapi.metadata.mdm
Class MdmDimensionLevel

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.MdmSubDimension
                      extended by oracle.olapi.metadata.mdm.MdmDimensionLevel

All Implemented Interfaces:
MdmMemberListMapOwner, MdmViewColumnOwner, MetadataObject

public class MdmDimensionLevel
extends MdmSubDimension
implements MdmMemberListMapOwner, MdmViewColumnOwner

A component of an MdmPrimaryDimension that represents an arbitrary subset of members of the dimension. Any dimension member can be in at most one MdmDimensionLevel. An application creates an MdmDimensionLevel with the findOrCreateDimensionLevel method of an MdmPrimaryDimension. The members of an MdmDimensionLevel are specified by an associated MemberListMap.

An MdmDimensionLevel can be associated with zero, one, or more MdmHierarchyLevel objects. An MdmHierarchyLevel is associated with only one MdmDimensionLevel. The members of an MdmHierarchyLevel are a subset of the members of the MdmDimensionLevel. A member of an MdmDimensionLevel need not be a member of any MdmHierarchyLevel. Therefore, an MdmDimensionLevel can contain more members than an associated MdmHierarchyLevel.


Field Summary
static java.lang.String LEVEL_TYPE_DAY
          A constant that specifies a level type of DAY.
static java.lang.String LEVEL_TYPE_HALFYEAR
          A constant that specifies a level type of HALFYEAR.
static java.lang.String LEVEL_TYPE_HOUR
          A constant that specifies a level type of HOUR.
static java.lang.String LEVEL_TYPE_MINUTE
          A constant that specifies a level type of MINUTE.
static java.lang.String LEVEL_TYPE_MONTH
          A constant that specifies a level type of MONTH.
static java.lang.String LEVEL_TYPE_QUARTER
          A constant that specifies a level type of QUARTER.
static java.lang.String LEVEL_TYPE_SECOND
          A constant that specifies a level type of SECOND.
static java.lang.String LEVEL_TYPE_STANDARD
          A constant that specifies a level type of STANDARD.
static java.lang.String LEVEL_TYPE_WEEK
          A constant that specifies a level type of WEEK.
static java.lang.String LEVEL_TYPE_YEAR
          A constant that specifies a level type of YEAR.

 

Method Summary
 java.lang.Object acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context)
          Calls the visitMdmDimensionLevel method of the specified MdmObjectVisitor and passes that method this MdmDimensionLevel and the specified context object.
 void addUniqueKeyAttribute(MdmBaseAttribute attr)
          Adds a unique key attribute to the list of them that are associated with this MdmDimensionLevel.
 MemberListMap findOrCreateMemberListMap()
          Gets the MemberListMap that is associated with this MdmDimensionLevel or creates a new MemberListMap if one does not already exist.
 MdmViewColumn getETViewLevelKeyColumn()
          Gets the MdmViewColumn that represents the key column of the embedded totals view associated with the MdmDimensionLevel.
 MdmViewColumn getETViewLocalValueColumn()
          Gets the MdmViewColumn that represents the local value column of the embedded totals view associated with the MdmDimensionLevel.
 java.lang.String getLevelType()
          Gets the type of information that this MdmDimensionLevel represents.
 MemberListMap getMemberListMap()
          Gets the MemberListMap associated with the MdmDimensionLevel.
 MdmPrimaryDimension getPrimaryDimension()
          Gets the MdmPrimaryDimension of which this MdmSubDimension is a component.
 java.util.List<MdmBaseAttribute> getUniqueKeyAttributes()
          Gets a list of the unique key attributes that are associated with this MdmDimensionLevel.
 void removeUniqueKeyAttribute(MdmBaseAttribute attr)
          Removes a unique key attribute from the list of them that are associated with this MdmDimensionLevel.
 void setLevelType(java.lang.String levelType)
          Specifies the type of information that this MdmDimensionLevel represents.
 void setMemberListMap(MemberListMap map)
          Specifies the MemberListMap to associate with the MdmDimensionLevel.

 

Methods inherited from class oracle.olapi.metadata.mdm.MdmSubDimension
addAttribute, getAttributes, removeAttribute

 

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, getType, setModel

 

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

 

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

 

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

 

Field Detail

LEVEL_TYPE_STANDARD

public static final java.lang.String LEVEL_TYPE_STANDARD
A constant that specifies a level type of STANDARD.
See Also:
Constant Field Values

LEVEL_TYPE_YEAR

public static final java.lang.String LEVEL_TYPE_YEAR
A constant that specifies a level type of YEAR.
See Also:
Constant Field Values

LEVEL_TYPE_HALFYEAR

public static final java.lang.String LEVEL_TYPE_HALFYEAR
A constant that specifies a level type of HALFYEAR.
See Also:
Constant Field Values

LEVEL_TYPE_QUARTER

public static final java.lang.String LEVEL_TYPE_QUARTER
A constant that specifies a level type of QUARTER.
See Also:
Constant Field Values

LEVEL_TYPE_MONTH

public static final java.lang.String LEVEL_TYPE_MONTH
A constant that specifies a level type of MONTH.
See Also:
Constant Field Values

LEVEL_TYPE_WEEK

public static final java.lang.String LEVEL_TYPE_WEEK
A constant that specifies a level type of WEEK.
See Also:
Constant Field Values

LEVEL_TYPE_DAY

public static final java.lang.String LEVEL_TYPE_DAY
A constant that specifies a level type of DAY.
See Also:
Constant Field Values

LEVEL_TYPE_HOUR

public static final java.lang.String LEVEL_TYPE_HOUR
A constant that specifies a level type of HOUR.
See Also:
Constant Field Values

LEVEL_TYPE_MINUTE

public static final java.lang.String LEVEL_TYPE_MINUTE
A constant that specifies a level type of MINUTE.
See Also:
Constant Field Values

LEVEL_TYPE_SECOND

public static final java.lang.String LEVEL_TYPE_SECOND
A constant that specifies a level type of SECOND.
See Also:
Constant Field Values

Method Detail

acceptVisitor

public java.lang.Object acceptVisitor(MdmObjectVisitor visitor,
                                      java.lang.Object context)
Calls the visitMdmDimensionLevel method of the specified MdmObjectVisitor and passes that method this MdmDimensionLevel and the specified context object.
Specified by:
acceptVisitor in class MdmObject
Parameters:
visitor - An implementation of the Mdm11_ObjectVisitor interface.
context - An Object.
Returns:
The Object returned by the visitMdmDimensionLevel method.

getUniqueKeyAttributes

public final java.util.List<MdmBaseAttribute> getUniqueKeyAttributes()
Gets a list of the unique key attributes that are associated with this MdmDimensionLevel.
Returns:
A List of the unique key attributes associated with this MdmDimensionLevel.

addUniqueKeyAttribute

public final void addUniqueKeyAttribute(MdmBaseAttribute attr)
Adds a unique key attribute to the list of them that are associated with this MdmDimensionLevel.
Parameters:
attr - The MdmBaseAttribute to add to the List of unique key attributes of this MdmDimensionLevel.

removeUniqueKeyAttribute

public final void removeUniqueKeyAttribute(MdmBaseAttribute attr)
Removes a unique key attribute from the list of them that are associated with this MdmDimensionLevel.
Parameters:
attr - The MdmBaseAttribute to remove from the List of unique key attributes of this MdmDimensionLevel.

getLevelType

public java.lang.String getLevelType()
                              throws oracle.express.mdm.MetadataNotFoundException
Gets the type of information that this MdmDimensionLevel represents. For an MdmDimensionLevel associated with an MdmTimeDimension, the possible level type values are YEAR, HALFYEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, and SECOND. For an MdmDimensionLevel associated with any other subclass of MdmPrimaryDimension, the level type is STANDARD.
Returns:
A String indicating the type of information in the level.
Throws:
oracle.express.mdm.MetadataNotFoundException

setLevelType

public void setLevelType(java.lang.String levelType)
                  throws MdmInvalidValueException
Specifies the type of information that this MdmDimensionLevel represents. For an MdmTimeDimension, the possible levelType values are YEAR, HALFYEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, and SECOND. For an MdmStandardDimension or MdmMeasureDimension, the level type is STANDARD.
Parameters:
levelType - A String indicating the type of the information in this level.
Throws:
MdmInvalidValueException

getPrimaryDimension

public final MdmPrimaryDimension getPrimaryDimension()
Gets the MdmPrimaryDimension of which this MdmSubDimension is a component.
Specified by:
getPrimaryDimension in class MdmSubDimension
Returns:
The MdmPrimaryDimension for this MdmSubDimension.

getMemberListMap

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

setMemberListMap

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

getETViewLevelKeyColumn

public final MdmViewColumn getETViewLevelKeyColumn()
Gets the MdmViewColumn that represents the key column of the embedded totals view associated with the MdmDimensionLevel.
Returns:
An MdmViewColumn that represents the key column of the embedded totals view.

getETViewLocalValueColumn

public final MdmViewColumn getETViewLocalValueColumn()
Gets the MdmViewColumn that represents the local value column of the embedded totals view associated with the MdmDimensionLevel.
Returns:
An MdmViewColumn that represents the local value column of the embedded totals view.

findOrCreateMemberListMap

public MemberListMap findOrCreateMemberListMap()
Gets the MemberListMap that is associated with this MdmDimensionLevel or creates a new MemberListMap if one does not already exist.
Specified by:
findOrCreateMemberListMap in interface MdmMemberListMapOwner
Returns:
The MemberListMap associated with this MdmDimensionLevel.

Skip navigation links

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