|
Oracle® OLAP Java API Reference 12c Release 1 (12.1) E17708-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.olapi.syntax.SyntaxObject
oracle.olapi.syntax.DataObject
oracle.olapi.syntax.Expression
oracle.olapi.syntax.Condition
oracle.olapi.syntax.HierarchicalCondition
public final class HierarchicalCondition
A Condition that tests whether a member of a hierarchy has the specified hierarchical relationship to itself or to another member of the hierarchy.
| Field Summary | |
|---|---|
static java.lang.String |
ANCESTORA constant that indicates an ancestor relationship. |
static java.lang.String |
CHILDA constant that indicates a child relationship. |
static java.lang.String |
DESCENDANTA constant that indicates a descendant relationship. |
static java.lang.String |
LEAF_DESCENDANTA constant that indicates a lowest-level descendant relationship. |
static java.lang.String |
PARENTA constant that indicates a parent relationship. |
static java.lang.String |
RELATIVEA constant that indicates a relative relationship. |
static java.lang.String |
ROOT_ANCESTORA 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 evaluates to the member of the hierarchy that is the base of the condition test. |
MdmHierarchy |
getHierarchy()Gets the MdmHierarchy that contains the base and referenced members to test for the relationship. |
java.lang.String |
getHierarchyID()Gets the ID of the MdmHierarchy that contains the base and referenced members to test for the hierarchical relationship. |
TypedExpression |
getReferenceExpression()Gets the TypedExpression that evaluates to the member of the hierarchy that is the reference of the condition test. |
java.lang.String |
getRelationship()Gets the hieararchical relationship for which this HierarchicalCondition tests. |
boolean |
includeSelf()Indicates whether or not the base member is included in the members that have the specified relationship. |
boolean |
isNegated()Indicates whether this HierarchicalCondition tests for the negation of hierarchical relationship. |
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.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 |
| Field Detail |
|---|
public static final java.lang.String PARENT
public static final java.lang.String CHILD
public static final java.lang.String ANCESTOR
public static final java.lang.String ROOT_ANCESTOR
public static final java.lang.String DESCENDANT
public static final java.lang.String LEAF_DESCENDANT
public static final java.lang.String RELATIVE
| Constructor Detail |
|---|
public HierarchicalCondition(TypedExpression baseExpression,
java.lang.String relationship,
TypedExpression referenceExpression,
MdmHierarchy hierarchy,
boolean negate,
boolean includeSelf)
HierarchicalCondition that evaluates to true if the baseExpression member of the hierarchy has the specified relationship to the referenceExpression member. If the includeSelf parameter is true, then the condition evaluates to true if the baseExpression member and the referenceExpression member are the same. If the negate parameter is true, then the condition evaluates to true if the baseExpression member does not have the specified relationship with the referenceExpression member.
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 a 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.includeSelf - A boolean that specifies whether or not to include the baseExpression member as a referenceExpression member that has the specified relationship.
public HierarchicalCondition(TypedExpression baseExpression,
java.lang.String relationship,
TypedExpression referenceExpression,
MdmHierarchy hierarchy,
boolean negate)
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 baseExpression member does not have the specified relationship with the referenceExpression member.
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.
public HierarchicalCondition(TypedExpression baseExpression,
java.lang.String relationship,
TypedExpression referenceExpression,
MdmHierarchy hierarchy)
HierarchicalCondition that evaluates to true if the baseExpression member of the hierarchy has the specified relationship to the referenceExpression member.
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 |
|---|
public java.lang.Object visit(SyntaxObjectVisitor visitor,
java.lang.Object context)
visitHierarchicalCondition method of the SyntaxObjectVisitor and passes that method this HierarchicalCondition and an Object.visit in class SyntaxObjectvisitor - A SyntaxObjectVisitor.context - An Object.Object returned by the visitHierarchicalCondition method.public TypedExpression getBaseExpression()
TypedExpression that evaluates to the member of the hierarchy that is the base of the condition test.TypedExpression that evaluates to the base of the condition.public TypedExpression getReferenceExpression()
TypedExpression that evaluates to the member of the hierarchy that is the reference of the condition test.TypedExpression that evaluates to the reference of the condition.public MdmHierarchy getHierarchy()
MdmHierarchy that contains the base and referenced members to test for the relationship.MdmHierarchy that contains the members to test.public java.lang.String getHierarchyID()
MdmHierarchy that contains the base and referenced members to test for the hierarchical relationship.String that contains the ID of the MdmHierarchy that contains the members to test.public java.lang.String getRelationship()
HierarchicalCondition tests. The relationships are represented by the constants of this class, such as PARENT and ANCESTOR.String that has the value of one of the constants of this class.public boolean isNegated()
HierarchicalCondition tests for the negation of hierarchical relationship. For example, if this method returns true, then the HierarchicalCondition evaluates to true if the base expression does not have the specified relationship to the reference expression.boolean that indicates whether this HierarchicalCondition tests for the negation of the condition.public boolean includeSelf()
boolean that is true if the condition includes the base member as a member that has the specified relationship or false if it excludes the base member.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||