|
Oracle® OLAP Java API Reference 11g Release 1 (11.1) B28128-01 |
||||||||
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 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 |
---|
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 negate
parameter is true
, then the condition evaluates to true
if the base member does not have the specified relationship with the reference 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, boolean negate)
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.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 SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitHierarchicalCondition
method.public TypedExpression getBaseExpression()
TypedExpression
that has the value that is the base of the condition.TypedExpression
that has the value to compare to the start and end values.public TypedExpression getReferenceExpression()
public MdmHierarchy getHierarchy()
public java.lang.String getRelationship()
public boolean isNegated()
public boolean includeSelf()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |