接口 ComparableExpression<T extends Comparable<?>>
- 所有超级接口:
Expression<T>,Selection<T>
- 所有已知子接口:
NumericExpression<N>,PropExpression.Cmp<T>,PropExpression.Num<N>,PropExpression.Str,StringExpression
-
嵌套类概要
从接口继承的嵌套类/接口 org.babyfish.jimmer.sql.ast.Expression
Expression.AnyFactory, Expression.ComparableFactory, Expression.NumericFactory, Expression.StringFactory -
方法概要
修饰符和类型方法说明@NotNull Predicatebetween(Expression<T> min, Expression<T> max) Create `between` predicate@NotNull PredicateCreate `between` predicatedefault @Nullable PredicateCreate `between`, `less than or equal to` or `greater than or equal to` predicate when certain conditions are met.default @Nullable PredicateCreate `between`, `less than or equal to` or `greater than or equal to` predicate when certain conditions are met.@NotNull ComparableExpression<T>coalesce(Expression<T> defaultExpr) @NotNull ComparableExpression<T>@NotNull CoalesceBuilder.Cmp<T>@NotNull Predicatege(Expression<T> other) Create `greater than or equal to` predicate@NotNull PredicateCreate `greater than or equal to` predicatedefault @Nullable PredicateCreate `greater than or equal to` predicate when certain conditions are met.default @Nullable PredicateCreate `greater than or equal to` predicate when certain conditions are met.@NotNull Predicategt(Expression<T> other) Create `greater than` predicate@NotNull PredicateCreate `greater than` predicatedefault @Nullable PredicateCreate `greater than` predicate when certain conditions are met.default @Nullable PredicateCreate `greater than` predicate when certain conditions are met.@NotNull Predicatele(@NotNull Expression<T> other) Create `less than or equal to` predicate@NotNull PredicateCreate `less than or equal to` predicatedefault @Nullable PredicateCreate `less than or equal to` predicate when certain conditions are met.default @Nullable PredicateCreate `less than or equal to` predicate when certain conditions are met.@NotNull Predicatelt(@NotNull Expression<T> other) Create `less than` predicate@NotNull PredicateCreate `less than` predicatedefault @Nullable PredicateCreate `less than` predicate when certain conditions are met.default @Nullable PredicateCreate `less than` predicate when certain conditions are met.@NotNull PredicatenotBetween(Expression<T> min, Expression<T> max) Create `not between` predicate@NotNull PredicatenotBetween(T min, T max) Create `not between` predicatedefault @Nullable PredicatenotBetweenIf(boolean condition, T min, T max) Create `not between`, `greater than` or `less than` predicate when certain conditions are met.default @Nullable PredicatenotBetweenIf(T min, T max) Create `not between`, `greater than` or `less than` predicate when certain conditions are met.
-
方法详细资料
-
lt
Create `less than` predicate- 参数:
other- The right operand which cannot be null- 返回:
- `less than` predicate
- 抛出:
IllegalArgumentException- The argumentotheris null
-
lt
Create `less than` predicate- 参数:
other- The right operand which cannot be null- 返回:
- `less than` predicate
- 抛出:
IllegalArgumentException- The argumentotheris null
-
ltIf
Create `less than` predicate when certain conditions are met.- 参数:
condition- If this argument is true and theotheris neither null nor empty string, creates predicate; otherwise, returns nullother- The right operand which can be null. If it is null or empty string, returns null directly; otherwise, check ifconditionis true to decide whether to create predicate- 返回:
- `less than` predicate or null
-
ltIf
Create `less than` predicate when certain conditions are met.- 参数:
other- The right operand which can be null. If it is null or empty, returns null directly; otherwise, creates predicate- 返回:
- `less than` predicate or null
-
le
Create `less than or equal to` predicate- 参数:
other- The right operand which cannot be null- 返回:
- `less than or equal to` predicate
- 抛出:
IllegalArgumentException- The argumentotheris null
-
le
Create `less than or equal to` predicate- 参数:
other- The right operand which cannot be null- 返回:
- `less than or equal to` predicate
- 抛出:
IllegalArgumentException- The argumentotheris null
-
leIf
Create `less than or equal to` predicate when certain conditions are met.- 参数:
condition- If this argument is true and theotheris neither null nor empty string, creates predicate; otherwise, returns nullother- The right operand which can be null. If it is null or empty string, returns null directly; otherwise, check ifconditionis true to decide whether to create predicate- 返回:
- `less than or equal to` predicate or null
-
leIf
Create `less than or equal to` predicate when certain conditions are met.- 参数:
other- The right operand which can be null. If it is null or empty, returns null directly; otherwise, creates predicate- 返回:
- `less than or equal to` predicate or null
-
gt
Create `greater than` predicate- 参数:
other- The right operand which cannot be null- 返回:
- `greater than` predicate
- 抛出:
IllegalArgumentException- The argumentotheris null
-
gt
Create `greater than` predicate- 参数:
other- The right operand which cannot be null- 返回:
- `greater than` predicate
- 抛出:
IllegalArgumentException- The argumentotheris null
-
gtIf
Create `greater than` predicate when certain conditions are met.- 参数:
condition- If this argument is true and theotheris neither null nor empty string, creates predicate; otherwise, returns nullother- The right operand which can be null. If it is null or empty string, returns null directly; otherwise, check ifconditionis true to decide whether to create predicate- 返回:
- `greater than` predicate or null
-
gtIf
Create `greater than` predicate when certain conditions are met.- 参数:
other- The right operand which can be null. If it is null or empty, returns null directly; otherwise, creates predicate- 返回:
- `greater than` predicate or null
-
ge
Create `greater than or equal to` predicate- 参数:
other- The right operand which cannot be null- 返回:
- `greater than or equal to` predicate
- 抛出:
IllegalArgumentException- The argumentotheris null
-
ge
Create `greater than or equal to` predicate- 参数:
other- The right operand which cannot be null- 返回:
- `greater than or equal to` predicate
- 抛出:
IllegalArgumentException- The argumentotheris null
-
geIf
Create `greater than or equal to` predicate when certain conditions are met.- 参数:
condition- If this argument is true and theotheris neither null nor empty string, creates predicate; otherwise, returns nullother- The right operand which can be null. If it is null or empty string, returns null directly; otherwise, check ifconditionis true to decide whether to create predicate- 返回:
- `greater than or equal to` predicate or null
-
geIf
Create `greater than or equal to` predicate when certain conditions are met.- 参数:
other- The right operand which can be null. If it is null or empty, returns null directly; otherwise, creates predicate- 返回:
- `greater than or equal to` predicate or null
-
between
Create `between` predicate- 参数:
min- The min bound which cannot be nullmax- The max bound which cannot be null- 返回:
- `between` predicate
- 抛出:
IllegalArgumentException- The argumentminormaxis null
-
between
Create `between` predicate- 参数:
min- The min bound which cannot be nullmax- The max bound which cannot be null- 返回:
- `between` predicate
- 抛出:
IllegalArgumentException- The argumentminormaxis null
-
betweenIf
@Nullable default @Nullable Predicate betweenIf(boolean condition, @Nullable T min, @Nullable T max) Create `between`, `less than or equal to` or `greater than or equal to` predicate when certain conditions are met.- If
conditionis false, returns null directly - If
conditionis true and bothminandmaxare null or empty string, returns null directly - If
conditionis true and onlyminis null or empty string, returnsle(max) - If
conditionis true and onlymaxis null or empty string, returnsge(min) - If
conditionis true and none ofminandmaxis null or empty string, creates `between` predicate
- 参数:
min- The min bound which can be nullmax- The max bound which can be null- 返回:
- null, `between`, `less than or equal to` or `greater than or equal to` predicate
- If
-
betweenIf
Create `between`, `less than or equal to` or `greater than or equal to` predicate when certain conditions are met.- If both
minandmaxare null or empty string, returns null directly - If only
minis null or empty string, returnsle(max) - If only
maxis null or empty string, returnsge(min) - If none of
minandmaxis null or empty string, create `between` predicate
- 参数:
min- The min bound which can be nullmax- The max bound which can be null- 返回:
- null, `between`, `less than or equal to` or `greater than or equal to` predicate
- If both
-
notBetween
Create `not between` predicate- 参数:
min- The min bound which cannot be nullmax- The max bound which cannot be null- 返回:
- `not between` predicate
- 抛出:
IllegalArgumentException- The argumentminormaxis null
-
notBetween
Create `not between` predicate- 参数:
min- The min bound which cannot be nullmax- The max bound which cannot be null- 返回:
- `not between` predicate
- 抛出:
IllegalArgumentException- The argumentminormaxis null
-
notBetweenIf
@Nullable default @Nullable Predicate notBetweenIf(boolean condition, @Nullable T min, @Nullable T max) Create `not between`, `greater than` or `less than` predicate when certain conditions are met.- If
conditionis false, returns null directly - If
conditionis true and bothminandmaxare null or empty string, returns null directly - If
conditionis true and onlyminis null or empty string, returnsgt(max) - If
conditionis true and onlymaxis null or empty string, returnslt(min) - If
conditionis true and none ofminandmaxis null or empty string, creates `not between` predicate
- 参数:
min- The min bound which can be nullmax- The max bound which can be null- 返回:
- null, `between`, `greater than` or `less than` predicate
- If
-
notBetweenIf
Create `not between`, `greater than` or `less than` predicate when certain conditions are met.- If both
minandmaxare null or empty string, returns null directly - If only
minis null or empty string, returnsgt(max) - If only
maxis null or empty string, returnslt(min) - If none of
minandmaxis null or empty string, creates `not between` predicate
- 参数:
min- The min bound which can be nullmax- The max bound which can be null- 返回:
- null, `between`, `greater than` or `less than` predicate
- If both
-
coalesce
- 指定者:
coalesce在接口中Expression<T extends Comparable<?>>
-
coalesce
- 指定者:
coalesce在接口中Expression<T extends Comparable<?>>
-
coalesceBuilder
- 指定者:
coalesceBuilder在接口中Expression<T extends Comparable<?>>
-