Module org.eclipse.persistence.core
Class CaseNode
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.Node
org.eclipse.persistence.internal.jpa.parsing.CaseNode
- All Implemented Interfaces:
AliasableNode
INTERNAL
Purpose: Represent an CASE statement in EJBQL
Responsibilities:
- Generate the correct expression for an CASE in EJBQL
- Since:
- EclipseLink 1.2
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToQuery(ObjectLevelReadQuery theQuery, GenerationContext generationContext) INTERNAL Apply this node to the passed querygenerateExpression(GenerationContext context) INTERNAL Generate the a new EclipseLink TableEntryExpression for this node.booleanvoidsetWhenClauses(List<Node> whenClauses) voidvalidate(ParseTreeContext context) INTERNAL Validate node and calculate its type.Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, getAlias, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, 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, validateParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.persistence.internal.jpa.parsing.AliasableNode
getAlias, setAlias
-
Constructor Details
-
CaseNode
public CaseNode()
-
-
Method Details
-
applyToQuery
INTERNAL Apply this node to the passed query- Overrides:
applyToQueryin classNode
-
generateExpression
INTERNAL Generate the a new EclipseLink TableEntryExpression for this node.- Overrides:
generateExpressionin classNode
-
validate
Description copied from class:NodeINTERNAL Validate node and calculate its type. -
getWhenClauses
-
setWhenClauses
-
isAliasableNode
public boolean isAliasableNode()- Overrides:
isAliasableNodein classNode
-