Skip navigation links

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

B28128-01


oracle.olapi.syntax
Class SearchedCase

java.lang.Object
  extended by oracle.olapi.syntax.SyntaxObject
      extended by oracle.olapi.syntax.DataObject
          extended by oracle.olapi.syntax.SearchedCase


public final class SearchedCase
extends DataObject

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
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

 

Constructor Detail

SearchedCase

public SearchedCase(Condition whenCondition,
                    TypedExpression thenExpression)
Creates a SearchedCase that has the specified WHEN condition and THEN expression.
Parameters:
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

visit

public 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.
Specified by:
visit in class SyntaxObject
Parameters:
visitor - A SyntaxObjectVisitor.
context - An Object.
Returns:
The Object returned by the visitSearchedCase method.

getWhenCondition

public Condition getWhenCondition()
Gets the Condition that resolves to the WHEN condition of this SearchedCase.
Returns:
A Condition that represents the WHEN condition of a searched case expression clause of a Case expression.

getThenExpression

public TypedExpression getThenExpression()
Gets the TypedExpression that resolves to the THEN expression of this SearchedCase.
Returns:
A TypedExpression that represents the THEN expression of a searched case expression clause of a Case expression.

isCompositeObject

public boolean isCompositeObject()
Indicates whether this SearchedCase contains other SyntaxObject objects. Because a SearchedCase has a Condition and a TypedExpression, which are SyntaxObject objects, this method returns true.
Returns:
A boolean that is true.

Skip navigation links

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