Oracle OLAP Analytic Workspace Java API Reference
10g Release 1 (10.1)

B12180-01

oracle.AWXML
Class CubeMapGroup

java.lang.Object
  |
  +--oracle.AWXML.BaseObject
        |
        +--oracle.AWXML.MappingGroup
              |
              +--oracle.AWXML.CubeMapGroup

public class CubeMapGroup
extends MappingGroup

Defines a set of mappings for a cube. The mappings specify the columns that contain the source data for the cubes's measures and the columns that contain values from the associated dimension keys.

You can specify a mapping for a cube as a whole, or you can map individual measures or specify the key relationships with individual dimensions.

Use the oracle.AWAction.BuildDatabase class to execute the mappings and load data into the dimension.

See Also:
oracle.AWXML.DimensionMapGroup

Field Summary
protected  java.util.Vector m_keyMaps
           
protected  java.util.Vector m_measureMaps
           

 

Fields inherited from class oracle.AWXML.BaseObject
AWNULL, DATABASENULL, m_commandResults, m_commandResultText, m_id, m_listResults, m_longName, m_name, m_owner, m_pluralName, m_schema, m_shortName, s_EndElementTag, s_EndEndTag, s_EndStartTag, s_EndTag, s_Indent, s_JAVA_LINEEND, s_NEWLINE, s_objectCounter, s_StartEndTag, s_StartStartTag

 

Constructor Summary
CubeMapGroup(BaseObject input)
          Constructor for a CubeMapGroup.

 

Method Summary
 void addCubeDimensionSourceExpression(CubeDimensionSourceExpression input)
          Adds a mapping for one of the cube's dimensions
 void addKeyMap(CubeDimensionSourceExpression input)
          Adds a key mapping for one of the cube's dimensions.
 void addMeasureMap(MeasureSourceExpression input)
          Adds a measure mapping to the CubeMapGroup.
 void addMeasureSourceExpression(MeasureSourceExpression input)
          Adds a workspace measure with its mapping information to the CubeMapGroup
 java.lang.String Create(AWConnection connection)
          Create this CubeMapGroup in the current analytic workspace.
 MeasureSourceExpression CreateAttributeMap()
          This method is current not used.
 CubeDimensionSourceExpression CreateKeyMap()
          Creates a key map for this CubeMapGroup
 java.util.Vector getKeyMaps()
          Returns the key maps defined this CubeMapGroup
 java.util.Vector getMeasureMaps()
          Returns the measure maps in this CubeMapGroup
 void removeKeyMap(CubeDimensionSourceExpression input)
          Removes a key mapping for one of the cube's dimensions.
 void removeMeasureMap(MeasureSourceExpression input)
          Removes a measure mapping from the CubeMapGroup
 java.lang.String WriteToXML()
          Returns the object as an XML string.

 

Methods inherited from class oracle.AWXML.MappingGroup
Delete

 

Methods inherited from class oracle.AWXML.BaseObject
Alter, CreateAfter, CreateBefore, CreateFirst, getId, getLongName, getName, getOwner, getParentId, getPluralName, getSchema, getShortName, setLongName, setName, setPluralName, setSchema, setShortName

 

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

 

Field Detail

m_keyMaps

protected java.util.Vector m_keyMaps

m_measureMaps

protected java.util.Vector m_measureMaps
Constructor Detail

CubeMapGroup

public CubeMapGroup(BaseObject input)
Constructor for a CubeMapGroup. Input can specify the mappings for a cube, a measure, or a key relationship between the cube and one of its dimensions.
Parameters:
input - A BaseObject that is a Cube, a Measure, or a a CubeDimensionSourceExpression
Method Detail

WriteToXML

public java.lang.String WriteToXML()
Returns the object as an XML string.
Overrides:
WriteToXML in class MappingGroup
Returns:
A String containing the XML that represents the object.

addMeasureMap

public void addMeasureMap(MeasureSourceExpression input)
Adds a measure mapping to the CubeMapGroup.
Parameters:
input - MeasureSourceExpression

removeMeasureMap

public void removeMeasureMap(MeasureSourceExpression input)
Removes a measure mapping from the CubeMapGroup
Parameters:
input - MeasureSourceExpression

addMeasureSourceExpression

public void addMeasureSourceExpression(MeasureSourceExpression input)
Adds a workspace measure with its mapping information to the CubeMapGroup
Parameters:
input - A MeasureSourceExpression

getMeasureMaps

public java.util.Vector getMeasureMaps()
Returns the measure maps in this CubeMapGroup
Returns:
Vector containing the measure maps

addKeyMap

public void addKeyMap(CubeDimensionSourceExpression input)
Adds a key mapping for one of the cube's dimensions.
Parameters:
input - A CubeDimensionSourceExpression

removeKeyMap

public void removeKeyMap(CubeDimensionSourceExpression input)
Removes a key mapping for one of the cube's dimensions.
Parameters:
input - A CubeDimensionSourceExpression

addCubeDimensionSourceExpression

public void addCubeDimensionSourceExpression(CubeDimensionSourceExpression input)
Adds a mapping for one of the cube's dimensions
Parameters:
input - A CubeDimensionSourceExpression

getKeyMaps

public java.util.Vector getKeyMaps()
Returns the key maps defined this CubeMapGroup
Returns:
A Vector containing the key maps

CreateKeyMap

public CubeDimensionSourceExpression CreateKeyMap()
Creates a key map for this CubeMapGroup
Returns:
A CubeDimensionSourceExpression

CreateAttributeMap

public MeasureSourceExpression CreateAttributeMap()
This method is current not used.

Create

public java.lang.String Create(AWConnection connection)
Create this CubeMapGroup in the current analytic workspace.
Overrides:
Create in class BaseObject
Parameters:
connection - An AWConnection through which the command will be processed.
Returns:
A String indicating if the call was successful. A successful invocation returns the value 'success'.

Oracle OLAP Analytic Workspace Java API Reference
10g Release 1 (10.1)

B12180-01

Copyright © 2003, Oracle. All Rights Reserved.