T - 实体类类型I - 主键类型public interface ExampleService<T,I extends Serializable>
| 限定符和类型 | 方法和说明 |
|---|---|
long |
count(Example<T> example)
根据 example 查询总数
|
int |
delete(Example<T> example)
根据 example 条件批量删除
|
default Example<T> |
example()
获取 Example 对象
|
List<T> |
findList(Example<T> example)
根据 example 条件查询
|
T |
findOne(Example<T> example)
根据 example 条件查询一个,当结果多于1个时出错
|
int |
update(T entity,
Example<T> example)
根据 example 查询条件批量更新(所有字段)
|
int |
updateSelective(T entity,
Example<T> example)
根据 example 查询条件批量更新(非空字段)
|
Copyright © 2022. All rights reserved.