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

B14351-01

oracle.AWXML
Class AttributeSourceExpression

java.lang.Object
  |
  +--oracle.AWXML.BaseObject
        |
        +--oracle.AWXML.ExternalSourceExpression
              |
              +--oracle.AWXML.AttributeSourceExpression

public class AttributeSourceExpression
extends ExternalSourceExpression

Specifies the mapping of an Attribute to a column in a relational database. An AttributeSourceExpression is an attribute mapping for a DimensionMapGroup.


Fields inherited from class oracle.AWXML.BaseObject
DATABASENULL

Constructor Summary
AttributeSourceExpression(BaseObject input)
Creates an AttributeSourceExpression that is owned by the specified BaseObject, which can be an Attribute or an AttributeProjection.
AttributeSourceExpression(BaseObject input, java.lang.String lang)
Creates an AttributeSourceExpression that is owned by the specified BaseObject and that is mapped to column values in the specified language.

Method Summary
java.lang.String Alter(AWConnection connection)
Alters an AttributeSourceExpression in the current analytic workspace.
java.lang.String Create(AWConnection connection)
Creates an AttributeSourceExpression in the current analytic workspace.
java.lang.String Delete(AWConnection connection)
Removes an AttributeSourceExpression from the current analytic workspace.
Hierarchy getHierarchy()
Gets the Hierarchy with which the AttributeProjection is associated.
java.lang.String getLanguage()
Gets the language of the column values to which the AttributeSourceExpression is mapped.
Level getLevel()
Gets the Level with which an AttributeProjection is associated.
void setLanguage(java.lang.String input)
Specifies the language of the column values to which the AttributeSourceExpression is mapped.
void setTargetObject(BaseObject input)
Specifies an Attribute or AttributeProjection as the target for a source column.
java.lang.String WriteToXML()
Gets an XML representation of the AttributeSourceExpression.

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

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

AttributeSourceExpression

public AttributeSourceExpression(BaseObject input)
Creates an AttributeSourceExpression that is owned by the specified BaseObject, which can be an Attribute or an AttributeProjection.
Parameters:
input - The BaseObject that is the owner of the AttributeSourceExpression.

AttributeSourceExpression

public AttributeSourceExpression(BaseObject input,
                                 java.lang.String lang)
Creates an AttributeSourceExpression that is owned by the specified BaseObject and that is mapped to column values in the specified language. The owner of the AttributeSourceExpression can be an Attribute or an AttributeProjection.
Parameters:
input - The BaseObject that is the owner of the AttributeSourceExpression.
lang - A String that identifies the language for the AttributeSourceExpression.

Method Detail

setTargetObject

public void setTargetObject(BaseObject input)
Specifies an Attribute or AttributeProjection as the target for a source column.
Overrides:
setTargetObject in class ExternalSourceExpression
Parameters:
input - The Attribute or AttributeProjection that you want to be the target for a source column.

getLevel

public Level getLevel()
Gets the Level with which an AttributeProjection is associated. If the AttributeProjection is associated with a Hierarchy or if the AttributeSourceExpression is associated with an Attribute for a Dimension, then this method returns null.
Returns:
The Level with which the AttributeProjection is associated or null if the AttributeProjection is not associated with a Level.

getHierarchy

public Hierarchy getHierarchy()
Gets the Hierarchy with which the AttributeProjection is associated. If the AttributeProjection is associated with a Level or if the AttributeSourceExpression is associated with an Attribute for a Dimension, then this method returns null.
Returns:
The Hierarchy with which the AttributeProjection is associated or null if the AttributeProjection is not associated with a Hierarchy.

WriteToXML

public java.lang.String WriteToXML()
Gets an XML representation of the AttributeSourceExpression.
Overrides:
WriteToXML in class ExternalSourceExpression
Returns:
A String that is an XML representation of the AttributeSourceExpression.

Alter

public java.lang.String Alter(AWConnection connection)
Alters an AttributeSourceExpression in the current analytic workspace.
Overrides:
Alter in class BaseObject
Parameters:
connection - The AWConnection that specifies the database connection.
Returns:
If successful, a String that contains success.

Create

public java.lang.String Create(AWConnection connection)
Creates an AttributeSourceExpression in the current analytic workspace.
Overrides:
Create in class BaseObject
Parameters:
connection - The AWConnection that specifies the database connection.
Returns:
If successful, a String that contains success.

Delete

public java.lang.String Delete(AWConnection connection)
Removes an AttributeSourceExpression from the current analytic workspace.
Overrides:
Delete in class BaseObject
Parameters:
connection - The AWConnection that specifies the database connection.
Returns:
If successful, a String that contains success.

getLanguage

public java.lang.String getLanguage()
Gets the language of the column values to which the AttributeSourceExpression is mapped.
Returns:
A String containing the language of the column values to which the AttributeSourceExpression is mapped.

setLanguage

public void setLanguage(java.lang.String input)
Specifies the language of the column values to which the AttributeSourceExpression is mapped.
Parameters:
input - A String identifying the language of the values to which the AttributeSourceExpression is mapped.

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

B14351-01

Copyright © 2003, 2005 Oracle. All rights reserved.