Class BetweenNode


  • public class BetweenNode
    extends SimpleConditionalExpressionNode
    INTERNAL

    Purpose: 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 Detail

      • rightForBetween

        protected Node rightForBetween
      • rightForAnd

        protected Node rightForAnd
    • Constructor Detail

      • BetweenNode

        public BetweenNode()
        BetweenNode constructor comment.
    • 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 class Node
      • validate

        public void validate​(ParseTreeContext context)
        INTERNAL Validate node and calculate its type.
        Overrides:
        validate in class Node
      • 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 class Node
      • 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)