Class WhenThenNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.WhenThenNode
-
public class WhenThenNode extends Node
INTERNALPurpose: Represent an WHEN x THEN y (part of CASE statement) in EJBQL
Responsibilities:
- Generate the correct expression for an WHEN THEN in EJBQL
- Since:
- EclipseLink 1.2
- Author:
- tware
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description WhenThenNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongenerateExpressionForThen(GenerationContext context)INTERNAL Generate the a new EclipseLink the THEN portion of this node.ExpressiongenerateExpressionForWhen(GenerationContext context)INTERNAL Generate the a new EclipseLink Expression for this WHEN portion of this node.voidvalidate(ParseTreeContext context)INTERNAL Validate node and calculate its type.-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, applyToQuery, generateExpression, getAlias, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAliasableNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameter
-
-
-
-
Method Detail
-
generateExpressionForWhen
public Expression generateExpressionForWhen(GenerationContext context)
INTERNAL Generate the a new EclipseLink Expression for this WHEN portion of this node.
-
generateExpressionForThen
public Expression generateExpressionForThen(GenerationContext context)
INTERNAL Generate the a new EclipseLink the THEN portion of this node.
-
validate
public void validate(ParseTreeContext context)
Description copied from class:NodeINTERNAL Validate node and calculate its type.
-
-