Package io.mybatis.mapper.list
Interface ListMapper<T>
-
- Type Parameters:
T- 实体类类型
public interface ListMapper<T>批量操作方法- Author:
- liuzh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intinsertList(List<? extends T> entityList)批量保存实体,需要数据库支持批量插入的语法intupdateList(List<? extends T> entityList)批量更新intupdateListSelective(List<? extends T> entityList)批量更新
-
-
-
Method Detail
-
insertList
@Lang(io.mybatis.provider.Caching.class) @InsertProvider(type=ListProvider.class, method="insertList") int insertList(@Param("entityList") List<? extends T> entityList)
批量保存实体,需要数据库支持批量插入的语法- Parameters:
entityList- 实体列表- Returns:
- 结果数等于 entityList.size() 时成功,不相等时失败
-
updateList
@Lang(io.mybatis.provider.Caching.class) @UpdateProvider(type=ListProvider.class, method="updateList") int updateList(@Param("entityList") List<? extends T> entityList)
批量更新
-
updateListSelective
@Lang(io.mybatis.provider.Caching.class) @UpdateProvider(type=ListProvider.class, method="updateListSelective") int updateListSelective(@Param("entityList") List<? extends T> entityList)
批量更新
-
-