|
Oracle® OLAP Java API Reference 11g Release 2 (11.2) E10794-01 Beta Draft |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.olapi.syntax.SyntaxObject
oracle.olapi.syntax.DataObject
oracle.olapi.syntax.SearchedCase
public final class SearchedCase
A DataObject
that contains a WHEN
condition and a
THEN
expression for a
.
SearchedCaseExpression
Constructor Summary | |
---|---|
SearchedCase(Condition whenCondition,
TypedExpression thenExpression)
Creates a SearchedCase that has the specified WHEN
condition and THEN expression. |
Method Summary | |
---|---|
TypedExpression |
getThenExpression()
Gets the TypedExpression that resolves to the THEN
expression of this SearchedCase . |
Condition |
getWhenCondition()
Gets the Condition that resolves to the WHEN
condition of this SearchedCase . |
boolean |
isCompositeObject()
Indicates whether this SearchedCase contains
other SyntaxObject objects. |
java.lang.Object |
visit(SyntaxObjectVisitor visitor,
java.lang.Object context)
Calls the visitSearchedCase method of the
SyntaxObjectVisitor and passes that method this
SearchedCase 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 |
---|
public SearchedCase(Condition whenCondition, TypedExpression thenExpression)
SearchedCase
that has the specified WHEN
condition and THEN
expression.
whenCondition
- A Condition
that resolves to a
condition for a searched case
expression clause of a CASE
expression.thenExpression
- A TypedExpression
that resolves to a
THEN
expression for a searched case
expression clause of a CASE
expression.Method Detail |
---|
public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitSearchedCase
method of the
SyntaxObjectVisitor
and passes that method this
SearchedCase
and an Object
.
visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.
Object
returned by the
visitSearchedCase
method.public Condition getWhenCondition()
Condition
that resolves to the WHEN
condition of this SearchedCase
.
Condition
that represents the WHEN
condition of a searched case expression clause of a
Case
expression.public TypedExpression getThenExpression()
TypedExpression
that resolves to the THEN
expression of this SearchedCase
.
TypedExpression
that represents the THEN
expression of a searched case expression clause of a
Case
expression.public boolean isCompositeObject()
SearchedCase
contains
other SyntaxObject
objects.
Because a SearchedCase
has a Condition
and a
TypedExpression
, which are SyntaxObject
objects,
this method returns true
.
boolean
that is true
.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |