Annotation Type MaxRows


@Retention(RUNTIME) @Target({METHOD,PARAMETER}) public @interface MaxRows
Used to specify the maximum number of rows to return on a result set. Passes through to setMaxRows on the JDBC prepared statement. This is significantly less efficient than a SQL LIMIT, be careful!
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The max number of rows to return from the query.
  • Element Details

    • value

      int value
      The max number of rows to return from the query.
      Returns:
      the max rows
      Default:
      -1