Annotation Interface Query


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface Query
Annotation used in the scope of a view for providing the query that will be used to explore data from that view.

Note: the actual method implementation is never actually executed, but the return type must be either View.QueryEffect or View.QueryStreamEffect

  • Required Element Summary Link icon

    Required Elements
    Modifier and Type
    Required Element
    Description
    Assigns the actual query which makes use of the enclosing entity table name as source of data for composition.
  • Optional Element Summary Link icon

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    For a query that returns a View.QueryStreamEffect, instead of completing the stream once the end of the result is reached, keep tailing the query and emit updates to the stream as the view is updated.
  • Element Details

    • value Link icon

      String value
      Assigns the actual query which makes use of the enclosing entity table name as source of data for composition.
    • streamUpdates Link icon

      boolean streamUpdates
      For a query that returns a View.QueryStreamEffect, instead of completing the stream once the end of the result is reached, keep tailing the query and emit updates to the stream as the view is updated.
      Default:
      false