Class CoalesceNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.CoalesceNode
-
- All Implemented Interfaces:
AliasableNode
public class CoalesceNode extends Node implements AliasableNode
INTERNALPurpose: Represent an COALESCE in EJBQL
Responsibilities:
- Generate the correct expression for an COALESCE 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 CoalesceNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyToQuery(ObjectLevelReadQuery theQuery, GenerationContext generationContext)INTERNAL Apply this node to the passed queryExpressiongenerateExpression(GenerationContext context)INTERNAL Generate the a new EclipseLink Coalesce expression for this node.java.util.ListgetClauses()booleanisAliasableNode()voidsetClauses(java.util.List clauses)java.lang.StringtoString(int indent)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, toStringDisplayName, toStringIndent, validateParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.internal.jpa.parsing.AliasableNode
getAlias, setAlias
-
-
-
-
Method Detail
-
applyToQuery
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext generationContext)
INTERNAL Apply this node to the passed query- Overrides:
applyToQueryin classNode
-
generateExpression
public Expression generateExpression(GenerationContext context)
INTERNAL Generate the a new EclipseLink Coalesce expression for this node.- Overrides:
generateExpressionin classNode
-
validate
public void validate(ParseTreeContext context)
Description copied from class:NodeINTERNAL Validate node and calculate its type.
-
getClauses
public java.util.List getClauses()
-
setClauses
public void setClauses(java.util.List clauses)
-
isAliasableNode
public boolean isAliasableNode()
- Overrides:
isAliasableNodein classNode
-
-