Annotation Type SqlUpdate


@Retention(RUNTIME) @Target(METHOD) public @interface SqlUpdate
Used to indicate that a method should execute a non-query sql statement.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The sql (or statement name if using a statement locator) to be executed.
  • Element Details

    • value

      String value
      The sql (or statement name if using a statement locator) to be executed. The default value will use the method name of the method being annotated. This default behavior is only useful in conjunction with a statement locator.
      Returns:
      the SQL string (or name)
      Default:
      ""