T - public interface SelectService<T,ID> extends PagingService
| 限定符和类型 | 方法和说明 |
|---|---|
int |
count()
统计全部
|
int |
count(Class<?> returnType,
Select select)
根据自定义条件统计
|
int |
count(Select select)
根据自定义条件统计
|
int |
countBy(ConditionHandle<T> cond)
根据条件查询统计
|
int |
countBy(String where,
Object... args)
根据条件查询统计
|
int |
countBy(Wrapper where)
根据条件查询统计
|
<R> ResultData<R> |
paging(Class<R> returnType,
Select select,
int pagenum,
int pagesize)
分页
|
<R> ResultData<R> |
paging(Class<R> returnType,
Select select,
PageHelper<R> pageHelper)
分页
|
ResultData<T> |
paging(Select select,
int pagenum,
int pagesize)
分页
|
ResultData<T> |
paging(Select select,
PageHelper<T> pageHelper)
分页
|
List<T> |
select()
查询全部
|
<R> List<R> |
select(Class<R> returnType)
查询全部(可指定返回类型、查询的表)
|
<R> List<R> |
select(Class<R> returnType,
Paging paging)
查询全部(可指定返回类型、查询的表)
|
<R> List<R> |
select(Class<R> returnType,
Select select)
根据自定义条件查询(可自动分页)返回List
|
List<T> |
select(Paging paging)
查询全部
|
List<T> |
select(Select select)
根据自定义条件查询(可自动分页)返回List
|
<R> List<R> |
selectBy(Class<R> returnType,
ConditionHandle<T> cond)
根据条件查询(可指定返回类型、查询的表)
|
<R> List<R> |
selectBy(Class<R> returnType,
Paging paging,
ConditionHandle<T> cond)
根据条件查询(可指定返回类型、查询的表)
|
<R> List<R> |
selectBy(Class<R> returnType,
Paging paging,
String where,
Object... args)
根据条件查询(可指定返回类型、查询的表)
|
<R> List<R> |
selectBy(Class<R> returnType,
Paging paging,
Wrapper where)
根据条件查询(可指定返回类型、查询的表)
|
<R> List<R> |
selectBy(Class<R> returnType,
String where,
Object... args)
根据条件查询(可指定返回类型、查询的表)
|
<R> List<R> |
selectBy(Class<R> returnType,
Wrapper where)
根据条件查询(可指定返回类型、查询的表)
|
List<T> |
selectBy(ConditionHandle<T> cond)
根据条件查询
|
List<T> |
selectBy(Paging paging,
ConditionHandle<T> cond)
根据条件查询
|
List<T> |
selectBy(Paging paging,
String where,
Object... args)
根据条件查询
|
List<T> |
selectBy(Paging paging,
Wrapper where)
根据条件查询
|
List<T> |
selectBy(String where,
Object... args)
根据条件查询
|
List<T> |
selectBy(Wrapper where)
根据条件查询
|
<R> R |
selectById(Class<R> returnType,
ID id)
根据id条件查询(可指定返回类型、查询的表)
|
T |
selectById(ID id)
根据id条件查询
|
<R> List<R> |
selectByIds(Class<R> returnType,
ID... ids)
根据id条件查询(可指定返回类型、查询的表)
|
List<T> |
selectByIds(ID... ids)
根据ids条件查询
|
Map<String,Object> |
selectMap(Select select)
根据自定义条件查询返回Map
|
List<Map<String,Object>> |
selectMapList(Select select)
根据自定义条件查询(可自动分页)返回List
|
<R> R |
selectOne(Class<R> returnType,
Select select)
根据自定义条件查询 只返回一条记录(可指定返回类型)
|
T |
selectOne(Select select)
根据自定义条件查询 只返回一条记录
|
<R> R |
selectOneBy(Class<R> returnType,
ConditionHandle<T> cond)
根据条件查询
|
<R> R |
selectOneBy(Class<R> returnType,
String where,
Object... args)
根据条件查询(可指定返回类型、查询的表)
|
<R> R |
selectOneBy(Class<R> returnType,
Wrapper where)
根据条件查询
|
T |
selectOneBy(ConditionHandle<T> cond)
根据条件查询
|
T |
selectOneBy(String where,
Object... args)
根据条件查询
|
T |
selectOneBy(Wrapper where)
根据条件查询
|
<R> R selectById(Class<R> returnType, ID id)
returnType - 指定返回到类型id - 唯一id<R> List<R> selectByIds(Class<R> returnType, ID... ids)
returnType - 指定返回到类型ids - 唯一id数组<R> R selectOne(Class<R> returnType, Select select)
returnType - 指定返回到类型select - 查询对象<R> R selectOneBy(Class<R> returnType, String where, Object... args)
returnType - 指定返回到类型where - 查询条件args - 条件参数T selectOneBy(ConditionHandle<T> cond)
cond - Lambda条件<R> R selectOneBy(Class<R> returnType, Wrapper where)
R - returnType - 指定返回到类型where - 条件包装器<R> R selectOneBy(Class<R> returnType, ConditionHandle<T> cond)
R - returnType - 指定返回到类型cond - Lambda条件List<T> selectBy(ConditionHandle<T> cond)
cond - Lambda条件List<T> selectBy(Paging paging, String where, Object... args)
paging - 分页对象where - 查询条件args - 条件参数List<T> selectBy(Paging paging, ConditionHandle<T> cond)
paging - 分页对象cond - Lambda条件<R> List<R> selectBy(Class<R> returnType, String where, Object... args)
returnType - 指定返回到类型where - 查询条件args - 条件参数<R> List<R> selectBy(Class<R> returnType, Wrapper where)
R - returnType - 指定返回到类型where - 条件包装器<R> List<R> selectBy(Class<R> returnType, ConditionHandle<T> cond)
R - returnType - 指定返回到类型cond - Lambda条件<R> List<R> selectBy(Class<R> returnType, Paging paging, String where, Object... args)
returnType - 指定返回到类型paging - 分页对象where - 查询条件args - 条件参数<R> List<R> selectBy(Class<R> returnType, Paging paging, Wrapper where)
R - returnType - 指定返回到类型paging - 分页对象where - 条件包装器<R> List<R> selectBy(Class<R> returnType, Paging paging, ConditionHandle<T> cond)
R - returnType - 指定返回到类型paging - 分页对象cond - Lambda条件int countBy(Wrapper where)
where - 条件包装器int countBy(ConditionHandle<T> cond)
cond - Lambda条件int count()
<R> List<R> select(Class<R> returnType, Paging paging)
returnType - 指定返回到类型paging - 分页对象List<Map<String,Object>> selectMapList(Select select)
select - 查询对象<R> List<R> select(Class<R> returnType, Select select)
returnType - 指定返回到类型select - 查询对象int count(Select select)
select - 查询对象int count(Class<?> returnType, Select select)
returnType - 指定返回到类型select - 查询对象ResultData<T> paging(Select select, PageHelper<T> pageHelper)
select - 查询对象pageHelper - 分页助手ResultData<T> paging(Select select, int pagenum, int pagesize)
select - 查询对象pagenum - 当前页pagenum - 每页数量<R> ResultData<R> paging(Class<R> returnType, Select select, PageHelper<R> pageHelper)
R - returnType - 指定返回到类型select - 查询对象pageHelper - 分页助手<R> ResultData<R> paging(Class<R> returnType, Select select, int pagenum, int pagesize)
R - returnType - 指定返回到类型select - 查询对象pagenum - 当前页pagenum - 每页数量Copyright © 2025. All rights reserved.