Class BetweenNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.SimpleConditionalExpressionNode
-
- org.eclipse.persistence.internal.jpa.parsing.BetweenNode
-
public class BetweenNode extends SimpleConditionalExpressionNode
INTERNALPurpose: Represent a BETWEEN in EJBQL
Responsibilities:
- Generate the correct expression for a BETWEEN in EJBQL
- Since:
- TopLink 4.0
- Author:
- Jon Driscoll and Joel Lucuik
-
-
Field Summary
Fields Modifier and Type Field Description protected Node
rightForAnd
protected Node
rightForBetween
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description BetweenNode()
BetweenNode constructor comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
generateExpression(GenerationContext context)
INTERNAL Return a EclipseLink expression by 'BETWEEN' and 'AND'ing the expressions from the left, rightForBetween and rightForAnd nodesNode
getRightForAnd()
Node
getRightForBetween()
boolean
hasRightForAnd()
boolean
hasRightForBetween()
Node
qualifyAttributeAccess(ParseTreeContext context)
INTERNAL Check the child nodes for an unqualified field access and if there are any, replace them by a qualified field access.void
setRightForAnd(Node newRightForAnd)
void
setRightForBetween(Node newRightForBetween)
void
validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, applyToQuery, getAlias, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAliasableNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameter
-
-
-
-
Method Detail
-
qualifyAttributeAccess
public Node qualifyAttributeAccess(ParseTreeContext context)
INTERNAL Check the child nodes for an unqualified field access and if there are any, replace them by a qualified field access.- Overrides:
qualifyAttributeAccess
in classNode
-
validate
public void validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.
-
generateExpression
public Expression generateExpression(GenerationContext context)
INTERNAL Return a EclipseLink expression by 'BETWEEN' and 'AND'ing the expressions from the left, rightForBetween and rightForAnd nodes- Overrides:
generateExpression
in classNode
-
getRightForAnd
public Node getRightForAnd()
-
getRightForBetween
public Node getRightForBetween()
-
hasRightForAnd
public boolean hasRightForAnd()
-
hasRightForBetween
public boolean hasRightForBetween()
-
setRightForAnd
public void setRightForAnd(Node newRightForAnd)
-
setRightForBetween
public void setRightForBetween(Node newRightForBetween)
-
-