Class WhenThenNode


  • public class WhenThenNode
    extends Node
    INTERNAL

    Purpose: Represent an WHEN x THEN y (part of CASE statement) in EJBQL

    Responsibilities:

    • Generate the correct expression for an WHEN THEN in EJBQL
    Since:
    EclipseLink 1.2
    Author:
    tware
    • Constructor Detail

      • WhenThenNode

        public WhenThenNode()
    • Method Detail

      • generateExpressionForWhen

        public Expression generateExpressionForWhen​(GenerationContext context)
        INTERNAL Generate the a new EclipseLink Expression for this WHEN portion of this node.
      • generateExpressionForThen

        public Expression generateExpressionForThen​(GenerationContext context)
        INTERNAL Generate the a new EclipseLink the THEN portion of this node.
      • validate

        public void validate​(ParseTreeContext context)
        Description copied from class: Node
        INTERNAL Validate node and calculate its type.
        Overrides:
        validate in class Node