Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-01

oracle.olapi.metadata.mtm
Class MtmLevelHierarchyMap

java.lang.Object
  |
  +--oracle.olapi.metadata.BaseMetadataObject
        |
        +--oracle.olapi.metadata.mtm.MtmObject
              |
              +--oracle.olapi.metadata.mtm.MtmSourceMap
                    |
                    +--oracle.olapi.metadata.mtm.MtmDimensionMap
                          |
                          +--oracle.olapi.metadata.mtm.MtmSubDimensionMap
                                |
                                +--oracle.olapi.metadata.mtm.MtmHierarchyMap
                                      |
                                      +--oracle.olapi.metadata.mtm.MtmLevelHierarchyMap
Direct Known Subclasses:
MtmSolvedLevelHierarchyMap, MtmUnsolvedLevelHierarchyMap

public abstract class MtmLevelHierarchyMap
extends MtmHierarchyMap

An MtmHierarchyMap for an MdmLevelHierarchy, which can be either solved or unsolved. A solved MdmLevelHierarchy is one for which a relational table or view contains measure values that Oracle OLAP has aggregated for all of the elements of the levels of the hierarchy. An unsolved MdmLevelHierarchy is one for which Oracle OLAP does not aggregate the values from the lower levels into the upper levels until a query requests the data.

A skip-level hierarchy has at least one lower-level element whose parent does not belong to the level immediately above the level that the element is in. Instead, the parent is in a higher level in the hierarchy.

An MdmLevelHierarchy can have up to 31 component MdmLevel objects.


Method Summary
void addOrderSpecification(MtmDimensionOrderSpecification orderSpec)
Adds the MtmDimensionOrderSpecification object to this MtmLevelHierarchyMap.
java.util.List getOrderSpecifications()
Gets the MtmDimensionOrderSpecification object or objects for this MtmLevelHierarchyMap.
MtmTabularSource getTable()
Gets the MtmTabularSource for the relational table that has the columns for this MtmLevelHierarchy.
boolean isSkipLevelHierarchy()
Indicates whether the MdmLevelHierarchy for this MtmLevelHierarchyMap represents a skip-level hierarchy.
void removeOrderSpecification(MtmDimensionOrderSpecification orderSpec)
Removes the MtmDimensionOrderSpecification object from this MtmLevelHierarchyMap.
void setSkipLevelHierarchy(boolean newSkipLevelHierarchy)
Specifies whether the MdmLevelHierarchy for this MtmLevelHierarchyMap represents a skip-level hierarchy.
void setTable(MtmTabularSource newTable)
Specifies the MtmTabularSource for the relational table that has the columns for this MtmLevelHierarchy.

Methods inherited from class oracle.olapi.metadata.mtm.MtmSourceMap
getMdmSource, setMdmSource

Methods inherited from class oracle.olapi.metadata.mtm.MtmObject
acceptVisitor

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

getOrderSpecifications

public java.util.List getOrderSpecifications()
Gets the MtmDimensionOrderSpecification object or objects for this MtmLevelHierarchyMap.
Returns:
A List of zero or more MtmDimensionOrderSpecification objects for this MtmLevelHierarchyMap.

addOrderSpecification

public void addOrderSpecification(MtmDimensionOrderSpecification orderSpec)
Adds the MtmDimensionOrderSpecification object to this MtmLevelHierarchyMap.
Parameters:
The - MtmDimensionOrderSpecification object that is to be added to this MtmLevelHierarchyMap.

removeOrderSpecification

public void removeOrderSpecification(MtmDimensionOrderSpecification orderSpec)
Removes the MtmDimensionOrderSpecification object from this MtmLevelHierarchyMap.
Parameters:
The - MtmDimensionOrderSpecification object that is to be removed from this MtmLevelHierarchyMap.

getTable

public MtmTabularSource getTable()
Gets the MtmTabularSource for the relational table that has the columns for this MtmLevelHierarchy.
Returns:
The MtmTabularSource for the relational table that has the columns for this MtmLevelHierarchy.

isSkipLevelHierarchy

public boolean isSkipLevelHierarchy()
Indicates whether the MdmLevelHierarchy for this MtmLevelHierarchyMap represents a skip-level hierarchy.
Returns:
true if the MdmLevelHierarchy is a skip-level hierarchy and false if it is not.

setSkipLevelHierarchy

public void setSkipLevelHierarchy(boolean newSkipLevelHierarchy)
Specifies whether the MdmLevelHierarchy for this MtmLevelHierarchyMap represents a skip-level hierarchy.
Parameters:
newSkipLevelHierarchy - A boolean value that indicates whether the MdmLevelHierarchy represents a skip-level hierarchy. Specify true for a skip-level hierarchy and false otherwise.

setTable

public void setTable(MtmTabularSource newTable)
Specifies the MtmTabularSource for the relational table that has the columns for this MtmLevelHierarchy.
Parameters:
newTable - The MtmTabularSource for the relational table that has the columns for this MtmLevelHierarchy.

Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-01

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