接口 InsertListMapper<T>
-
- 类型参数:
T- 不能为空
- 所有已知子接口:
MySqlMapper<T>
public interface InsertListMapper<T>通用Mapper接口,特殊方法,批量插入,支持批量插入的数据库都可以使用,例如mysql,h2等- 作者:
- liuzh
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 intinsertList(List<? extends T> recordList)批量插入,支持批量插入的数据库可以使用,例如MySQL,H2等,另外该接口限制实体包含`id`属性并且必须为自增列
-
-
-
方法详细资料
-
insertList
@Options(useGeneratedKeys=true) @InsertProvider(type=SpecialProvider.class, method="dynamicSQL") int insertList(List<? extends T> recordList)
批量插入,支持批量插入的数据库可以使用,例如MySQL,H2等,另外该接口限制实体包含`id`属性并且必须为自增列- 参数:
recordList-- 返回:
-
-