Module org.eclipse.persistence.core
Class NullIfNode
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.Node
org.eclipse.persistence.internal.jpa.parsing.NullIfNode
- All Implemented Interfaces:
AliasableNode
INTERNAL
Purpose: Represent an NULLIF in EJBQL
Responsibilities:
- Generate the correct expression for an NULLIF 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyToQuery
(ObjectLevelReadQuery theQuery, GenerationContext generationContext) INTERNAL Apply this node to the passed querygenerateExpression
(GenerationContext context) INTERNAL Generate the a new EclipseLink NullIf expression for this node.boolean
void
validate
(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, 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
-
Constructor Details
-
NullIfNode
public NullIfNode()
-
-
Method Details
-
applyToQuery
INTERNAL Apply this node to the passed query- Overrides:
applyToQuery
in classNode
-
generateExpression
INTERNAL Generate the a new EclipseLink NullIf expression for this node.- Overrides:
generateExpression
in classNode
-
validate
Description copied from class:Node
INTERNAL Validate node and calculate its type. -
isAliasableNode
public boolean isAliasableNode()- Overrides:
isAliasableNode
in classNode
-