Class GreaterThanEqualToNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.BinaryOperatorNode
-
- org.eclipse.persistence.internal.jpa.parsing.GreaterThanEqualToNode
-
public class GreaterThanEqualToNode extends BinaryOperatorNode
INTERNALPurpose: Represent a '>=' in EJBQL
Responsibilities:
- Generate the correct expression for a '>='
- Since:
- TopLink 4.0
- Author:
- Jon Driscoll and Joel Lucuik
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description GreaterThanEqualToNode()
GreaterThanEqualToNode constructor comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
generateExpression(GenerationContext context)
INTERNAL Resolve the expression.String
getAsString()
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
-
-
-
-
Method Detail
-
validate
public void validate(ParseTreeContext context)
INTERNAL Validate the current node and calculates its type.- Overrides:
validate
in classBinaryOperatorNode
-
generateExpression
public Expression generateExpression(GenerationContext context)
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 .greaterThanEqualTo to the where clause returned from step 2 4. Generate the expression for the right side and use it as the parameter for the .greaterThanEqualTo() 5. Return the completed where clause to the caller- Overrides:
generateExpression
in classNode
-
getAsString
public String getAsString()
INTERNAL Get the string representation of this node.- Overrides:
getAsString
in classNode
-
-