public interface Func<Children> extends Serializable
copy Func
| 限定符和类型 | 方法和说明 |
|---|---|
Children |
func(boolean condition,
java.util.function.Consumer<Children> consumer)
消费函数
|
default Children |
func(java.util.function.Consumer<Children> consumer)
ignore
|
Children |
geSql(boolean condition,
kotlin.reflect.KProperty<?> column,
String inValue)
字段 >= ( sql语句 )
例1: geSql("id", "1, 2, 3, 4, 5, 6")
例1: geSql("id", "select id from table where name = 'JunJun'")
|
default Children |
geSql(kotlin.reflect.KProperty<?> column,
String inValue)
ignore
|
Children |
groupBy(boolean condition,
kotlin.reflect.KProperty<?> column,
kotlin.reflect.KProperty<?>... columns)
分组:GROUP BY 字段, ...
|
Children |
groupBy(boolean condition,
List<kotlin.reflect.KProperty<?>> columns)
ignore
|
default Children |
groupBy(kotlin.reflect.KProperty<?> column)
ignore
|
default Children |
groupBy(kotlin.reflect.KProperty<?> column,
kotlin.reflect.KProperty<?>... columns)
ignore
|
default Children |
groupBy(List<kotlin.reflect.KProperty<?>> column)
ignore
|
Children |
gtSql(boolean condition,
kotlin.reflect.KProperty<?> column,
String inValue)
字段 > ( sql语句 )
例1: gtSql("id", "1, 2, 3, 4, 5, 6")
例1: gtSql("id", "select id from table where name = 'JunJun'")
|
default Children |
gtSql(kotlin.reflect.KProperty<?> column,
String inValue)
ignore
|
Children |
having(boolean condition,
String sqlHaving,
Object... params)
HAVING ( sql语句 )
例1: having("sum(age) > 10")
例2: having("sum(age) > {0}", 10)
|
default Children |
having(String sqlHaving,
Object... params)
ignore
|
Children |
in(boolean condition,
kotlin.reflect.KProperty<?> column,
Collection<?> coll)
字段 IN (value.get(0), value.get(1), ...)
|
Children |
in(boolean condition,
kotlin.reflect.KProperty<?> column,
Object... values)
字段 IN (v0, v1, ...)
|
default Children |
in(kotlin.reflect.KProperty<?> column,
Collection<?> coll)
ignore
|
default Children |
in(kotlin.reflect.KProperty<?> column,
Object... values)
ignore
|
Children |
inSql(boolean condition,
kotlin.reflect.KProperty<?> column,
String inValue)
字段 IN ( sql语句 )
!!
|
default Children |
inSql(kotlin.reflect.KProperty<?> column,
String inValue)
ignore
|
Children |
isNotNull(boolean condition,
kotlin.reflect.KProperty<?> column)
字段 IS NOT NULL
例: isNotNull("name")
|
default Children |
isNotNull(kotlin.reflect.KProperty<?> column)
ignore
|
Children |
isNull(boolean condition,
kotlin.reflect.KProperty<?> column)
字段 IS NULL
例: isNull("name")
|
default Children |
isNull(kotlin.reflect.KProperty<?> column)
ignore
|
Children |
leSql(boolean condition,
kotlin.reflect.KProperty<?> column,
String inValue)
字段 <= ( sql语句 )
例1: leSql("id", "1, 2, 3, 4, 5, 6")
例1: leSql("id", "select id from table where name = 'JunJun'")
|
default Children |
leSql(kotlin.reflect.KProperty<?> column,
String inValue)
ignore
|
Children |
ltSql(boolean condition,
kotlin.reflect.KProperty<?> column,
String inValue)
字段 < ( sql语句 )
例1: ltSql("id", "1, 2, 3, 4, 5, 6")
例1: ltSql("id", "select id from table where name = 'JunJun'")
|
default Children |
ltSql(kotlin.reflect.KProperty<?> column,
String inValue)
ignore
|
Children |
notIn(boolean condition,
kotlin.reflect.KProperty<?> column,
Collection<?> coll)
字段 NOT IN (value.get(0), value.get(1), ...)
|
Children |
notIn(boolean condition,
kotlin.reflect.KProperty<?> column,
Object... values)
字段 NOT IN (v0, v1, ...)
|
default Children |
notIn(kotlin.reflect.KProperty<?> column,
Collection<?> coll)
ignore
|
default Children |
notIn(kotlin.reflect.KProperty<?> column,
Object... value)
ignore
|
Children |
notInSql(boolean condition,
kotlin.reflect.KProperty<?> column,
String inValue)
字段 NOT IN ( sql语句 )
!!
|
default Children |
notInSql(kotlin.reflect.KProperty<?> column,
String inValue)
ignore
|
Children |
orderBy(boolean condition,
boolean isAsc,
kotlin.reflect.KProperty<?> column,
kotlin.reflect.KProperty<?>... columns)
排序:ORDER BY 字段, ...
|
default Children |
orderByAsc(boolean condition,
kotlin.reflect.KProperty<?> column,
kotlin.reflect.KProperty<?>... columns)
排序:ORDER BY 字段, ...
|
Children |
orderByAsc(boolean condition,
List<kotlin.reflect.KProperty<?>> columns)
ignore
|
default Children |
orderByAsc(kotlin.reflect.KProperty<?> column)
ignore
|
default Children |
orderByAsc(kotlin.reflect.KProperty<?> column,
kotlin.reflect.KProperty<?>... columns)
ignore
|
default Children |
orderByAsc(List<kotlin.reflect.KProperty<?>> columns)
ignore
|
default Children |
orderByDesc(boolean condition,
kotlin.reflect.KProperty<?> column,
kotlin.reflect.KProperty<?>... columns)
排序:ORDER BY 字段, ...
|
Children |
orderByDesc(boolean condition,
List<kotlin.reflect.KProperty<?>> columns)
ignore
|
default Children |
orderByDesc(kotlin.reflect.KProperty<?> column)
ignore
|
default Children |
orderByDesc(kotlin.reflect.KProperty<?> column,
kotlin.reflect.KProperty<?>... columns)
ignore
|
default Children |
orderByDesc(List<kotlin.reflect.KProperty<?>> columns)
ignore
|
default Children isNull(kotlin.reflect.KProperty<?> column)
Children isNull(boolean condition, kotlin.reflect.KProperty<?> column)
例: isNull("name")
condition - 执行条件column - 字段default Children isNotNull(kotlin.reflect.KProperty<?> column)
Children isNotNull(boolean condition, kotlin.reflect.KProperty<?> column)
例: isNotNull("name")
condition - 执行条件column - 字段default Children in(kotlin.reflect.KProperty<?> column, Collection<?> coll)
Children in(boolean condition, kotlin.reflect.KProperty<?> column, Collection<?> coll)
例: in("id", Arrays.asList(1, 2, 3, 4, 5))
condition - 执行条件column - 字段coll - 数据集合Children in(boolean condition, kotlin.reflect.KProperty<?> column, Object... values)
例: in("id", 1, 2, 3, 4, 5)
condition - 执行条件column - 字段values - 数据数组default Children notIn(kotlin.reflect.KProperty<?> column, Collection<?> coll)
Children notIn(boolean condition, kotlin.reflect.KProperty<?> column, Collection<?> coll)
例: notIn("id", Arrays.asList(1, 2, 3, 4, 5))
condition - 执行条件column - 字段coll - 数据集合Children notIn(boolean condition, kotlin.reflect.KProperty<?> column, Object... values)
例: notIn("id", 1, 2, 3, 4, 5)
condition - 执行条件column - 字段values - 数据数组Children inSql(boolean condition, kotlin.reflect.KProperty<?> column, String inValue)
!! sql 注入方式的 in 方法 !!
例1: inSql("id", "1, 2, 3, 4, 5, 6")
例2: inSql("id", "select id from table where id < 3")
condition - 执行条件column - 字段inValue - sql语句Children notInSql(boolean condition, kotlin.reflect.KProperty<?> column, String inValue)
!! sql 注入方式的 not in 方法 !!
例1: notInSql("id", "1, 2, 3, 4, 5, 6")
例2: notInSql("id", "select id from table where id < 3")
condition - 执行条件column - 字段inValue - sql语句 ---> 1,2,3,4,5,6 或者 select id from table where id < 3Children gtSql(boolean condition, kotlin.reflect.KProperty<?> column, String inValue)
例1: gtSql("id", "1, 2, 3, 4, 5, 6")
例1: gtSql("id", "select id from table where name = 'JunJun'")
condition - column - inValue - Children geSql(boolean condition, kotlin.reflect.KProperty<?> column, String inValue)
例1: geSql("id", "1, 2, 3, 4, 5, 6")
例1: geSql("id", "select id from table where name = 'JunJun'")
condition - column - inValue - Children ltSql(boolean condition, kotlin.reflect.KProperty<?> column, String inValue)
例1: ltSql("id", "1, 2, 3, 4, 5, 6")
例1: ltSql("id", "select id from table where name = 'JunJun'")
condition - column - inValue - Children leSql(boolean condition, kotlin.reflect.KProperty<?> column, String inValue)
例1: leSql("id", "1, 2, 3, 4, 5, 6")
例1: leSql("id", "select id from table where name = 'JunJun'")
condition - column - inValue - default Children groupBy(kotlin.reflect.KProperty<?> column)
default Children groupBy(kotlin.reflect.KProperty<?> column, kotlin.reflect.KProperty<?>... columns)
Children groupBy(boolean condition, kotlin.reflect.KProperty<?> column, kotlin.reflect.KProperty<?>... columns)
例: groupBy("id", "name")
condition - 执行条件column - 单个字段columns - 字段数组default Children orderByAsc(kotlin.reflect.KProperty<?> column)
default Children orderByAsc(kotlin.reflect.KProperty<?> column, kotlin.reflect.KProperty<?>... columns)
default Children orderByAsc(boolean condition, kotlin.reflect.KProperty<?> column, kotlin.reflect.KProperty<?>... columns)
例: orderByAsc("id", "name")
condition - 执行条件column - 单个字段columns - 字段数组default Children orderByDesc(kotlin.reflect.KProperty<?> column)
Children orderByDesc(boolean condition, List<kotlin.reflect.KProperty<?>> columns)
default Children orderByDesc(kotlin.reflect.KProperty<?> column, kotlin.reflect.KProperty<?>... columns)
default Children orderByDesc(boolean condition, kotlin.reflect.KProperty<?> column, kotlin.reflect.KProperty<?>... columns)
例: orderByDesc("id", "name")
condition - 执行条件column - 单个字段columns - 字段数组Children orderBy(boolean condition, boolean isAsc, kotlin.reflect.KProperty<?> column, kotlin.reflect.KProperty<?>... columns)
例: orderBy(true, "id", "name")
condition - 执行条件isAsc - 是否是 ASC 排序column - 单个字段columns - 字段数组Children having(boolean condition, String sqlHaving, Object... params)
例1: having("sum(age) > 10")
例2: having("sum(age) > {0}", 10)
condition - 执行条件sqlHaving - sql 语句params - 参数数组default Children func(java.util.function.Consumer<Children> consumer)
Children func(boolean condition, java.util.function.Consumer<Children> consumer)
consumer - 消费函数Copyright © 2023. All rights reserved.