public interface WarmDao<T>
| Modifier and Type | Method and Description |
|---|---|
int |
delete(T entity)
根据entity删除
|
int |
deleteById(Serializable id)
根据id删除
|
int |
deleteByIds(Collection<? extends Serializable> ids)
根据ids批量删除
|
T |
newEntity() |
int |
save(T entity)
新增
|
void |
saveBatch(List<T> list)
批量新增
|
T |
selectById(Serializable id)
根据id查询
|
List<T> |
selectByIds(Collection<? extends Serializable> ids)
根据ids查询
|
long |
selectCount(T entity)
查询数量
|
List<T> |
selectList(T entity,
WarmQuery<T> query)
分页查询
|
Page<T> |
selectPage(T entity,
Page<T> page)
分页查询
|
void |
updateBatch(List<T> list)
批量修改
|
int |
updateById(T entity)
根据id修改
|
T selectById(Serializable id)
id - 主键List<T> selectByIds(Collection<? extends Serializable> ids)
ids - 主键List<T> selectList(T entity, WarmQuery<T> query)
entity - 实体列表query - long selectCount(T entity)
entity - 实体列表int updateById(T entity)
entity - 实体int deleteById(Serializable id)
id - 主键int deleteByIds(Collection<? extends Serializable> ids)
ids - 需要删除的数据主键集合void updateBatch(List<T> list)
list - 集合Copyright © 2024. All rights reserved.