|
Oracle® OLAP Java API Reference 11g Release 1 (11.1) B28128-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.olapi.syntax.SyntaxObject
oracle.olapi.syntax.DataObject
oracle.olapi.syntax.SimpleCase
public final class SimpleCase
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 |
---|
public SimpleCase(TypedExpression whenExpression, TypedExpression thenExpression)
SimpleCase
that has the specified WHEN
and THEN
expressions.
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.public SimpleCase(int when, TypedExpression thenExpression)
SimpleCase
that has the specified WHEN
and THEN
expressions.
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.public SimpleCase(java.lang.String when, TypedExpression thenExpression)
SimpleCase
that has the specified WHEN
and THEN
expressions.
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 |
---|
public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitSimpleCase
method of the SyntaxObjectVisitor
and passes that method this SimpleCase
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitSimpleCase
method.public TypedExpression getWhenExpression()
TypedExpression
that resolves to the WHEN
expression of this SimpleCase
.TypedExpression
that represents the WHEN
expression of a simple case expression clause of a Case
expression.public TypedExpression getThenExpression()
TypedExpression
that resolves to the THEN
expression of this SimpleCase
.TypedExpression
that represents the THEN
expression of a simple case expression clause of a Case
expression.public boolean isCompositeObject()
SimpleCase
contains other SyntaxObject
objects. Because a SimpleCase
has at least one TypedExpression
, which is a SyntaxObject
, this method returns true
.boolean
that is true
.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |