Skip navigation links

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

B28128-01


oracle.olapi.syntax
Class SimpleCase

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


public final class SimpleCase
extends DataObject

A DataObject that contains a pair of WHEN and THEN expressions for a SimpleCaseExpression.


Constructor Summary
SimpleCase(int when, TypedExpression thenExpression)
          Creates a SimpleCase that has the specified WHEN and THEN expressions.
SimpleCase(java.lang.String when, TypedExpression thenExpression)
          Creates a SimpleCase that has the specified WHEN and THEN expressions.
SimpleCase(TypedExpression whenExpression, TypedExpression thenExpression)
          Creates a SimpleCase that has the specified WHEN and THEN expressions.

 

Method Summary
 TypedExpression getThenExpression()
          Gets the TypedExpression that resolves to the THEN expression of this SimpleCase.
 TypedExpression getWhenExpression()
          Gets the TypedExpression that resolves to the WHEN expression of this SimpleCase.
 boolean isCompositeObject()
          Indicates whether this SimpleCase contains other SyntaxObject objects.
 java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
          Calls the visitSimpleCase method of the SyntaxObjectVisitor and passes that method this SimpleCase 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

SimpleCase

public SimpleCase(TypedExpression whenExpression,
                  TypedExpression thenExpression)
Creates a SimpleCase that has the specified WHEN and THEN expressions.
Parameters:
whenExpression - A TypedExpression that resolves to a WHEN expression for a simple case expression clause of a CASE expression.
thenExpression - A TypedExpression that resolves to a THEN expression for a simple case expression clause of a CASE expression.

SimpleCase

public SimpleCase(int when,
                  TypedExpression thenExpression)
Creates a SimpleCase that has the specified WHEN and THEN expressions.
Parameters:
when - An integer to use as the WHEN expression for a simple case expression clause of a CASE expression.
thenExpression - A TypedExpression that resolves to a THEN expression for a simple case expression clause of a CASE expression.

SimpleCase

public SimpleCase(java.lang.String when,
                  TypedExpression thenExpression)
Creates a SimpleCase that has the specified WHEN and THEN expressions.
Parameters:
when - A String to use as the WHEN expression for a simple case expression clause of a CASE expression.
thenExpression - A TypedExpression that resolves to a THEN expression for a simple case expression clause of a CASE expression.

Method Detail

visit

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

getWhenExpression

public TypedExpression getWhenExpression()
Gets the TypedExpression that resolves to the WHEN expression of this SimpleCase.
Returns:
A TypedExpression that represents the WHEN expression of a simple case expression clause of a Case expression.

getThenExpression

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

isCompositeObject

public boolean isCompositeObject()
Indicates whether this SimpleCase contains other SyntaxObject objects. Because a SimpleCase has at least one TypedExpression, which is a SyntaxObject, this method returns true.
Returns:
A boolean that is true.

Skip navigation links

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