Module org.eclipse.persistence.core
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
INTERNAL
Purpose: Represent a BETWEEN in EJBQL
Responsibilities:
- Generate the correct expression for a BETWEEN in EJBQL
- Since:
- TopLink 4.0
-
Field Summary
FieldsFields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateExpression(GenerationContext context) INTERNAL Return a EclipseLink expression by 'BETWEEN' and 'AND'ing the expressions from the left, rightForBetween and rightForAnd nodesbooleanbooleanqualifyAttributeAccess(ParseTreeContext context) INTERNAL Check the child nodes for an unqualified field access and if there are any, replace them by a qualified field access.voidsetRightForAnd(Node newRightForAnd) voidsetRightForBetween(Node newRightForBetween) voidvalidate(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
-
Field Details
-
rightForBetween
-
rightForAnd
-
-
Constructor Details
-
BetweenNode
public BetweenNode()BetweenNode constructor comment.
-
-
Method Details
-
qualifyAttributeAccess
INTERNAL Check the child nodes for an unqualified field access and if there are any, replace them by a qualified field access.- Overrides:
qualifyAttributeAccessin classNode
-
validate
INTERNAL Validate node and calculate its type. -
generateExpression
INTERNAL Return a EclipseLink expression by 'BETWEEN' and 'AND'ing the expressions from the left, rightForBetween and rightForAnd nodes- Overrides:
generateExpressionin classNode
-
getRightForAnd
-
getRightForBetween
-
hasRightForAnd
public boolean hasRightForAnd() -
hasRightForBetween
public boolean hasRightForBetween() -
setRightForAnd
-
setRightForBetween
-