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

B14351-01

oracle.AWXML
Class CubeDimensionSourceExpression

java.lang.Object
  |
  +--oracle.AWXML.BaseObject
        |
        +--oracle.AWXML.ExternalSourceExpression
              |
              +--oracle.AWXML.RestrictedSourceExpression
                    |
                    +--oracle.AWXML.CubeDimensionSourceExpression

public class CubeDimensionSourceExpression
extends RestrictedSourceExpression

The column mapping for a dimension reference in a cube. The mapping specifies the foreign key columns in a fact table that reference the dimension.

A CubeDimensionSourceExpression belongs to a CubeMapGroup.

If the dimension has levels, some or all of them can be mapped in the CubeDimensionSourceExpression.

The rows in the source columns can be limited by a SQL WHERE clause specified in a RestrictedSourceExpression.

See Also:
MappingGroup

Fields inherited from class oracle.AWXML.BaseObject
DATABASENULL

Constructor Summary
CubeDimensionSourceExpression(BaseObject input)
Creates a CubeDimensionSourceExpression for the specified CubeMapGroup.

Method Summary
void addLevel(Level input)
Adds the specified Level to the CubeDimensionSourceExpression.
java.lang.String Alter(AWConnection connection)
Alters the class attributes of the CubeDimensionSourceExpression in the current analytic workspace of the specified database connection.
java.lang.String Create(AWConnection connection)
Creates the CubeDimensionSourceExpression in the current analytic workspace of the specified database connection.
java.lang.String Delete(AWConnection connection)
Deletes the CubeDimensionSourceExpression in the current analytic workspace of the specified database connection.
Dimension getDimension()
Returns the mapped Dimension in the CubeDimensionSourceExpression.
java.util.Vector getLevels()
Returns the mapped levels in the CubeDimensionSourceExpression.
void setDimension(Dimension input)
Sets the mapping target to the specified Dimension.
java.lang.String WriteToXML()
Returns the CubeDimensionSourceExpression as an XML string.

Methods inherited from class oracle.AWXML.RestrictedSourceExpression
createRestriction, getRestriction, getWhereClause, setRestriction, setWhereClause

Methods inherited from class oracle.AWXML.ExternalSourceExpression
addSourceColumn, CreateSourceColumn, getSourceColumns, getTargetObject, removeSourceColumn, setTargetObject

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

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

Constructor Detail

CubeDimensionSourceExpression

public CubeDimensionSourceExpression(BaseObject input)
Creates a CubeDimensionSourceExpression for the specified CubeMapGroup.
Parameters:
input - The CubeMapGroup that owns the new CubeDimensionSourceExpression.

Method Detail

WriteToXML

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

addLevel

public void addLevel(Level input)
Adds the specified Level to the CubeDimensionSourceExpression.
Parameters:
input - The Level to add.

getLevels

public java.util.Vector getLevels()
Returns the mapped levels in the CubeDimensionSourceExpression.

If levels have not been specified, or mapping is to a dimension, returns NULL.

Returns:
A Vector of Level objects if levels have been mapped, otherwise NULL.

setDimension

public void setDimension(Dimension input)
Sets the mapping target to the specified Dimension.

The mapped dimension cannot have duplicate members. Use the setIsNativeKeyUnique method on the Dimension to specify that all members are unique.

Parameters:
input - The Dimension to map.

getDimension

public Dimension getDimension()
Returns the mapped Dimension in the CubeDimensionSourceExpression.
Returns:
The mapped Dimension.

Create

public java.lang.String Create(AWConnection connection)
Creates the CubeDimensionSourceExpression in the current analytic workspace of the specified database connection.
Overrides:
Create in class BaseObject
Parameters:
connection - The AWConnection that specifies the database connection.
Returns:
"success" if successful.

Alter

public java.lang.String Alter(AWConnection connection)
Alters the class attributes of the CubeDimensionSourceExpression in the current analytic workspace of the specified database connection.

You can use the Alter method to change the descriptive names associated with the CubeDimensionSourceExpression. For example, you can change the long and short descriptions and the plural name.

Overrides:
Alter in class BaseObject
Parameters:
connection - The AWConnection that specifies the database connection.
Returns:
"success" if successful.

Delete

public java.lang.String Delete(AWConnection connection)
Deletes the CubeDimensionSourceExpression in the current analytic workspace of the specified database connection.
Overrides:
Delete in class BaseObject
Parameters:
connection - The AWConnection that specifies the database connection.
Returns:
"success" if successful.

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

B14351-01

Copyright © 2003, 2005 Oracle. All rights reserved.