Interface InsertListMapper<T>

Type Parameters:
T - 泛型
All Known Subinterfaces:
MySqlMapper<T>

public interface InsertListMapper<T>
通用Mapper接口,特殊方法,批量插入,支持批量插入的数据库都可以使用,例如mysql,h2等
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    insertList(List<? extends T> list)
    批量插入,支持批量插入的数据库可以使用,例如MySQL,H2等,另外该接口限制实体包含`id`属性并且必须为自增列
  • Method Details

    • insertList

      @Options(useGeneratedKeys=true) @InsertProvider(type=SpecialProvider.class, method="dynamicSQL") int insertList(List<? extends T> list)
      批量插入,支持批量插入的数据库可以使用,例如MySQL,H2等,另外该接口限制实体包含`id`属性并且必须为自增列
      Parameters:
      list - 记录值
      Returns:
      the int 操作结果