Module org.eclipse.persistence.core
Class NotEqualsNode
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.Node
org.eclipse.persistence.internal.jpa.parsing.BinaryOperatorNode
org.eclipse.persistence.internal.jpa.parsing.NotEqualsNode
INTERNAL
Purpose: Represent a '<>' in EJBQL
Responsibilities:
- Generate the correct expression for an '<>' in EJBQL
- Since:
- TopLink 4.0
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateExpression
(GenerationContext context) Resolve the expression.INTERNAL Get the string representation of this node.void
validate
(ParseTreeContext context) INTERNAL Validate node and calculates its type.Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, applyToQuery, getAlias, 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
-
Constructor Details
-
NotEqualsNode
public NotEqualsNode()EqualsNode constructor comment.
-
-
Method Details
-
validate
INTERNAL Validate node and calculates its type.- Overrides:
validate
in classBinaryOperatorNode
-
generateExpression
Resolve the expression. The steps are: 1. Set the expressionBuilder for the left and right nodes 2. Generate the expression for the left node 3. Add the .notEqual to the where clause returned from step 2 4. Generate the expression for the right side and use it as the parameter for the .equals() 5. Return the completed where clause to the caller- Overrides:
generateExpression
in classNode
-
getAsString
INTERNAL Get the string representation of this node.- Overrides:
getAsString
in classNode
-