接口 Nested<Param,Children>
- 所有超级接口:
Serializable
- 所有已知实现类:
AbstractLambdaWrapper
,AbstractWrapper
,LambdaQueryWrapper
,LambdaUpdateWrapper
,QueryWrapper
,UpdateWrapper
public interface Nested<Param,Children> extends Serializable
查询条件封装
泛型 Param 是具体需要运行函数的类(也是 wrapper 的子类)
嵌套
- 从以下版本开始:
- 2017-05-26
- 作者:
- hubin miemie HCL
-
方法概要
修饰符和类型 方法 说明 Children
and(boolean condition, Consumer<Param> consumer)
AND 嵌套default Children
and(Consumer<Param> consumer)
ignoreChildren
nested(boolean condition, Consumer<Param> consumer)
正常嵌套 不带 AND 或者 ORdefault Children
nested(Consumer<Param> consumer)
ignoreChildren
not(boolean condition, Consumer<Param> consumer)
not嵌套default Children
not(Consumer<Param> consumer)
ignoreChildren
or(boolean condition, Consumer<Param> consumer)
OR 嵌套default Children
or(Consumer<Param> consumer)
ignore
-
方法详细资料
-
and
ignore -
and
AND 嵌套例: and(i -> i.eq("name", "李白").ne("status", "活着"))
- 参数:
condition
- 执行条件consumer
- 消费函数- 返回:
- children
-
or
ignore -
or
OR 嵌套例: or(i -> i.eq("name", "李白").ne("status", "活着"))
- 参数:
condition
- 执行条件consumer
- 消费函数- 返回:
- children
-
nested
ignore -
nested
正常嵌套 不带 AND 或者 OR例: nested(i -> i.eq("name", "李白").ne("status", "活着"))
- 参数:
condition
- 执行条件consumer
- 消费函数- 返回:
- children
-
not
ignore -
not
not嵌套例: not(i -> i.eq("name", "李白").ne("status", "活着"))
- 参数:
condition
- 执行条件consumer
- 消费函数- 返回:
- children
-