public abstract class BaseNbService<T> extends Object implements INbService<T>
| 限定符 | 构造器和说明 |
|---|---|
protected |
BaseNbService() |
protected |
BaseNbService(Class<T> clazz) |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
find(Object id,
String nullMsg,
Object... params) |
int |
removeById(Object id) |
int |
save(T t)
保存
|
int |
saveBatch(List<T> list)
生成sql语句一次性插入(todo 数量大分割)
|
int |
saveOrUpdate(T t)
存在id并且数据存在则跟新
明确数据存在不推荐使用该接口
|
int |
updateBatchById(List<T> list)
通过id批量更新
|
int |
updateById(T t)
通过id更新
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindpublic int save(T t)
INbServicesave 在接口中 INbService<T>public int updateById(T t)
INbServiceupdateById 在接口中 INbService<T>public int saveBatch(List<T> list)
INbServicesaveBatch 在接口中 INbService<T>@Transactional public int updateBatchById(List<T> list)
INbServiceupdateBatchById 在接口中 INbService<T>public int removeById(Object id)
removeById 在接口中 INbService<T>public int saveOrUpdate(T t)
INbServicesaveOrUpdate 在接口中 INbService<T>Copyright © 2023. All rights reserved.