Module org.eclipse.persistence.core
Class LessThanNode
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.Node
org.eclipse.persistence.internal.jpa.parsing.BinaryOperatorNode
org.eclipse.persistence.internal.jpa.parsing.LessThanNode
INTERNAL
Purpose: Represent a '<' in EJBQL
Responsibilities:
- Generate the correct expression for a '<'
- 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) INTERNAL Resolve the expression.INTERNAL Get the string representation of this node.void
validate
(ParseTreeContext context) INTERNAL Validate the current 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
-
LessThanNode
public LessThanNode()LessThanNode constructor comment.
-
-
Method Details
-
validate
INTERNAL Validate the current node and calculates its type.- Overrides:
validate
in classBinaryOperatorNode
-
generateExpression
INTERNAL 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 .lessThan to the where clause returned from step 2 4. Generate the expression for the right side and use it as the parameter for the .lessThan() 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
-