public abstract class BaseDbLogService<T> extends Object
Constructor and Description |
---|
BaseDbLogService(String tableName,
Class<T> tClass) |
Modifier and Type | Method and Description |
---|---|
int |
del(cn.hutool.db.Entity where)
根据条件删除
|
int |
delByKey(String keyValue)
根据主键生成
|
T |
getByKey(String keyValue)
根据主键查询实体
|
void |
insert(T t)
插入数据
|
cn.hutool.db.PageResult<T> |
listPage(cn.hutool.db.Entity where,
cn.hutool.db.Page page)
分页查询
|
protected void |
setKey(String key) |
int |
update(cn.hutool.db.Entity entity,
cn.hutool.db.Entity where)
修改数据
|
int |
update(T t)
修改数据,需要自行实现
|
protected void setKey(String key)
public void insert(T t)
t
- 数据public int update(T t)
t
- 数据public int update(cn.hutool.db.Entity entity, cn.hutool.db.Entity where)
entity
- 要修改的数据where
- 条件public int delByKey(String keyValue)
keyValue
- 主键值public int del(cn.hutool.db.Entity where)
where
- 条件public cn.hutool.db.PageResult<T> listPage(cn.hutool.db.Entity where, cn.hutool.db.Page page)
where
- 条件page
- 分页Copyright © 2017–2019. All rights reserved.