Skip navigation links

Oracle® OLAP Java API Reference
11g Release 2 (11.2)

E10794-05


oracle.olapi.syntax
Class AllocationCommand

java.lang.Object
  extended by oracle.olapi.syntax.SyntaxObject
      extended by oracle.olapi.syntax.BuildCommand
          extended by oracle.olapi.syntax.SimpleCommand
              extended by oracle.olapi.syntax.SolveStepCommand
                  extended by oracle.olapi.syntax.AllocationCommand


public final class AllocationCommand
extends SolveStepCommand

A SolveStepCommand that represents an allocation command in a BuildSpecification.


Constructor Summary
AllocationCommand(java.lang.String functionName, FunctionArgument[] args, MdmHierarchy hier)
          Creates an AllocationCommand that specifies the allocation of data to the measures of a cube for the specified dimension hierarchy.
AllocationCommand(java.lang.String functionName, java.util.List<FunctionArgument> args, MdmHierarchy hier)
          Creates an AllocationCommand that specifies the allocation of data to the measures of a cube for the specified dimension hierarchy.

 

Method Summary
 MdmHierarchy getHierarchy()
          Gets the hierarchy that is associated with this AllocationCommand.
 java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
          Calls the visitAllocationCommand method of the SyntaxObjectVisitor and passes that method this AllocationCommand and an Object.

 

Methods inherited from class oracle.olapi.syntax.SolveStepCommand
getArguments, getFunctionDescriptor, getFunctionName

 

Methods inherited from class oracle.olapi.syntax.SyntaxObject
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax

 

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

 

Constructor Detail

AllocationCommand

public AllocationCommand(java.lang.String functionName,
                         FunctionArgument[] args,
                         MdmHierarchy hier)
Creates an AllocationCommand that specifies the allocation of data to the measures of a cube for the specified dimension hierarchy.
Parameters:
functionName - A String that contains the name of the function to use for the allocation.
args - An array of FunctionArgument objects that specify aspects of the allocation.
hier - The MdmHierarchy that is the target of the allocation.

AllocationCommand

public AllocationCommand(java.lang.String functionName,
                         java.util.List<FunctionArgument> args,
                         MdmHierarchy hier)
Creates an AllocationCommand that specifies the allocation of data to the measures of a cube for the specified dimension hierarchy.
Parameters:
functionName - A String that contains the name of the function to use for the allocation.
args - A List of FunctionArgument objects that specify aspects of the allocation.
hier - The MdmHierarchy that is the target of the allocation.

Method Detail

visit

public java.lang.Object visit(SyntaxObjectVisitor visitor,
                              java.lang.Object context)
Calls the visitAllocationCommand method of the SyntaxObjectVisitor and passes that method this AllocationCommand and an Object.
Specified by:
visit in class SyntaxObject
Parameters:
visitor - A SyntaxObjectVisitor.
context - An Object.
Returns:
The Object returned by the visitAllocationCommand method.

getHierarchy

public MdmHierarchy getHierarchy()
Gets the hierarchy that is associated with this AllocationCommand.
Returns:
The MdmHierarchy of this AllocationCommand.

Skip navigation links

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