接口 Expression<T>
- 所有超级接口:
Selection<T>
- 所有已知子接口:
ComparableExpression<T>,ConfigurableSubQuery<R>,ExpressionImplementor<T>,NumericExpression<N>,Predicate,PredicateImplementor,PropExpression<T>,PropExpression.Cmp<T>,PropExpression.Embedded<T>,PropExpression.Num<N>,PropExpression.Str,PropExpressionImplementor<T>,StringExpression,TupleExpressionImplementor<T>,TypedSubQuery<R>,VirtualPredicate
- 所有已知实现类:
AbstractExpression,AbstractPredicate,AbstractTypedEmbeddedPropExpression,AssociatedPredicate,CompositePredicate,ConfigurableSubQueryImpl,ExistsPredicate,MergedTypedSubQueryImpl,NotPredicate,PropExpressionImpl,PropExpressionImpl.EmbeddedImpl,SubQueryFunctionExpression,SubQueryFunctionExpression.All,SubQueryFunctionExpression.Any,Tuples.Expr2,Tuples.Expr3,Tuples.Expr4,Tuples.Expr5,Tuples.Expr6,Tuples.Expr7,Tuples.Expr8,Tuples.Expr9,VirtualPredicateMergedResult
-
嵌套类概要
嵌套类修饰符和类型接口说明static interfacestatic interfacestatic interfacestatic interface -
方法概要
修饰符和类型方法说明static @NotNull Expression.AnyFactoryany()@NotNull Orderasc()@NotNull Expression<T>coalesce(Expression<T> defaultExpr) @NotNull Expression<T>@NotNull CoalesceBuilder<T>static @NotNull Expression.ComparableFactorystatic @NotNull StringExpressionstatic <N extends Number & Comparable<N>>
@NotNull NumericExpression<N>constant(N value) @NotNull NumericExpression<Long>count()@NotNull NumericExpression<Long>count(boolean distinct) @NotNull Orderdesc()@NotNull Predicateeq(Expression<T> other) Create `equal` predicate or `is null` predicate.@NotNull PredicateCreate `equal` predicate or `is null` predicate.default @Nullable PredicateCreate `equal` predicate when certain conditions are met.default @Nullable PredicateCreate `equal` predicate when certain conditions are met.@NotNull Predicatein(Collection<T> values) Create `in` predicate@NotNull Predicatein(TypedSubQuery<T> subQuery) Create `in` predicatedefault @Nullable PredicateinIf(boolean condition, @Nullable Collection<T> values) Create `in` predicate when certain conditions are met.default @Nullable PredicateinIf(boolean condition, @Nullable TypedSubQuery<T> subQuery) Create `in` predicate when certain conditions are met.default @Nullable PredicateinIf(@Nullable Collection<T> values) Create `in` predicate when certain conditions are met.default @Nullable PredicateinIf(@Nullable TypedSubQuery<T> subQuery) Create `in` predicate when certain conditions are met.@NotNull Predicate@NotNull PredicateisNull()@NotNull Predicatene(Expression<T> other) Create `not equal` predicate or `is not null` predicate.@NotNull PredicateCreate `not equal` predicate or `is not null` predicate.default @Nullable PredicateCreate `not equal` predicate when certain conditions are met.default @Nullable PredicateCreate `not equal` predicate when certain conditions are met.@NotNull PredicatenotIn(Collection<T> values) Create `not in` predicate@NotNull PredicatenotIn(TypedSubQuery<T> subQuery) Create `not in` predicatedefault @Nullable PredicatenotInIf(boolean condition, @Nullable Collection<T> values) Create `not in` predicate when certain conditions are met.default @Nullable PredicatenotInIf(boolean condition, @Nullable TypedSubQuery<T> subQuery) Create `not in` predicate when certain conditions are met.default @Nullable PredicatenotInIf(@Nullable Collection<T> values) Create `not in` predicate when certain conditions are met.default @Nullable PredicatenotInIf(@Nullable TypedSubQuery<T> subQuery) Create `not in` predicate when certain conditions are met.static <T> @NotNull Expression<T>static @NotNull Expression.NumericFactorynumeric()static @NotNull NumericExpression<Long>rowCount()Global expression for row count across tablesstatic @NotNull Expression.StringFactorystring()static <T1,T2> @NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple2<T1, T2>> tuple(Expression<T1> expr1, Expression<T2> expr2) static <T1,T2, T3>
@NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple3<T1,T2, T3>> tuple(Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3) static <T1,T2, T3, T4>
@NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple4<T1,T2, T3, T4>> tuple(Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4) static <T1,T2, T3, T4, T5>
@NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple5<T1,T2, T3, T4, T5>> tuple(Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4, Expression<T5> expr5) static <T1,T2, T3, T4, T5, T6>
@NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple6<T1,T2, T3, T4, T5, T6>> tuple(Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4, Expression<T5> expr5, Expression<T6> expr6) static <T1,T2, T3, T4, T5, T6, T7>
@NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple7<T1,T2, T3, T4, T5, T6, T7>> tuple(Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4, Expression<T5> expr5, Expression<T6> expr6, Expression<T7> expr7) static <T1,T2, T3, T4, T5, T6, T7, T8>
@NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple8<T1,T2, T3, T4, T5, T6, T7, T8>> tuple(Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4, Expression<T5> expr5, Expression<T6> expr6, Expression<T7> expr7, Expression<T8> expr8) static <T1,T2, T3, T4, T5, T6, T7, T8, T9>
@NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple9<T1,T2, T3, T4, T5, T6, T7, T8, T9>> tuple(Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4, Expression<T5> expr5, Expression<T6> expr6, Expression<T7> expr7, Expression<T8> expr8, Expression<T9> expr9)
-
方法详细资料
-
eq
Create `equal` predicate or `is null` predicate.- If
thisis null literal, returnsother.isNull() otheris null literal, returnsthis.isNull()
- 参数:
other- The right operand which cannot be null- 返回:
- `equal` predicate or `is null` predicate
- 抛出:
NullPointerException- The argument `other` is null
- If
-
eq
Create `equal` predicate or `is null` predicate.If
otheris null, creates an `is null` predicate- 参数:
other- The right operand which can be null- 返回:
- `equal` predicate or `is null` predicate
-
eqIf
Create `equal` 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- 返回:
- A predicate or null
- 另请参阅:
-
eqIf
Create `equal` predicate when certain conditions are met.- 参数:
other- The right operand which can be null, if it is null or empty string, returns null directly; otherwise, create predicate- 返回:
- A predicate or null
- 另请参阅:
-
ne
Create `not equal` predicate or `is not null` predicate.- If
thisis null literal, returnsother.isNotNull() otheris null literal, returnsthis.isNotNull()
- 参数:
other- The right operand which cannot be null- 返回:
- `not equal` predicate or `is not null` predicate
- 抛出:
NullPointerException- The argument `other` is null
- If
-
ne
Create `not equal` predicate or `is not null` predicate.If
otheris null, creates an `is not null` predicate- 参数:
other- The right operand which can be null- 返回:
- `not equal` predicate or `is not null` predicate
-
neIf
Create `not equal` 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- 返回:
- `not equal` predicate or null
- 另请参阅:
-
neIf
Create `not equal` predicate when certain conditions are met.- 参数:
other- The right operand which can be null, if it is null or empty string, returns null directly; otherwise, create predicate- 返回:
- `not equal` predicate or null
- 另请参阅:
-
isNull
-
isNotNull
-
in
Create `in` predicate- 参数:
values- A collection which cannot be null- 返回:
- `in` predicate
- 抛出:
NullPointerException- The argumentvaluesis null
-
inIf
@Nullable default @Nullable Predicate inIf(boolean condition, @Nullable @Nullable Collection<T> values) Create `in` predicate when certain conditions are met.- 参数:
condition- If this argument is true and theotheris not null, creates predicate; otherwise, returns nullvalues- The right operand which can be null. If it is null, returns null directly; otherwise, check ifconditionis true to decide whether to create predicate- 返回:
- `in` predicate or null
-
inIf
Create `in` predicate when certain conditions are met.- 参数:
values- The right operand which can be null. If it is null, returns null directly; otherwise, creates predicate- 返回:
- `in` predicate or null
-
notIn
Create `not in` predicate- 参数:
values- A collection which cannot be null- 返回:
- `not in` predicate
- 抛出:
NullPointerException- The argumentvaluesis null
-
notInIf
@Nullable default @Nullable Predicate notInIf(boolean condition, @Nullable @Nullable Collection<T> values) Create `not in` predicate when certain conditions are met.- 参数:
condition- If this argument is true and thevaluesis not null, creates predicate; otherwise, returns nullvalues- The right operand which can be null. If it is null, returns null directly; otherwise, check ifconditionis true to decide whether to create predicate- 返回:
- `not in` predicate or null
-
notInIf
Create `not in` predicate when certain conditions are met.- 参数:
values- The right operand which can be null. If it is null, returns null directly; otherwise, creates predicate- 返回:
- `not in` predicate or null
-
in
Create `in` predicate- 参数:
subQuery- A sub query which cannot be null- 返回:
- `in` predicate
- 抛出:
NullPointerException- The argumentsubQueryis null
-
inIf
@Nullable default @Nullable Predicate inIf(boolean condition, @Nullable @Nullable TypedSubQuery<T> subQuery) Create `in` predicate when certain conditions are met.- 参数:
condition- If this argument is true and thesubQueryis not null, creates predicate; otherwise, returns nullsubQuery- The right operand which can be null. If it is null, returns null directly; otherwise, check ifconditionis true to decide whether to create predicate- 返回:
- `in` predicate or null
-
inIf
Create `in` predicate when certain conditions are met.- 参数:
subQuery- The right operand which can be null. If it is null, returns null directly; otherwise, creates predicate- 返回:
- `in` predicate or null
-
notIn
Create `not in` predicate- 参数:
subQuery- A sub query which cannot be null- 返回:
- `not in` predicate
- 抛出:
NullPointerException- The argumentsubQueryis null
-
notInIf
@Nullable default @Nullable Predicate notInIf(boolean condition, @Nullable @Nullable TypedSubQuery<T> subQuery) Create `not in` predicate when certain conditions are met.- 参数:
condition- If this argument is true and thesubQueryis not null, creates predicate; otherwise, returns nullsubQuery- The right operand which can be null. If it is null, returns null directly; otherwise, check ifconditionis true to decide whether to create predicate- 返回:
- `not in` predicate or null
-
notInIf
Create `not in` predicate when certain conditions are met.- 参数:
subQuery- The right operand which can be null. If it is null, returns null directly; otherwise, creates predicate- 返回:
- `not in` predicate or null
-
count
-
count
-
coalesce
-
coalesce
-
coalesceBuilder
-
asc
-
desc
-
constant
-
constant
-
rowCount
Global expression for row count across tables- 返回:
- The row count across tables
- 另请参阅:
-
string
-
numeric
-
comparable
-
any
-
nullValue
-
tuple
@NotNull static <T1,T2> @NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple2<T1,T2>> tuple(Expression<T1> expr1, Expression<T2> expr2) -
tuple
@NotNull static <T1,T2, @NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple3<T1,T3> T2, tupleT3>> (Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3) -
tuple
@NotNull static <T1,T2, @NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple4<T1,T3, T4> T2, tupleT3, T4>> (Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4) -
tuple
@NotNull static <T1,T2, @NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple5<T1,T3, T4, T5> T2, tupleT3, T4, T5>> (Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4, Expression<T5> expr5) -
tuple
@NotNull static <T1,T2, @NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple6<T1,T3, T4, T5, T6> T2, tupleT3, T4, T5, T6>> (Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4, Expression<T5> expr5, Expression<T6> expr6) -
tuple
@NotNull static <T1,T2, @NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple7<T1,T3, T4, T5, T6, T7> T2, tupleT3, T4, T5, T6, T7>> (Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4, Expression<T5> expr5, Expression<T6> expr6, Expression<T7> expr7) -
tuple
@NotNull static <T1,T2, @NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple8<T1,T3, T4, T5, T6, T7, T8> T2, tupleT3, T4, T5, T6, T7, T8>> (Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4, Expression<T5> expr5, Expression<T6> expr6, Expression<T7> expr7, Expression<T8> expr8) -
tuple
@NotNull static <T1,T2, @NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple9<T1,T3, T4, T5, T6, T7, T8, T9> T2, tupleT3, T4, T5, T6, T7, T8, T9>> (Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3, Expression<T4> expr4, Expression<T5> expr5, Expression<T6> expr6, Expression<T7> expr7, Expression<T8> expr8, Expression<T9> expr9)
-