Interface InsertListMapper<T>

Type Parameters:
T - 不能为空
All Known Subinterfaces:
MySqlMapper<T>

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

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

    • insertList

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