public final class SymmetricCondition extends SyntaxObject
SyntaxObject
that specifies a collection of the members 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 and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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 . |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax
public SymmetricCondition(MdmPrimaryDimension[] dimensions, Condition[] conditions)
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.
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.public SymmetricCondition(java.util.List<MdmPrimaryDimension> dimensions, java.util.List<Condition> conditions)
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.
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.public SymmetricCondition(SymmetricConditionElement[] elements)
SymmetricCondition
with the specified elements. Each SymmetricConditionElement
specifies an MdmPrimaryDimension
and a selection of members of the dimension.elements
- An array of SymmetricConditionElement
objects.public SymmetricCondition(java.util.List<SymmetricConditionElement> elements)
SymmetricCondition
with the specified elements. Each SymmetricConditionElement
specifies an MdmPrimaryDimension
and a selection of members of the dimension.elements
- A List
of SymmetricConditionElement
objects.public MdmPrimaryDimension[] getDimensions()
MdmPrimaryDimension
objects that are associated with this SymmetricCondition
.MdmPrimaryDimension
objects of this SymmetricCondition
.public Condition[] getConditions()
Condition
objects that are associated with this SymmetricCondition
.Condition
objects of this SymmetricCondition
. If there is no Condition
corresponding to an associated MdmPrimaryDimension
, then returns null for that array element.public SymmetricConditionElement[] getElements()
SymmetricConditionElement
objects that are associated with this SymmetricCondition
.SymmetricConditionElement
objects of this SymmetricCondition
.public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitSymmetricCondition
method of the SyntaxObjectVisitor
and passes that method this SymmetricCondition
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitSymmetricCondition
method.