Annotation Type BatchChunkSize


@Retention(RUNTIME) @Target({METHOD,PARAMETER,TYPE}) public @interface BatchChunkSize
Used to control the batch chunk size for sql batch operations. If this annotation is present the value (or argument value if on a parameter) will be used as the size for each batch statement to execute.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The batch chunk size.
  • Element Details

    • value

      int value
      The batch chunk size. Defaults to -1 which will raise an error, so do not use the default. It is present for when the annotation is used on a parameter, in which case this value will be ignored and the parameter value will be used. The parameter type must be an int (or castable to an int).
      Returns:
      the batch chunk size.
      Default:
      -1