Annotation Type Delete


The annotation that specify an SQL for deleting record(s).

How to use:

 public interface UserMapper {
   @Delete("DELETE FROM users WHERE id = #{id}")
   boolean deleteById(int id);
 }
 
Author:
Clinton Begin
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    The container annotation for Delete.
  • Required Element Summary Link icon

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns an SQL for deleting record(s).
  • Optional Element Summary Link icon

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value Link icon

      String[] value
      Returns an SQL for deleting record(s).
      Returns:
      an SQL for deleting record(s)
    • databaseId Link icon

      String databaseId
      Returns:
      A database id that correspond this statement
      Since:
      3.5.5
      Default:
      ""