Annotation Interface SqlScript


@Retention(RUNTIME) @Target(METHOD) @Repeatable(SqlScripts.class) public @interface SqlScript
Annotate a method to indicate that it will execute one or more SQL statements.

Method arguments are not bound as statement parameters. Use @Define to substitute template attributes. To run several statements with bound parameters, declare one @SqlUpdate method for each statement and call them from a default method.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the SQL string (or name).
  • Element Details

    • value

      String value
      Returns the SQL string (or name).
      Returns:
      The SQL string (or name).
      Default:
      ""