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

B14351-01

oracle.AWXML
Class HierarchyLevelAssociation

java.lang.Object
  |
  +--oracle.AWXML.BaseObject
        |
        +--oracle.AWXML.AWObject
              |
              +--oracle.AWXML.HierarchyLevelAssociation

public class HierarchyLevelAssociation
extends AWObject
implements DerivedMeasureInput

An AWObject that associates a Level with a Hierarchy.

Level-based hierarchies have an ordered list of HierarchyLevelAssociation objects. The ordered list specifies the order of the levels in the hierarchy. The first level is the most aggregate. The last level is the least aggregate.

A HierarchyLevelAssociation is owned by a Hierarchy.

The HierarchyLevelAssociation class implements the DerivedMeasureInput interface, allowing a hierarchical level to be used as input to the calculations that define a derived measure.


Fields inherited from class oracle.AWXML.BaseObject
DATABASENULL

Constructor Summary
HierarchyLevelAssociation(BaseObject input)
Creates a HierarchyLevelAssociation for the specified Hierarchy.

Method Summary
java.lang.String Create(AWConnection connection)
Creates the HierarchyLevelAssociation at the end of the level list for the owning Hierarchy in the current analytic workspace of the specified database connection.
java.lang.String CreateAfter(AWConnection connection, BaseObject referencedObj)
Creates the HierarchyLevelAssociation after the referenced HierarchyLevelAssociation in the level list for the owning Hierarchy in the current analytic workspace of the specified database connection.
java.lang.String CreateBefore(AWConnection connection, BaseObject referencedObj)
Creates the HierarchyLevelAssociation before the referenced HierarchyLevelAssociation in the level list for the owning Hierarchy in the current analytic workspace of the specified database connection.
java.lang.String CreateFirst(AWConnection connection)
Creates the HierarchyLevelAssociation at the beginning of the level list for the owning Hierarchy in the current analytic workspace of the specified database connection.
java.lang.String Delete(AWConnection connection)
Deletes the HierarchyLevelAssociation in the current analytic workspace of the specified database connection.
AttributeProjection findAttributeProjection(Attribute input)
Returns the AttributeProjection that is owned by the specified Attribute.
Level getLevel()
Returns the Level in the HierarchyLevelAssociation.
void setLevel(Level input)
Sets the Level for the HierarchyLevelAssociation.
java.lang.String WriteToXML()
Returns the HierarchyLevelAssociation object as an XML string.

Methods inherited from class oracle.AWXML.AWObject
addAttribute, addAttributeProjection, addSourceCubeMapGroup, addSourceDimensionMapGroup, addSourceMappingGroup, createAttribute, createAttributeProjection, createSourceCubeMapGroup, createSourceDimensionMapGroup, getAttributes, getSourceMapGroup, removeAttribute, removeAttributeProjection, removeAttributeProjection, removeSourceMappingGroup

Methods inherited from class oracle.AWXML.BaseObject
Alter, 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

HierarchyLevelAssociation

public HierarchyLevelAssociation(BaseObject input)
Creates a HierarchyLevelAssociation for the specified Hierarchy.

Note: The object factories are a recommended way of creating objects. For example, use the createHierarchyLevelAssociation method on a Hierarchy object.

Parameters:
input - The Hierarchy that owns the HierarchyLevelAssociation.

Method Detail

WriteToXML

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

setLevel

public void setLevel(Level input)
Sets the Level for the HierarchyLevelAssociation.
Parameters:
input - The Level to associate with the owning Hierarchy.

getLevel

public Level getLevel()
Returns the Level in the HierarchyLevelAssociation.
Returns:
The Level.

Delete

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

Create

public java.lang.String Create(AWConnection connection)
Creates the HierarchyLevelAssociation at the end of the level list for the owning Hierarchy in the current analytic workspace of the specified database connection.
Overrides:
Create in class BaseObject
Parameters:
connection - The AWConnection that specifies the connection
Returns:
"success" if successful.

CreateFirst

public java.lang.String CreateFirst(AWConnection connection)
Creates the HierarchyLevelAssociation at the beginning of the level list for the owning Hierarchy in the current analytic workspace of the specified database connection.
Overrides:
CreateFirst in class BaseObject
Parameters:
connection - The AWConnection that specifies the connection
Returns:
"success" if successful.

CreateAfter

public java.lang.String CreateAfter(AWConnection connection,
                                    BaseObject referencedObj)
Creates the HierarchyLevelAssociation after the referenced HierarchyLevelAssociation in the level list for the owning Hierarchy in the current analytic workspace of the specified database connection.
Overrides:
CreateAfter in class BaseObject
Parameters:
connection - The AWConnection that specifies the connection
referencedObj - The referenced HierarchyLevelAssociation.
Returns:
"success" if successful.

CreateBefore

public java.lang.String CreateBefore(AWConnection connection,
                                     BaseObject referencedObj)
Creates the HierarchyLevelAssociation before the referenced HierarchyLevelAssociation in the level list for the owning Hierarchy in the current analytic workspace of the specified database connection.
Overrides:
CreateBefore in class BaseObject
Parameters:
connection - The AWConnection that specifies the connection
referencedObj - The referenced HierarchyLevelAssociation.
Returns:
"success" if successful.

findAttributeProjection

public AttributeProjection findAttributeProjection(Attribute input)
Returns the AttributeProjection that is owned by the specified Attribute.
Parameters:
input - An Attribute that applies to the owning dimension.
Returns:
The AttributeProjection that projects the Attribute to the HierarchyLevelAssociation.

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

B14351-01

Copyright © 2003, 2005 Oracle. All rights reserved.