Skip navigation links

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

B28128-03


oracle.olapi.metadata.mapping
Class DimensionMap

java.lang.Object
  extended by oracle.olapi.metadata.BaseMetadataObject
      extended by oracle.olapi.metadata.mapping.ObjectMap
          extended by oracle.olapi.metadata.mapping.DimensionMap

All Implemented Interfaces:
MetadataObject
Direct Known Subclasses:
HierarchyLevelMap, MemberListMap, SolvedHierarchyMap

public abstract class DimensionMap
extends ObjectMap

An ObjectMap that represents the mapping of an MdmDimension to an Expression and a Query. A DimensionMap can have one or more AttributeMap objects associated with it.


Method Summary
 void addAttributeMap(AttributeMap value)
          Adds an AttributeMap to the DimensionMap.
 AttributeMap findOrCreateAttributeMap(MdmBaseAttribute attribute)
          Gets the AttributeMap for the specified attribute or, if the map does not exist, creates an AttributeMap for the attribute.
 AttributeMap findOrCreateAttributeMap(MdmBaseAttribute attribute, java.lang.String language)
          Gets the AttributeMap for the specified attribute and language or, if the map does not exist, creates an AttributeMap for the attribute and language.
 java.util.List getAttributeMaps()
          Gets the AttributeMap objects that are owned by the DimensionMap.
 MdmDimension getDimension()
          Gets the MdmDimension associated with the DimensionMap.
 Expression getKeyExpression()
          Gets the Expression that identifies the primary key column of the relational table for the dimension members.
 Query getQuery()
          Gets the Query associated with the DimensionMap.
 void removeAttributeMap(AttributeMap value)
          Removes an AttributeMap from the DimensionMap.
 void setDimension(MdmDimension input)
          Specifies the MdmDimension to associate with the DimensionMap.
 void setKeyExpression(Expression input)
          Specifies the primary key column of the relational table for the dimension members.
 void setQuery(Query query)
          Specifies a Query to associate with this DimensionMap.

 

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

 

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

 

Method Detail

setKeyExpression

public void setKeyExpression(Expression input)
Specifies the primary key column of the relational table for the dimension members.
Parameters:
input - An Expression that identifies the primary key column for the dimension members.

getKeyExpression

public Expression getKeyExpression()
Gets the Expression that identifies the primary key column of the relational table for the dimension members.
Returns:
An Expression that identifies the primary key column for the dimension members.

setDimension

public void setDimension(MdmDimension input)
Specifies the MdmDimension to associate with the DimensionMap.
Parameters:
input - The MdmDimension to associate with the DimensionMap.

getDimension

public MdmDimension getDimension()
Gets the MdmDimension associated with the DimensionMap.
Returns:
The MdmDimension associated with the DimensionMap.

setQuery

public void setQuery(Query query)
Specifies a Query to associate with this DimensionMap.
Parameters:
query - The Query to associate with this DimensionMap.

getQuery

public Query getQuery()
Gets the Query associated with the DimensionMap.
Returns:
The Query associated with the DimensionMap.

addAttributeMap

public void addAttributeMap(AttributeMap value)
Adds an AttributeMap to the DimensionMap.
Parameters:
value - The AttributeMap to add.

removeAttributeMap

public void removeAttributeMap(AttributeMap value)
Removes an AttributeMap from the DimensionMap.
Parameters:
value - The AttributeMap to remove.

getAttributeMaps

public java.util.List getAttributeMaps()
Gets the AttributeMap objects that are owned by the DimensionMap.
Returns:
A List that contains the AttributeMap objects owned by the DimensionMap.

findOrCreateAttributeMap

public AttributeMap findOrCreateAttributeMap(MdmBaseAttribute attribute)
Gets the AttributeMap for the specified attribute or, if the map does not exist, creates an AttributeMap for the attribute.
Parameters:
attribute - The MdmBaseAttribute for which to get an AttributeMap.
Returns:
An AttributeMap for the specified attribute.

findOrCreateAttributeMap

public AttributeMap findOrCreateAttributeMap(MdmBaseAttribute attribute,
                                             java.lang.String language)
Gets the AttributeMap for the specified attribute and language or, if the map does not exist, creates an AttributeMap for the attribute and language.
Parameters:
attribute - The MdmBaseAttribute for which to get an AttributeMap.
language - A String that specifies the language for the attribute.
Returns:
An AttributeMap for the specified attribute and language.

Skip navigation links

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