java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.AbstractJPQLGrammar
org.eclipse.persistence.jpa.jpql.parser.JPQLGrammar3_1
All Implemented Interfaces:
JPQLGrammar

public class JPQLGrammar3_1 extends AbstractJPQLGrammar
This JPQLGrammar provides support for parsing JPQL queries defined in Jakarta Persistence 3.1.

 functions_returning_numerics ::= ABS(arithmetic_expression) |
                                  CEILING(arithmetic_expression) |
                                  EXP(arithmetic_expression) |
                                  FLOOR(arithmetic_expression) |
                                  LN(arithmetic_expression) |
                                  MOD(arithmetic_expression, arithmetic_expression) |
                                  POWER(arithmetic_expression, arithmetic_expression) |
                                  ROUND(arithmetic_expression, arithmetic_expression) |
                                  SIGN(arithmetic_expression) |
                                  SQRT(arithmetic_expression) |
                                  SIZE(collection_valued_path_expression) |
                                  INDEX(identification_variable) |
                                  extract_datetime_field

 extract_datetime_field := EXTRACT(datetime_field FROM datetime_expression)

 datetime_field := identification_variable

 functions_returning_datetime ::= CURRENT_DATE | CURRENT_TIME | CURRENT_TIMESTAMP |
                                  LOCAL local_datetime_type |
                                  extract_datetime_par

 local_datetime_type ::= DATE |   ..... matches Java java.time.LocalDate
                         TIME |   ..... matches Java java.time.LocalTime
                         DATETIME ..... matches Java java.time.LocalDateTime
 
  • Constructor Details

    • JPQLGrammar3_1

      public JPQLGrammar3_1()
      Creates an insance of Jakarta Persistence 3.1 JPQL grammar.
  • Method Details