Skip navigation links

Oracle® OLAP Java API Reference
11g Release 1 (11.1)

B28128-01


oracle.olapi.syntax
Class HierarchicalCondition

java.lang.Object
  extended by oracle.olapi.syntax.SyntaxObject
      extended by oracle.olapi.syntax.DataObject
          extended by oracle.olapi.syntax.Expression
              extended by oracle.olapi.syntax.Condition
                  extended by oracle.olapi.syntax.HierarchicalCondition

All Implemented Interfaces:
FunctionArgument

public final class HierarchicalCondition
extends Condition

A Condition that tests whether a member of a hierarchy has the specified hierarchical relationship to another member of the hierarchy.


Field Summary
static java.lang.String ANCESTOR
          A constant that indicates an ancestor relationship.
static java.lang.String CHILD
          A constant that indicates a child relationship.
static java.lang.String DESCENDANT
          A constant that indicates a descendant relationship.
static java.lang.String LEAF_DESCENDANT
          A constant that indicates a lowest-level descendant relationship.
static java.lang.String PARENT
          A constant that indicates a parent relationship.
static java.lang.String RELATIVE
          A constant that indicates a relative relationship.
static java.lang.String ROOT_ANCESTOR
          A constant that indicates a top-level ancestor relationship.

 

Constructor Summary
HierarchicalCondition(TypedExpression baseExpression, java.lang.String relationship, TypedExpression referenceExpression, MdmHierarchy hierarchy)
          Creates a HierarchicalCondition that evaluates to true if the baseExpression member of the hierarchy has the specified relationship to the referenceExpression member.
HierarchicalCondition(TypedExpression baseExpression, java.lang.String relationship, TypedExpression referenceExpression, MdmHierarchy hierarchy, boolean negate)
          Creates a HierarchicalCondition that evaluates to true if the baseExpression member of the hierarchy has the specified relationship to the referenceExpression member.
HierarchicalCondition(TypedExpression baseExpression, java.lang.String relationship, TypedExpression referenceExpression, MdmHierarchy hierarchy, boolean negate, boolean includeSelf)
          Creates a HierarchicalCondition that evaluates to true if the baseExpression member of the hierarchy has the specified relationship to the referenceExpression member.

 

Method Summary
 TypedExpression getBaseExpression()
          Gets the TypedExpression that has the value that is the base of the condition.
 MdmHierarchy getHierarchy()
           
 TypedExpression getReferenceExpression()
           
 java.lang.String getRelationship()
           
 boolean includeSelf()
           
 boolean isNegated()
           
 java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
          Calls the visitHierarchicalCondition method of the SyntaxObjectVisitor and passes that method this HierarchicalCondition and an Object.

 

Methods inherited from class oracle.olapi.syntax.Condition
and, isCompositeObject, not, or

 

Methods inherited from class oracle.olapi.syntax.Expression
getSource

 

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

 

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

 

Field Detail

PARENT

public static final java.lang.String PARENT
A constant that indicates a parent relationship.
See Also:
Constant Field Values

CHILD

public static final java.lang.String CHILD
A constant that indicates a child relationship.
See Also:
Constant Field Values

ANCESTOR

public static final java.lang.String ANCESTOR
A constant that indicates an ancestor relationship.
See Also:
Constant Field Values

ROOT_ANCESTOR

public static final java.lang.String ROOT_ANCESTOR
A constant that indicates a top-level ancestor relationship.
See Also:
Constant Field Values

DESCENDANT

public static final java.lang.String DESCENDANT
A constant that indicates a descendant relationship.
See Also:
Constant Field Values

LEAF_DESCENDANT

public static final java.lang.String LEAF_DESCENDANT
A constant that indicates a lowest-level descendant relationship.
See Also:
Constant Field Values

RELATIVE

public static final java.lang.String RELATIVE
A constant that indicates a relative relationship.
See Also:
Constant Field Values

Constructor Detail

HierarchicalCondition

public HierarchicalCondition(TypedExpression baseExpression,
                             java.lang.String relationship,
                             TypedExpression referenceExpression,
                             MdmHierarchy hierarchy,
                             boolean negate,
                             boolean includeSelf)
Creates a HierarchicalCondition that evaluates to true if the baseExpression member of the hierarchy has the specified relationship to the referenceExpression member. If the negate parameter is true, then the condition evaluates to true if the base member does not have the specified relationship with the reference member.
Parameters:
baseExpression - A TypedExpression that evaluates to a member of a dimension hierarchy.
relationship - The value of one of the constants of this class that indicates the relationship to test.
referenceExpression - A TypedExpression that evaluates to another member of the dimension hierarchy.
hierarchy - The MdmHierarchy that contains the members of the hierarchy.
negate - A boolean that if true causes the HierarchicalCondition to evaluate to true if the base member does not have the specified relationship to the referenced member; if this parameter is false, then the condition evaluates to true if the base member does have the specified relationship to the referenced member.

HierarchicalCondition

public HierarchicalCondition(TypedExpression baseExpression,
                             java.lang.String relationship,
                             TypedExpression referenceExpression,
                             MdmHierarchy hierarchy,
                             boolean negate)
Creates a HierarchicalCondition that evaluates to true if the baseExpression member of the hierarchy has the specified relationship to the referenceExpression member.
Parameters:
baseExpression - A TypedExpression that evaluates to a member of a dimension hierarchy.
relationship - The value of one of the constants of this class that indicates the relationship to test.
referenceExpression - A TypedExpression that evaluates to another member of the dimension hierarchy.
hierarchy - The MdmHierarchy that contains the members of the hierarchy.

HierarchicalCondition

public HierarchicalCondition(TypedExpression baseExpression,
                             java.lang.String relationship,
                             TypedExpression referenceExpression,
                             MdmHierarchy hierarchy)
Creates a HierarchicalCondition that evaluates to true if the baseExpression member of the hierarchy has the specified relationship to the referenceExpression member.
Parameters:
baseExpression - A TypedExpression that evaluates to a member of a dimension hierarchy.
relationship - The value of one of the constants of this class that indicates the relationship to test.
referenceExpression - A TypedExpression that evaluates to another member of the dimension hierarchy.
hierarchy - The MdmHierarchy that contains the members of the hierarchy.

Method Detail

visit

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

getBaseExpression

public TypedExpression getBaseExpression()
Gets the TypedExpression that has the value that is the base of the condition.
Returns:
A TypedExpression that has the value to compare to the start and end values.

getReferenceExpression

public TypedExpression getReferenceExpression()

getHierarchy

public MdmHierarchy getHierarchy()

getRelationship

public java.lang.String getRelationship()

isNegated

public boolean isNegated()

includeSelf

public boolean includeSelf()

Skip navigation links

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