接口 StringExpression

所有超级接口:
ComparableExpression<String>, Expression<String>, Selection<String>
所有已知子接口:
PropExpression.Str

public interface StringExpression extends ComparableExpression<String>
  • 方法详细资料

    • like

      @NotNull default @NotNull Predicate like(String pattern)
      Returns a LIKE predicate for the given pattern with default match mode.

      The pattern must not be null. The default match mode used is LikeMode.ANYWHERE, which matches the pattern anywhere in the value.

      参数:
      pattern - the pattern to match, must not be null
      返回:
      the LIKE predicate
      抛出:
      NullPointerException - if the pattern is null
    • likeIf

      @Nullable default @Nullable Predicate likeIf(boolean condition, @Nullable @Nullable String pattern)
      Returns a LIKE predicate if the given condition is true and pattern is not null or empty. The LIKE predicate matches values that contain the given pattern anywhere in the value (LikeMode.ANYWHERE).
      参数:
      condition - the condition to check
      pattern - the pattern to match in the LIKE predicate, may be null
      返回:
      a LIKE predicate if the condition is true and pattern is not null or empty, null otherwise
    • likeIf

      @Nullable default @Nullable Predicate likeIf(@Nullable @Nullable String pattern)
      Returns a LIKE predicate if the given pattern is not null or empty. The LIKE predicate matches values that contain the given pattern anywhere in the value (LikeMode.ANYWHERE).

      This is an overload of the likeIf(boolean, String) method that passes a condition of true.

      参数:
      pattern - the pattern to match in the LIKE predicate, may be null
      返回:
      a LIKE predicate if the pattern is not null or empty, null otherwise
    • like

      @NotNull @NotNull Predicate like(String pattern, LikeMode likeMode)
      Returns a LIKE predicate with the given pattern and match mode.

      Neither the pattern nor match mode may be null.

      参数:
      pattern - the pattern to match, must not be null
      likeMode - the mode determining how to match the pattern, must not be null
      返回:
      the LIKE predicate
      抛出:
      NullPointerException - if pattern or likeMode is null
    • likeIf

      @Nullable default @Nullable Predicate likeIf(boolean condition, @Nullable @Nullable String pattern, LikeMode likeMode)
      Create `like` expression when the argument `condition` is true and the argument `pattern` is neither null nor empty string.
      参数:
      condition - The condition, if it is false, returns null directly, otherwise check the other parameter `pattern`
      pattern - The pattern, If it is null or empty string, returns null directly, otherwise check the other parameter `condition`
      likeMode - The like mode which can be LikeMode.ANYWHERE, LikeMode.START, LikeMode.END or LikeMode.EXACT
      返回:
      The `like` expression or null
    • likeIf

      @Nullable default @Nullable Predicate likeIf(@Nullable @Nullable String pattern, LikeMode likeMode)
      Create `like` expression when the argument `pattern` is neither null nor empty string.
      参数:
      pattern - The pattern, If it is null or empty string, returns null directly, otherwise check create the expression
      likeMode - The like mode which can be LikeMode.ANYWHERE, LikeMode.START, LikeMode.END or LikeMode.EXACT
      返回:
      The `like` expression or null
    • ilike

      @NotNull default @NotNull Predicate ilike(String pattern)
      Returns a case-insensitive like predicate for the given pattern with default match mode.

      The pattern must not be null. The default match mode used is LikeMode.ANYWHERE, which matches the pattern anywhere in the value.

      参数:
      pattern - the pattern to match, must not be null
      返回:
      the case-insensitive LIKE predicate
      抛出:
      NullPointerException - if the pattern is null
    • ilikeIf

      @Nullable default @Nullable Predicate ilikeIf(boolean condition, @Nullable @Nullable String pattern)
      Create `case-insensitive like` expression when the argument `condition` is true and the argument `pattern` is neither null nor empty string.
      参数:
      condition - The condition, if it is false, returns null directly, otherwise check the other parameter `pattern`
      pattern - The pattern, If it is null or empty string, returns null directly, otherwise check the other parameter `condition`
      返回:
      The `insensitively like` expression or null
    • ilikeIf

      @Nullable default @Nullable Predicate ilikeIf(@Nullable @Nullable String pattern)
      Create `case-insensitive like` expression when the argument `pattern` is neither null nor empty string.
      参数:
      pattern - The pattern, If it is null or empty string, returns null directly, otherwise check create the expression
      返回:
      The `insensitively like` expression or null
    • ilike

      @NotNull @NotNull Predicate ilike(String pattern, LikeMode likeMode)
      Returns a case-insensitive LIKE predicate with the given pattern and match mode.

      Neither the pattern nor like mode may be null, otherwise NullPointerException will be thrown.

      参数:
      pattern - the pattern to match in the LIKE predicate, must not be null
      likeMode - the mode determining how to match the pattern, must not be null
      返回:
      the case-insensitive LIKE predicate
      抛出:
      NullPointerException - if pattern or likeMode is null
    • ilikeIf

      @Nullable default @Nullable Predicate ilikeIf(boolean condition, @Nullable @Nullable String pattern, LikeMode likeMode)
      Create `insensitively like` expression when the argument `condition` is true and the argument `pattern` is neither null nor empty string.
      参数:
      condition - The condition, if it is false, returns null directly, otherwise check the other parameter `pattern`
      pattern - The pattern, If it is null or empty string, returns null directly, otherwise check the other parameter `condition`
      likeMode - The like mode which can be LikeMode.ANYWHERE, LikeMode.START, LikeMode.END or LikeMode.EXACT
      返回:
      The `insensitively like` expression or null
    • ilikeIf

      @Nullable default @Nullable Predicate ilikeIf(@Nullable @Nullable String pattern, LikeMode likeMode)
      Create `insensitively like` expression when the argument `pattern` is neither null nor empty string.
      参数:
      pattern - The pattern, If it is null or empty string, returns null directly, otherwise check create the expression
      likeMode - The like mode which can be LikeMode.ANYWHERE, LikeMode.START, LikeMode.END or LikeMode.EXACT
      返回:
      The `insensitively like` expression or null
    • upper

    • lower

    • concat

      StringExpression concat(String... others)
    • concat

      @NotNull @NotNull StringExpression concat(Expression<String>... others)
    • coalesce

      @NotNull @NotNull StringExpression coalesce(String defaultValue)
      指定者:
      coalesce 在接口中 ComparableExpression<String>
      指定者:
      coalesce 在接口中 Expression<String>
    • coalesce

      @NotNull @NotNull StringExpression coalesce(Expression<String> defaultExpr)
      指定者:
      coalesce 在接口中 ComparableExpression<String>
      指定者:
      coalesce 在接口中 Expression<String>
    • coalesceBuilder

      @NotNull CoalesceBuilder.Str coalesceBuilder()
      指定者:
      coalesceBuilder 在接口中 ComparableExpression<String>
      指定者:
      coalesceBuilder 在接口中 Expression<String>