Interface Func<Children>
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
KtAbstractLambdaWrapper,KtAbstractWrapper,KtDeleteJoinWrapper,KtLambdaWrapper,KtUpdateJoinWrapper
copy Func
-
Method Summary
Modifier and TypeMethodDescriptiondefault Children消费函数default Children字段 >= ( sql语句 )default Childrendefault Childrendefault Children分组:GROUP BY 字段, ...default Childrendefault ChildrengroupBy(boolean condition, kotlin.reflect.KProperty<?>... columns) default Childrendefault Childrendefault Childrendefault ChildrengroupBy(kotlin.reflect.KProperty<?>... columns) 字段 > ( sql语句 )default Childrendefault Childrendefault ChildrenHAVING ( sql语句 )default Children字段 IN (v0, v1, ...)in(boolean condition, String alias, kotlin.reflect.KProperty<?> column, Collection<?> coll) 字段 IN (value.get(0), value.get(1), ...)default Childrendefault Childrenin(boolean condition, kotlin.reflect.KProperty<?> column, Collection<?> coll) default Childrendefault Childrenin(String alias, kotlin.reflect.KProperty<?> column, Collection<?> coll) default Childrendefault Childrenin(kotlin.reflect.KProperty<?> column, Collection<?> coll) 字段 IN ( sql语句 )default Childrendefault Childrendefault Children字段 IS NOT NULLdefault ChildrenisNotNull(boolean condition, kotlin.reflect.KProperty<?> column) default Childrendefault ChildrenisNotNull(kotlin.reflect.KProperty<?> column) 字段 IS NULLdefault ChildrenisNull(boolean condition, kotlin.reflect.KProperty<?> column) default Childrendefault ChildrenisNull(kotlin.reflect.KProperty<?> column) 字段 <= ( sql语句 )default Childrendefault Childrendefault Children字段 < ( sql语句 )default Childrendefault Childrendefault Children字段 NOT IN (v0, v1, ...)notIn(boolean condition, String alias, kotlin.reflect.KProperty<?> column, Collection<?> coll) 字段 NOT IN (value.get(0), value.get(1), ...)default Childrendefault ChildrennotIn(boolean condition, kotlin.reflect.KProperty<?> column, Collection<?> coll) default Childrendefault ChildrennotIn(String alias, kotlin.reflect.KProperty<?> column, Collection<?> coll) default Childrendefault ChildrennotIn(kotlin.reflect.KProperty<?> column, Collection<?> coll) 字段 NOT IN ( sql语句 )default Childrendefault Childrendefault Children排序:ORDER BY 字段, ...default ChildrenorderBy(boolean condition, boolean isAsc, kotlin.reflect.KProperty<?>... columns) orderByAsc(boolean condition, String alias, List<kotlin.reflect.KProperty<?>> columns) default ChildrenorderByAsc(boolean condition, String alias, kotlin.reflect.KProperty<?>... columns) default ChildrenorderByAsc(boolean condition, List<kotlin.reflect.KProperty<?>> columns) default ChildrenorderByAsc(boolean condition, kotlin.reflect.KProperty<?>... columns) 排序:ORDER BY 字段, ...default ChildrenorderByAsc(String alias, List<kotlin.reflect.KProperty<?>> columns) default ChildrenorderByAsc(String alias, kotlin.reflect.KProperty<?> column) default ChildrenorderByAsc(String alias, kotlin.reflect.KProperty<?>... columns) default ChildrenorderByAsc(List<kotlin.reflect.KProperty<?>> columns) default ChildrenorderByAsc(kotlin.reflect.KProperty<?> column) default ChildrenorderByAsc(kotlin.reflect.KProperty<?>... columns) orderByDesc(boolean condition, String alias, List<kotlin.reflect.KProperty<?>> columns) default ChildrenorderByDesc(boolean condition, String alias, kotlin.reflect.KProperty<?>... columns) default ChildrenorderByDesc(boolean condition, List<kotlin.reflect.KProperty<?>> columns) default ChildrenorderByDesc(boolean condition, kotlin.reflect.KProperty<?>... columns) 排序:ORDER BY 字段, ...default ChildrenorderByDesc(String alias, List<kotlin.reflect.KProperty<?>> columns) default ChildrenorderByDesc(String alias, kotlin.reflect.KProperty<?>... columns) default ChildrenorderByDesc(List<kotlin.reflect.KProperty<?>> columns) default ChildrenorderByDesc(kotlin.reflect.KProperty<?>... columns)
-
Method Details
-
isNull
-
isNull
-
isNull
-
isNull
字段 IS NULL例: isNull("name")
- Parameters:
condition- 执行条件column- 字段- Returns:
- children
-
isNotNull
-
isNotNull
-
isNotNull
-
isNotNull
字段 IS NOT NULL例: isNotNull("name")
- Parameters:
condition- 执行条件column- 字段- Returns:
- children
-
in
-
in
-
in
-
in
Children in(boolean condition, String alias, kotlin.reflect.KProperty<?> column, Collection<?> coll) 字段 IN (value.get(0), value.get(1), ...)例: in("id", Arrays.asList(1, 2, 3, 4, 5))
- 注意!集合为空若存在逻辑错误,请在 condition 条件中判断
- 如果集合为 empty 则不会进行 sql 拼接
- Parameters:
condition- 执行条件column- 字段coll- 数据集合- Returns:
- children
-
in
-
in
-
in
-
in
字段 IN (v0, v1, ...)例: in("id", 1, 2, 3, 4, 5)
- 注意!数组为空若存在逻辑错误,请在 condition 条件中判断
- 如果动态数组为 empty 则不会进行 sql 拼接
- Parameters:
condition- 执行条件column- 字段values- 数据数组- Returns:
- children
-
notIn
-
notIn
-
notIn
-
notIn
Children notIn(boolean condition, String alias, kotlin.reflect.KProperty<?> column, Collection<?> coll) 字段 NOT IN (value.get(0), value.get(1), ...)例: notIn("id", Arrays.asList(1, 2, 3, 4, 5))
- Parameters:
condition- 执行条件column- 字段coll- 数据集合- Returns:
- children
-
notIn
-
notIn
-
notIn
-
notIn
Children notIn(boolean condition, String alias, kotlin.reflect.KProperty<?> column, Object... values) 字段 NOT IN (v0, v1, ...)例: notIn("id", 1, 2, 3, 4, 5)
- Parameters:
condition- 执行条件column- 字段values- 数据数组- Returns:
- children
-
inSql
-
inSql
-
inSql
-
inSql
字段 IN ( sql语句 )!! sql 注入方式的 in 方法 !!
例1: inSql("id", "1, 2, 3, 4, 5, 6")
例2: inSql("id", "select id from table where id < 3")
- Parameters:
condition- 执行条件column- 字段inValue- sql语句- Returns:
- children
-
notInSql
-
notInSql
-
notInSql
-
notInSql
Children notInSql(boolean condition, String alias, kotlin.reflect.KProperty<?> column, String inValue) 字段 NOT IN ( sql语句 )!! sql 注入方式的 not in 方法 !!
例1: notInSql("id", "1, 2, 3, 4, 5, 6")
例2: notInSql("id", "select id from table where id < 3")
- Parameters:
condition- 执行条件column- 字段inValue- sql语句 ---> 1,2,3,4,5,6 或者 select id from table where id < 3- Returns:
- children
-
gtSql
-
gtSql
-
gtSql
-
gtSql
字段 > ( sql语句 )例1: gtSql("id", "1, 2, 3, 4, 5, 6")
例1: gtSql("id", "select id from table where name = 'JunJun'")
- Parameters:
condition- 执行条件column- 字段inValue- sql语句- Returns:
- children
-
geSql
-
geSql
-
geSql
-
geSql
字段 >= ( sql语句 )例1: geSql("id", "1, 2, 3, 4, 5, 6")
例1: geSql("id", "select id from table where name = 'JunJun'")
- Parameters:
condition- 执行条件column- 字段inValue- sql语句- Returns:
- children
-
ltSql
-
ltSql
-
ltSql
-
ltSql
字段 < ( sql语句 )例1: ltSql("id", "1, 2, 3, 4, 5, 6")
例1: ltSql("id", "select id from table where name = 'JunJun'")
- Parameters:
condition- 执行条件column- 字段inValue- sql语句- Returns:
- children
-
leSql
-
leSql
-
leSql
-
leSql
字段 <= ( sql语句 )例1: leSql("id", "1, 2, 3, 4, 5, 6")
例1: leSql("id", "select id from table where name = 'JunJun'")
- Parameters:
condition- 执行条件column- 字段inValue- sql语句- Returns:
- children
-
groupBy
-
groupBy
-
groupBy
-
groupBy
-
groupBy
-
groupBy
-
groupBy
-
groupBy
分组:GROUP BY 字段, ...例: groupBy("id", "name")
- Parameters:
condition- 执行条件columns- 字段数组- Returns:
- children
-
orderByAsc
-
orderByAsc
-
orderByAsc
-
orderByAsc
-
orderByAsc
-
orderByAsc
-
orderByAsc
-
orderByAsc
-
orderByAsc
排序:ORDER BY 字段, ... ASC例: orderByAsc("id", "name")
- Parameters:
condition- 执行条件columns- 字段数组- Returns:
- children
-
orderByAsc
-
orderByDesc
-
orderByDesc
-
orderByDesc
-
orderByDesc
-
orderByDesc
-
orderByDesc
-
orderByDesc
排序:ORDER BY 字段, ... DESC例: orderByDesc("id", "name")
- Parameters:
condition- 执行条件columns- 字段数组- Returns:
- children
-
orderByDesc
-
orderBy
-
orderBy
Children orderBy(boolean condition, boolean isAsc, String alias, kotlin.reflect.KProperty<?>... columns) 排序:ORDER BY 字段, ...例: orderBy(true, "id", "name")
- Parameters:
condition- 执行条件isAsc- 是否是 ASC 排序columns- 字段数组- Returns:
- children
-
having
-
having
HAVING ( sql语句 )例1: having("sum(age) > 10")
例2: having("sum(age) > {0}", 10)
- Parameters:
condition- 执行条件sqlHaving- sql 语句params- 参数数组- Returns:
- children
-
func
-
func
消费函数- Parameters:
consumer- 消费函数- Returns:
- children
- Since:
- 3.3.1
-
func
-