Class MybatisBatch.Method<T>
java.lang.Object
com.baomidou.mybatisplus.core.batch.MybatisBatch.Method<T>
- Type Parameters:
T- 泛型参数(实体)
- Enclosing class:
MybatisBatch<T>
内置方法简化调用
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> BatchMethod<T> <E> BatchMethod<E> deleteById(Function<E, T> function) <E> BatchMethod<E> <E> BatchMethod<E> get(String method, ParameterConvert<E> parameterConvert) insert()新增方法<E> BatchMethod<E> 新增方法<E> BatchMethod<E> <E> BatchMethod<E> <E> BatchMethod<E> updateById(Function<E, T> etFunction)
-
Constructor Details
-
Method
-
-
Method Details
-
insert
新增方法- Returns:
- 新增方法
-
insert
新增方法- Type Parameters:
E- 实体- Parameters:
function- 转换函数- Returns:
- 新增方法
-
updateById
- Returns:
- 更新方法
-
updateById
- Type Parameters:
E- 实体- Parameters:
etFunction- 实体转换- Returns:
- 更新方法
-
update
- Type Parameters:
E- 实体- Parameters:
wrapperFunction- 更新条件(不能为null)- Returns:
- 更新方法
-
update
public <E> BatchMethod<E> update(Function<E, T> entityFunction, Function<E, Wrapper<T>> wrapperFunction) - Type Parameters:
E- 实体- Parameters:
entityFunction- 实体参数wrapperFunction- wrapper参数- Returns:
- 更新方法
-
deleteById
- Type Parameters:
E- 实体- Parameters:
function- 参数转换- Returns:
- 删除方法
-
deleteById
- Type Parameters:
T- 实体- Returns:
- 删除方法
-
get
-
get
-