Skip navigation links

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

B28128-03


oracle.olapi.syntax
Class ListComparisonCondition

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.ComparisonCondition
                      extended by oracle.olapi.syntax.ListComparisonCondition

All Implemented Interfaces:
FunctionArgument

public final class ListComparisonCondition
extends ComparisonCondition

A ComparisonCondition that represents a group comparison condition, which compares one expression to a list of expressions. The operator for a ListComparisonCondition is any of the ComparisonCondition constants. That operator is qualified by one of the ListComparisonCondition constants, ALL, ANY, or SOME.

A ListComparisonCondition with the ANY or SOME qualifier evaluates to true if the value of the left-hand-side expression matches the value of one or more expressions in the right-hand-side list of expressions. A ListComparisonCondition with the ALL qualifier evaluates to true if the value of the left-hand-side expression matches the values of all of the expressions in the list of expressions.


Field Summary
static java.lang.String ALL
          A constant for the ALL operator.
static java.lang.String ANY
          A constant for the ANY operator.
static java.lang.String SOME
          A constant for the SOME operator.

 

Fields inherited from class oracle.olapi.syntax.ComparisonCondition
EQ, GE, GT, LE, LT, NE, NE2, NE3

 

Constructor Summary
ListComparisonCondition(TypedExpression lhs, java.lang.String operator, java.lang.String qualifier, java.util.List<TypedExpression> list)
          Creates a new ListComparisonCondition that has the specified left-hand-side argument expression, operator, qualifier, and list of TypedExpression objects.
ListComparisonCondition(TypedExpression lhs, java.lang.String operator, java.lang.String qualifier, TypedExpression[] list)
          Creates a new ListComparisonCondition that has the specified left-hand-side argument expression, operator, qualifier, and list of TypedExpression objects.
ListComparisonCondition(TypedExpression lhs, java.lang.String operator, TypedExpression[] list)
          Creates a new ListComparisonCondition that has the specified left-hand-side argument expression, operator, and list of TypedExpression objects, and has the ANY qualifier.
ListComparisonCondition(TypedExpression lhs, TypedExpression[] list)
          Creates a new ListComparisonCondition that has the specified left-hand-side argument expression and list of TypedExpression objects, and has the EQ operator and the ANY qualifier.

 

Method Summary
 TypedExpression[] getList()
          Gets the list of expressions of this ListComprisonCondition that the operation compares to the left-hand-side argument expression.
 java.lang.String getQualifier()
          Gets the qualifier of this ListComprisonCondition, which can be ALL, ANY, or SOME.
 java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
          Calls the visitListComparisonCondition method of the SyntaxObjectVisitor and passes that method this ListComparisonCondition and an Object.

 

Methods inherited from class oracle.olapi.syntax.ComparisonCondition
getLhsArgument, getOperator

 

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

 

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

 

Field Detail

ALL

public static final java.lang.String ALL
A constant for the ALL operator.
See Also:
Constant Field Values

SOME

public static final java.lang.String SOME
A constant for the SOME operator.
See Also:
Constant Field Values

ANY

public static final java.lang.String ANY
A constant for the ANY operator.
See Also:
Constant Field Values

Constructor Detail

ListComparisonCondition

public ListComparisonCondition(TypedExpression lhs,
                               java.lang.String operator,
                               java.lang.String qualifier,
                               TypedExpression[] list)
Creates a new ListComparisonCondition that has the specified left-hand-side argument expression, operator, qualifier, and list of TypedExpression objects.
Parameters:
lhs - The TypedExpression to use as the left-hand-side argument.
operator - The operator to use, which can be any of the ComparisonCondition constants.
qualifier - One of the ListComparisonCondition constants ALL, ANY, or SOME.
list - An array of TypedExpression objects.

ListComparisonCondition

public ListComparisonCondition(TypedExpression lhs,
                               java.lang.String operator,
                               java.lang.String qualifier,
                               java.util.List<TypedExpression> list)
Creates a new ListComparisonCondition that has the specified left-hand-side argument expression, operator, qualifier, and list of TypedExpression objects.
Parameters:
lhs - The TypedExpression to use as the left-hand-side argument.
operator - The operator to use, which can be any of the ComparisonCondition constants.
qualifier - One of the ListComparisonCondition constants ALL, ANY, or SOME.
list - A List of TypedExpression objects.

ListComparisonCondition

public ListComparisonCondition(TypedExpression lhs,
                               java.lang.String operator,
                               TypedExpression[] list)
Creates a new ListComparisonCondition that has the specified left-hand-side argument expression, operator, and list of TypedExpression objects, and has the ANY qualifier.
Parameters:
lhs - The TypedExpression to use as the left-hand-side argument.
operator - The operator to use, which can be any of the ComparisonCondition constants.
list - An array of TypedExpression objects.

ListComparisonCondition

public ListComparisonCondition(TypedExpression lhs,
                               TypedExpression[] list)
Creates a new ListComparisonCondition that has the specified left-hand-side argument expression and list of TypedExpression objects, and has the EQ operator and the ANY qualifier.
Parameters:
lhs - The TypedExpression to use as the left-hand-side argument.
list - An array of TypedExpression objects.

Method Detail

visit

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

getList

public TypedExpression[] getList()
Gets the list of expressions of this ListComprisonCondition that the operation compares to the left-hand-side argument expression.
Returns:
An array of TypedExpression objects.

getQualifier

public java.lang.String getQualifier()
Gets the qualifier of this ListComprisonCondition, which can be ALL, ANY, or SOME.
Returns:
A String that contains the qualifier of this ListComprisonCondition.

Skip navigation links

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