All Implemented Interfaces:
Expression

public final class OnClause extends AbstractConditionalClause
Returns an expression that allows a join ON clause to be defined.

New to EclipseLink 2.4 and JPA 2.1.

BNF: join_condition ::= ON conditional_expression

Example: SELECT e FROM Employee e LEFT JOIN e.projects p ON p.budget > 10000

Since:
2.4
Version:
2.4
  • Constructor Details

    • OnClause

      public OnClause(AbstractExpression parent)
      Creates a new OnClause.
      Parameters:
      parent - The parent of this expression
  • Method Details

    • accept

      public void accept(ExpressionVisitor visitor)
      Description copied from interface: Expression
      Visits this Expression by the given visitor.
      Parameters:
      visitor - The ExpressionVisitor to visit this object
    • getQueryBNF

      public JPQLQueryBNF getQueryBNF()
      Description copied from interface: Expression
      Returns the BNF of this Expression.
      Returns:
      The JPQLQueryBNF, which represents the grammar of this Expression
    • isParsingComplete

      protected boolean isParsingComplete(WordParser wordParser, String word, Expression expression)
      Description copied from class: AbstractExpression
      Determines whether the parsing is complete based on what is left in the given text. The text is never empty.
      Overrides:
      isParsingComplete in class AbstractConditionalClause
      Parameters:
      wordParser - The text to parse based on the current position of the cursor
      word - The word that was retrieved from the given text, which is the first word in the text
      expression - The Expression that has already been parsed
      Returns:
      true if the text no longer can't be parsed by the current expression; false if more can be parsed