All Implemented Interfaces:
AliasableNode

public class MultiplyNode extends BinaryOperatorNode implements AliasableNode
INTERNAL

Purpose: Represent a '*' in EJBQL

Responsibilities:

  • Generate the correct expression for a '*'
Since:
July 2003
  • Constructor Details

    • MultiplyNode

      public MultiplyNode()
  • Method Details

    • applyToQuery

      public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
      INTERNAL Apply this node to the passed query
      Overrides:
      applyToQuery in class Node
    • validate

      public void validate(ParseTreeContext context)
      INTERNAL Validate node and calculates its type.
      Overrides:
      validate in class BinaryOperatorNode
    • generateExpression

      public Expression generateExpression(GenerationContext context)
      INTERNAL Generate the expression. The steps are: 1. Generate the expression for the left node 2. Add the .multiply to the where clause returned from step 1 3. Generate the expression for the right side and use it as the parameter for the .multiply() 4. Return the completed where clause to the caller
      Overrides:
      generateExpression in class Node
    • isMultiplyNode

      public boolean isMultiplyNode()
      Description copied from class: Node
      INTERNAL Is this node a Multiply node
      Overrides:
      isMultiplyNode in class Node
    • isAliasableNode

      public boolean isAliasableNode()
      Overrides:
      isAliasableNode in class Node