Class StaticStatementReference

java.lang.Object
jakarta.persistence.query.StaticStatementReference
All Implemented Interfaces:
Reference, StatementReference

public class StaticStatementReference extends Object implements StatementReference
A reference to a statement declared using a JakartaQuery or NativeQuery annotation. An instance of this class is usually instantiated by a generated method of the static metamodel for the annotated program element.
Since:
4.0
  • Constructor Details

    • StaticStatementReference

      public StaticStatementReference(String queryName, Class<?> annotatedClass, String annotatedMemberName, List<Class<?>> parameterTypes, List<String> parameterNames, List<Object> arguments, Map<String,Object> hints, Statement.Option... options)
      Intended for use in code generated by an annotation processor. This constructor overload is adapted to the case where the program element is annotated with QueryOptions.
      Parameters:
      queryName - The name of the query, the concatenation of the unqualified name of the annotated type, with the string ".", and the name of the annotated member
      annotatedClass - The annotated class
      annotatedMemberName - The name of the annotated member
      parameterTypes - The types of the parameters of the annotated member
      parameterNames - The names of the parameters of the annotated member
      arguments - The arguments supplied to the parameters at runtime
      hints - See QueryOptions.hints()
      options - All specified options
    • StaticStatementReference

      public StaticStatementReference(String queryName, Class<?> annotatedClass, String annotatedMemberName, List<Class<?>> parameterTypes, List<String> parameterNames, List<Object> arguments)
      Intended for use in code generated by an annotation processor. This constructor overload is adapted to the case where the program element is not annotated with QueryOptions.
      Parameters:
      queryName - The name of the query, the concatenation of the unqualified name of the annotated type, with the string ".", and the name of the annotated member
      annotatedClass - The annotated class
      annotatedMemberName - The name of the annotated member
      parameterTypes - The types of the parameters of the annotated member
      parameterNames - The names of the parameters of the annotated member
      arguments - The arguments supplied to the parameters at runtime
  • Method Details