P
- 注解类型E
- 实体类public interface Dao<P,E>
限定符和类型 | 方法和说明 |
---|---|
List<Integer> |
batchInsert(List<E> data)
批量插入数据
|
List<Integer> |
batchReplace(List<E> data)
批量替换数据
|
int |
clear()
清空数据
|
long |
count()
数据记录总数
|
long |
count(Map<String,Object> conditions)
数据记录总数
|
int |
delete(Map<String,Object> conditions)
删除数据
|
int |
delete(Map<String,Object> conditions,
int size)
删除数据
|
int |
deleteByPrimary(P primary)
根据主键删除数据
|
List<E> |
getAll()
查询所有数据
|
E |
getByPrimary(P primary)
根据主键查询数据
|
E |
getOne()
获取一条记录
|
E |
getOne(Map<String,Object> conditions)
获取一条记录
|
E |
getOne(Map<String,Object> conditions,
int offset)
获取一条记录
|
E |
getOne(Map<String,Object> conditions,
int offset,
Map<String,com.buession.lang.Order> orders)
获取一条记录
|
E |
getOne(Map<String,Object> conditions,
Map<String,com.buession.lang.Order> orders)
获取一条记录
|
int |
insert(E e)
插入数据
|
Pagination<E> |
paging(Map<String,Object> conditions,
int page,
int pagesize)
数据分页查询
|
Pagination<E> |
paging(Map<String,Object> conditions,
int page,
int pagesize,
Map<String,com.buession.lang.Order> orders)
数据分页查询
|
int |
replace(E e)
替换数据
|
List<E> |
select(Map<String,Object> conditions)
数据查询
|
List<E> |
select(Map<String,Object> conditions,
int size)
数据查询
|
List<E> |
select(Map<String,Object> conditions,
int offset,
int size)
数据查询
|
List<E> |
select(Map<String,Object> conditions,
int offset,
int size,
Map<String,com.buession.lang.Order> orders)
数据查询
|
List<E> |
select(Map<String,Object> conditions,
int size,
Map<String,com.buession.lang.Order> orders)
数据查询
|
List<E> |
select(Map<String,Object> conditions,
Map<String,com.buession.lang.Order> orders)
数据查询
|
E |
selectOne()
获取一条记录
|
E |
selectOne(Map<String,Object> conditions)
获取一条记录
|
E |
selectOne(Map<String,Object> conditions,
int offset)
获取一条记录
|
E |
selectOne(Map<String,Object> conditions,
int offset,
Map<String,com.buession.lang.Order> orders)
获取一条记录
|
E |
selectOne(Map<String,Object> conditions,
Map<String,com.buession.lang.Order> orders)
获取一条记录
|
int |
truncate()
清空数据
|
int |
update(E e,
Map<String,Object> conditions)
更新数据
|
int |
updateByPrimary(P primary,
E e)
根据主键更新数据
|
int insert(E e)
e
- 实体类int replace(E e)
e
- 实体类E getOne()
E getOne(Map<String,Object> conditions, int offset)
conditions
- 查询条件offset
- 偏移量E getOne(Map<String,Object> conditions, Map<String,com.buession.lang.Order> orders)
conditions
- 查询条件orders
- 排序E getOne(Map<String,Object> conditions, int offset, Map<String,com.buession.lang.Order> orders)
conditions
- 查询条件offset
- 偏移量orders
- 排序E selectOne()
E selectOne(Map<String,Object> conditions, int offset)
conditions
- 查询条件offset
- 偏移量E selectOne(Map<String,Object> conditions, Map<String,com.buession.lang.Order> orders)
conditions
- 查询条件orders
- 排序E selectOne(Map<String,Object> conditions, int offset, Map<String,com.buession.lang.Order> orders)
conditions
- 查询条件offset
- 偏移量orders
- 排序List<E> select(Map<String,Object> conditions, int size)
conditions
- 查询条件size
- 查询条数List<E> select(Map<String,Object> conditions, int offset, int size)
conditions
- 查询条件offset
- 偏移量size
- 查询条数List<E> select(Map<String,Object> conditions, Map<String,com.buession.lang.Order> orders)
conditions
- 查询条件orders
- 排序List<E> select(Map<String,Object> conditions, int size, Map<String,com.buession.lang.Order> orders)
conditions
- 查询条件size
- 查询条数orders
- 排序List<E> select(Map<String,Object> conditions, int offset, int size, Map<String,com.buession.lang.Order> orders)
conditions
- 查询条件offset
- 偏移量size
- 查询条数orders
- 排序Pagination<E> paging(Map<String,Object> conditions, int page, int pagesize)
conditions
- 查询条件page
- 页码pagesize
- 每页大小Pagination<E> paging(Map<String,Object> conditions, int page, int pagesize, Map<String,com.buession.lang.Order> orders)
conditions
- 查询条件page
- 页码pagesize
- 每页大小orders
- 排序long count()
int delete(Map<String,Object> conditions, int size)
conditions
- 删除条件size
- 删除条数int deleteByPrimary(P primary)
primary
- 主键值int clear()
int truncate()
Copyright © 2023 buession.com Inc.. All rights reserved.