接口 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

public interface Expression<T> extends Selection<T>
  • 方法详细资料

    • eq

      @NotNull @NotNull Predicate eq(@NotNull @NotNull Expression<T> other)
      Check if two expressions are equal.
      • If this is null literal, returns other.isNull()
      • other is null literal, returns this.isNull()
      参数:
      other - Right operand of expression
      返回:
      A predicate
    • eq

      @NotNull @NotNull Predicate eq(@Nullable T other)
      Check if two expressions are equal.
      • If other is null, returns this.isNull()
      参数:
      other - Right operand of expression
      返回:
      A predicate
    • eq

      @Nullable default @Nullable Predicate eq(boolean condition, @Nullable T other)
      Create `equal` expression by condition
      参数:
      condition - If true, creates expression; otherwise, returns null
      other - The right operand
      返回:
      A predicate or null
    • ne

      @NotNull @NotNull Predicate ne(@NotNull @NotNull Expression<T> other)
      Check if two expressions are not equal.
      • If this is null literal, returns other.isNotNull()
      • other is null literal, returns this.isNotNull()
      参数:
      other - Right operand of expression
      返回:
      A predicate
    • ne

      @NotNull @NotNull Predicate ne(@Nullable T other)
      Check if two expressions are not equal.
      • If other is null, returns this.isNotNull()
      参数:
      other - Right operand of expression
      返回:
      A predicate
    • ne

      @Nullable default @Nullable Predicate ne(boolean condition, @Nullable T other)
      Create `not equal` expression by condition
      参数:
      condition - If true, creates expression; otherwise, returns null
      other - The right operand
      返回:
      A predicate or null
    • isNull

      @NotNull @NotNull Predicate isNull()
    • isNotNull

      @NotNull @NotNull Predicate isNotNull()
    • in

      @NotNull @NotNull Predicate in(@NotNull @NotNull Collection<T> values)
    • in

      @Nullable default @Nullable Predicate in(boolean condition, @Nullable @Nullable Collection<T> values)
    • notIn

      @NotNull @NotNull Predicate notIn(@NotNull @NotNull Collection<T> values)
    • notIn

      @Nullable default @Nullable Predicate notIn(boolean condition, @Nullable @Nullable Collection<T> values)
    • in

      @NotNull @NotNull Predicate in(@NotNull @NotNull TypedSubQuery<T> subQuery)
    • in

      @Nullable default @Nullable Predicate in(boolean condition, @Nullable @Nullable TypedSubQuery<T> subQuery)
    • notIn

      @NotNull @NotNull Predicate notIn(@NotNull @NotNull TypedSubQuery<T> subQuery)
    • notIn

      @Nullable default @Nullable Predicate notIn(boolean condition, @Nullable @Nullable TypedSubQuery<T> subQuery)
    • count

      @NotNull @NotNull NumericExpression<Long> count()
    • count

      @NotNull @NotNull NumericExpression<Long> count(boolean distinct)
    • coalesce

      @NotNull @NotNull Expression<T> coalesce(T defaultValue)
    • coalesce

      @NotNull @NotNull Expression<T> coalesce(Expression<T> defaultExpr)
    • coalesceBuilder

      @NotNull @NotNull CoalesceBuilder<T> coalesceBuilder()
    • asc

      @NotNull @NotNull Order asc()
    • desc

      @NotNull @NotNull Order desc()
    • constant

      @NotNull static <N extends Number & Comparable<N>> @NotNull NumericExpression<N> constant(N value)
    • rowCount

      @NotNull static @NotNull NumericExpression<Long> rowCount()
      Global expression for row count across tables
      返回:
      The row count across tables
      另请参阅:
    • string

      @NotNull static @NotNull Expression.StringFactory string()
    • numeric

      @NotNull static @NotNull Expression.NumericFactory numeric()
    • comparable

      @NotNull static @NotNull Expression.ComparableFactory comparable()
    • any

      @NotNull static @NotNull Expression.AnyFactory any()
    • nullValue

      @NotNull static <T> @NotNull Expression<T> nullValue(Class<T> type)
    • 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, T3> @NotNull Expression<org.babyfish.jimmer.sql.ast.tuple.Tuple3<T1,T2,T3>> tuple(Expression<T1> expr1, Expression<T2> expr2, Expression<T3> expr3)
    • tuple

      @NotNull 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)
    • tuple

      @NotNull 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)
    • tuple

      @NotNull 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)
    • tuple

      @NotNull 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)
    • tuple

      @NotNull 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)
    • tuple

      @NotNull 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)