Skip navigation links

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

E10794-01


oracle.olapi.syntax
Class SymmetricCondition

java.lang.Object
  extended by oracle.olapi.syntax.SyntaxObject
      extended by oracle.olapi.syntax.SymmetricCondition


public final class SymmetricCondition
extends SyntaxObject

A SyntaxObject that specifies a collection of members of one or more dimensions. You use a SymmetricCondition as the parameter for the setPrecomputeCondition(SymmetricCondition cond) method of an AWCubeOrganization.

When you create a SymmetricCondition, you specify a collection of one or more SymmetricConditionElement objects. Each SymmetricConditionElement limits the selection of dimension members to all or none of the members of a dimension, or all of the members of one or more levels of the dimension. A SymmetricCondition is similar to a SQL WHERE clause.

For compatibility with the SymmetricCondition class in the 11.1 release of the Oracle OLAP Java API, you can also specify a collection of Condition objects when creating a SymmetricCondition. Each Condition is an Expression that specifies dimension members. For an 11.2 application, use a constructor that takes SymmetricConditionElement objects.


Constructor Summary
SymmetricCondition(java.util.List<MdmPrimaryDimension> dimensions, java.util.List<Condition> conditions)
          For compatibility with the 11.1 Oracle OLAP Java API, creates a SymmetricCondition with the specified dimensions and Condition objects.
SymmetricCondition(java.util.List<SymmetricConditionElement> elements)
          Creates a SymmetricCondition with the specified elements.
SymmetricCondition(MdmPrimaryDimension[] dimensions, Condition[] conditions)
          For compatibility with the 11.1 Oracle OLAP Java API, creates a SymmetricCondition with the specified dimensions and Condition objects.
SymmetricCondition(SymmetricConditionElement[] elements)
          Creates a SymmetricCondition with the specified elements.

 

Method Summary
 Condition[] getConditions()
          Gets the Condition objects that are associated with this SymmetricCondition.
 MdmPrimaryDimension[] getDimensions()
          Gets the MdmPrimaryDimension objects that are associated with this SymmetricCondition.
 SymmetricConditionElement[] getElements()
          Gets the SymmetricConditionElement objects that are associated with this SymmetricCondition.
 java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
          Calls the visitSymmetricCondition method of the SyntaxObjectVisitor and passes that method this SymmetricCondition and an Object.

 

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

SymmetricCondition

public SymmetricCondition(MdmPrimaryDimension[] dimensions,
                          Condition[] conditions)
For compatibility with the 11.1 Oracle OLAP Java API, creates a SymmetricCondition with the specified dimensions and Condition objects. Each dimension must have a corresponding Condition. The order of the Condition objects must match the order of the dimensions. Each Condition is an Expression that specifies all, some, or none of the members of a dimension.

For an 11.2 application, use a constructor that has a List or an array of SymmetricConditionElement objects as a parameter.

Parameters:
dimensions - An array of MdmPrimaryDimension objects.
conditions - An array of Condition objects. Each Condition evaluates to a selection of dimension members. The number of elements in this array must match the number of elements in the dimensions array. Each Condition element must specify members of the corresponding MdmPrimaryDimension element of the dimensions array.

SymmetricCondition

public SymmetricCondition(java.util.List<MdmPrimaryDimension> dimensions,
                          java.util.List<Condition> conditions)
For compatibility with the 11.1 Oracle OLAP Java API, creates a SymmetricCondition with the specified dimensions and Condition objects. Each dimension must have a corresponding Condition. The order of the Condition objects must match the order of the dimensions. Each Condition is an Expression that specifies all, some, or none of the members of a dimension.

For an 11.2 application, use a constructor that has a List or an array of SymmetricConditionElement objects as a parameter.

Parameters:
dimensions - A List of MdmPrimaryDimension objects.
conditions - A List of Condition objects. Each Condition evaluates to a selection of dimension members. The number of elements in this list must match the number of elements in the dimensions list. Each Condition element must specify members of the corresponding MdmPrimaryDimension element of the dimensions list.

SymmetricCondition

public SymmetricCondition(SymmetricConditionElement[] elements)
Creates a SymmetricCondition with the specified elements. Each SymmetricConditionElement specifies an MdmPrimaryDimension and a selection of members of the dimension.
Parameters:
elements - An array of SymmetricConditionElement objects.

SymmetricCondition

public SymmetricCondition(java.util.List<SymmetricConditionElement> elements)
Creates a SymmetricCondition with the specified elements. Each SymmetricConditionElement specifies an MdmPrimaryDimension and a selection of members of the dimension.
Parameters:
elements - A List of SymmetricConditionElement objects.

Method Detail

getDimensions

public MdmPrimaryDimension[] getDimensions()
Gets the MdmPrimaryDimension objects that are associated with this SymmetricCondition.
Returns:
An array of the MdmPrimaryDimension objects of this SymmetricCondition.

getConditions

public Condition[] getConditions()
Gets the Condition objects that are associated with this SymmetricCondition.
Returns:
An array of the Condition objects of this SymmetricCondition. If there is no Condition corresponding to an associated MdmPrimaryDimension, then returns null for that array element.

getElements

public SymmetricConditionElement[] getElements()
Gets the SymmetricConditionElement objects that are associated with this SymmetricCondition.
Returns:
An array of the SymmetricConditionElement objects of this SymmetricCondition.

visit

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

Skip navigation links

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