public class BetweenNode extends SimpleConditionalExpressionNode
Purpose: Represent a BETWEEN in EJBQL
Responsibilities:
| Modifier and Type | Field and Description |
|---|---|
protected Node |
rightForAnd |
protected Node |
rightForBetween |
left, right, shouldGenerateExpression| Constructor and Description |
|---|
BetweenNode()
BetweenNode constructor comment.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
generateExpression(GenerationContext context)
INTERNAL
Return a TopLink expression by 'BETWEEN' and 'AND'ing the expressions from the left,
rightForBetween and rightForAnd nodes
|
Node |
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 calcualte its type.
|
addToExpression, appendExpression, applyToQuery, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameterpublic Node qualifyAttributeAccess(ParseTreeContext context)
qualifyAttributeAccess in class Nodepublic void validate(ParseTreeContext context)
public Expression generateExpression(GenerationContext context)
generateExpression in class Nodepublic Node getRightForAnd()
public Node getRightForBetween()
public boolean hasRightForAnd()
public boolean hasRightForBetween()
public void setRightForAnd(Node newRightForAnd)
public void setRightForBetween(Node newRightForBetween)