Interface Condition
- All Superinterfaces:
ArithmeticOperable, ComparisonOperable, Expression, LogicalOperable, OrderOperable, PatternMatchingOperable, Segment, Serializable
- All Known Implementing Classes:
Condition.BooleanExpressionCondition, Condition.StaticCondition, Condition.TemplateCondition
条件,即布尔表达式,独立出来单纯因为做标记,在where等场景仅允许传入Condition
- Author:
- Maning
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class布尔表达式static class静态条件static final class模板条件Nested classes/interfaces inherited from interface ComparisonOperable
ComparisonOperable.AndNested classes/interfaces inherited from interface Expression
Expression.Default, Expression.StaticExpression -
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Conditionand(Collection<? extends Condition> conditions) and拼接条件static Conditionand拼接条件static Condition静态条件static Condition模板条件static Conditionof(String template, Collection<?> params) 模板条件static Conditionof(Expression booleanExpression) 布尔表达式条件static Condition.TemplateCondition模板条件static Conditionof(Template template, Collection<?> params) 模板条件static Conditionor(Collection<? extends Condition> conditions) or拼接条件static Conditionor拼接条件Methods inherited from interface ArithmeticOperable
div, div, div, div, minus, minus, minus, minus, mul, mul, mul, mul, plus, plus, plus, plusMethods inherited from interface ComparisonOperable
between, betweenAnd, eq, eq, gt, gt, gte, gte, in, in, in, isNotNull, isNull, lt, lt, lte, lte, ne, ne, notBetween, notBetweenAnd, notIn, notIn, notInMethods inherited from interface Expression
as, asConditionMethods inherited from interface LogicalOperable
and, and, and, and, and, and, and, and, and, or, or, or, or, or, or, or, or, orMethods inherited from interface OrderOperable
asc, descMethods inherited from interface PatternMatchingOperable
contains, endWith, like, notContains, notEndWith, notLike, notStartWith, startWithMethods inherited from interface Segment
pseudoSql, staticable
-
Field Details
-
FALSE
1!=1条件常量 -
TRUE
1=1条件常量
-
-
Method Details
-
and
-
and
and拼接条件- Parameters:
conditions- 条件- Returns:
- 拼接后条件
-
of
模板条件- Parameters:
template- 模板params- 参数- Returns:
- 条件
-
of
-
of
模板条件- Parameters:
template- 模板params- 参数- Returns:
- 条件
-
of
模板条件- Parameters:
template- 模板params- 参数- Returns:
- 条件
-
of
-
of
布尔表达式条件- Parameters:
booleanExpression- 布尔表达式,需要自行确保表达式为布尔类型- Returns:
- 条件
-
or
-
or
or拼接条件- Parameters:
conditions- 条件- Returns:
- 拼接后条件
-