| 程序包 | 说明 |
|---|---|
| cn.easyutil.easyapi.datasource | |
| cn.easyutil.easyapi.datasource.bean | |
| cn.easyutil.easyapi.service |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Integer |
EasyapiBindSqlExecution.delete(EasyapiBindSQLExecuter executer)
删除数据(依据不为空的属性删除,支持聚合)
|
<T> EasyApiBindSqlResult<T> |
EasyapiBindSqlExecution.listPage(EasyapiBindSQLExecuter executer,
Integer currentPageParam,
Integer showCountParam)
分页查询(依据不为空的条件查询) 查询完毕将page信息回填到参数bean的page属性中
|
<T> List<T> |
EasyapiBindSqlExecution.select(EasyapiBindSQLExecuter executer)
查询
|
<T> Double |
EasyapiBindSqlExecution.selectCount(EasyapiBindSQLExecuter executer)
查询总条数
|
<T> T |
EasyapiBindSqlExecution.selectOne(EasyapiBindSQLExecuter executer)
依据不为空的条件查询多条数据
|
<T> Integer |
EasyapiBindSqlExecution.update(EasyapiBindSQLExecuter executer)
修改数据(依据id修改)
|
| 限定符和类型 | 方法和说明 |
|---|---|
static EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.build(Object t) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.count(EasyapiBindLambdaFunction<T,?> function,
String asName) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.count(String field) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.count(String field,
String asName) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.eq(boolean el,
EasyapiBindLambdaFunction<T,?> function,
Object obj,
Boolean... useOr) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.eq(EasyapiBindLambdaFunction<T,?> function,
Object obj,
Boolean... useOr) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.eq(String field,
Object obj,
Boolean... useOr)
相等语句
|
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.gte(boolean el,
EasyapiBindLambdaFunction<T,?> function,
Object obj,
Boolean... useOr) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.gte(EasyapiBindLambdaFunction<T,?> function,
Object obj,
Boolean... useOr) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.gte(String field,
Object obj,
Boolean... useOr)
大于等于语句
|
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.in(boolean el,
EasyapiBindLambdaFunction<T,?> function,
Collection in,
Boolean... useOr) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.in(EasyapiBindLambdaFunction<T,?> function,
Collection in,
Boolean... useOr) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.in(String field,
Collection in,
Boolean... useOr)
in语句
|
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.incr(boolean el,
EasyapiBindLambdaFunction<T,?> function,
Number num) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.incr(EasyapiBindLambdaFunction<T,?> function,
Number num) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.incr(String field,
Number num)
属性值自增
|
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.leftBrackets(Boolean... useOr)
添加左括号 '('
|
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.like(boolean el,
EasyapiBindLambdaFunction<T,?> function,
String like,
Boolean... useOr) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.like(EasyapiBindLambdaFunction<T,?> function,
String like,
Boolean... useOr) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.like(String field,
String like,
Boolean... useOr)
模糊匹配
|
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.lte(boolean el,
EasyapiBindLambdaFunction<T,?> function,
Object obj,
Boolean... useOr) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.lte(EasyapiBindLambdaFunction<T,?> function,
Object obj,
Boolean... useOr) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.lte(String field,
Object obj,
Boolean... useOr)
小于等于语句 <=
|
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.max(EasyapiBindLambdaFunction<T,?> function,
String asName) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.max(String field) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.max(String field,
String asName) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.min(EasyapiBindLambdaFunction<T,?> function,
String asName) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.min(String field) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.min(String field,
String asName) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.notEquals(boolean el,
EasyapiBindLambdaFunction<T,?> function,
Object obj,
Boolean... useOr) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.notEquals(EasyapiBindLambdaFunction<T,?> function,
Object obj,
Boolean... useOr) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.notEquals(String field,
Object obj,
Boolean... useOr)
不等于语句
|
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.notIn(boolean el,
EasyapiBindLambdaFunction<T,?> function,
Collection<T> in,
Boolean... useOr) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.notIn(EasyapiBindLambdaFunction<T,?> function,
Collection<T> in,
Boolean... useOr) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.notIn(String field,
Collection in,
Boolean... useOr)
sql not in 语句
|
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.orderBy(EasyapiBindLambdaFunction<T,?> function) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.orderBy(EasyapiBindLambdaFunction<T,?> function,
boolean desc) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.orderBy(String field)
排序字段,默认正序
|
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.orderBy(String field,
boolean desc)
排序
|
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.orderByIf(EasyapiBindLambdaFunction<T,?> function,
Object val,
boolean desc) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.orderByIf(String field,
Object val,
boolean desc)
排序,并且指定值放在最前或最后
|
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.orderByIn(EasyapiBindLambdaFunction<T,?> function,
Collection in,
boolean desc) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.orderByIn(String field,
Collection in,
boolean desc)
排序,并且指定集合值放在最前或最后
|
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.rightBrackets()
添加右括号 ')'
|
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.setLimitSize(Integer limitSize) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.setLimitStart(Integer limitStart) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.setNull(boolean el,
EasyapiBindLambdaFunction<T,?> function) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.setNull(EasyapiBindLambdaFunction<T,?> function) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.setNull(String field,
String... fields)
设置字段值为null
|
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.setReturnParam(EasyapiBindLambdaFunction<T,?>... functions) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.setReturnParam(String... field) |
<T> EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.sum(EasyapiBindLambdaFunction<T,?> function,
String asName) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.sum(String field) |
EasyapiBindSQLExecuter |
EasyapiBindSQLExecuter.sum(String field,
String asName) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DBService.delete(EasyapiBindSQLExecuter executer) |
T |
DBService.get(EasyapiBindSQLExecuter executer) |
List<T> |
DBService.list(EasyapiBindSQLExecuter executer) |
EasyApiBindSqlResult |
DBService.page(EasyapiBindSQLExecuter executer,
Integer current,
Integer showCount) |
void |
DBService.update(EasyapiBindSQLExecuter executer) |
Copyright © 2021. All rights reserved.