接口 StringExpressionImplementor
- 所有超级接口:
ComparableExpression<String>,ComparableExpressionImplementor<String>,Expression<String>,ExpressionImplementor<String>,Selection<String>,StringExpression
public interface StringExpressionImplementor
extends StringExpression, ComparableExpressionImplementor<String>
-
嵌套类概要
从接口继承的嵌套类/接口 org.babyfish.jimmer.sql.ast.Expression
Expression.AnyFactory, Expression.ComparableFactory, Expression.DateFactory, Expression.NumericFactory, Expression.StringFactory, Expression.TemporalFactory -
方法概要
修饰符和类型方法说明default @NotNull StringExpressiondefault @NotNull StringExpressioncoalesce(Expression<String> defaultExpr) default @NotNull CoalesceBuilder.Strdefault StringExpressiondefault @NotNull StringExpressionconcat(Expression<String>... others) getType()default @NotNull PredicateReturns a case-insensitive LIKE predicate with the given pattern and match mode.default StringExpressionleft(Expression<Integer> length) Returns the leftmost characters from a string.default NumericExpression<Integer> length()Returns the length of the string.default @NotNull PredicateReturns a LIKE predicate with the given pattern and match mode.default StringExpressionlower()default StringExpressionLeft-pads a string with a specified pad string to a certain length.default StringExpressionlpad(Expression<Integer> length, String padString) Left-pads a string with a specified pad string to a certain length.default StringExpressionltrim()Returns a string with leading whitespace removed.default NumericExpression<Integer> position(String substring, Expression<Integer> start) Returns the position of the first occurrence of a substring in a string, starting the search at a specified position.default StringExpressionReplaces all occurrences of a specified target string with a specified replacement string.default StringExpressionreverse()Returns a string with characters in reverse order.default StringExpressionright(Expression<Integer> length) Returns the rightmost characters from a string.default StringExpressionRight-pads a string with a specified pad string to a certain length.default StringExpressionrpad(Expression<Integer> length, String padString) Right-pads a string with a specified pad string to a certain length.default StringExpressionrtrim()Returns a string with trailing whitespace removed.default StringExpressionsubstring(Expression<Integer> start, Expression<Integer> length) Returns a substring starting from the specified position with the specified length.default StringExpressiontrim()Returns a string with leading and trailing whitespace removed.default StringExpressionupper()从接口继承的方法 org.babyfish.jimmer.sql.ast.ComparableExpression
betweenIf, betweenIf, geIf, geIf, gtIf, gtIf, leIf, leIf, ltIf, ltIf, notBetweenIf, notBetweenIf从接口继承的方法 org.babyfish.jimmer.sql.ast.impl.ComparableExpressionImplementor
between, between, ge, ge, gt, gt, le, le, lt, lt, max, min, notBetween, notBetween从接口继承的方法 org.babyfish.jimmer.sql.ast.Expression
eqIf, eqIf, expressionIn, expressionNotIn, inIf, inIf, inIf, inIf, neIf, neIf, notInIf, notInIf, notInIf, notInIf, nullableInIf, nullableInIf, nullableNotInIf, nullableNotInIf从接口继承的方法 org.babyfish.jimmer.sql.ast.impl.ExpressionImplementor
asc, count, count, desc, eq, eq, in, in, isNotNull, isNull, ne, ne, notIn, notIn, nullableIn, nullableNotIn, precedence
-
方法详细资料
-
getType
- 指定者:
getType在接口中ExpressionImplementor<String>
-
like
@NotNull default @NotNull Predicate like(@NotNull @NotNull String pattern, @NotNull @NotNull LikeMode likeMode) 从接口复制的说明:StringExpressionReturns a LIKE predicate with the given pattern and match mode.Neither the pattern nor match mode may be null.
- 指定者:
like在接口中StringExpression- 参数:
pattern- the pattern to match, must not be nulllikeMode- the mode determining how to match the pattern, must not be null- 返回:
- the LIKE predicate
-
ilike
@NotNull default @NotNull Predicate ilike(@NotNull @NotNull String pattern, @NotNull @NotNull LikeMode likeMode) 从接口复制的说明:StringExpressionReturns a case-insensitive LIKE predicate with the given pattern and match mode.Neither the pattern nor like mode may be null, otherwise
NullPointerExceptionwill be thrown.- 指定者:
ilike在接口中StringExpression- 参数:
pattern- the pattern to match in the LIKE predicate, must not be nulllikeMode- the mode determining how to match the pattern, must not be null- 返回:
- the case-insensitive LIKE predicate
-
upper
- 指定者:
upper在接口中StringExpression
-
lower
- 指定者:
lower在接口中StringExpression
-
trim
从接口复制的说明:StringExpressionReturns a string with leading and trailing whitespace removed.- 指定者:
trim在接口中StringExpression- 返回:
- a trimmed version of this string expression
-
ltrim
从接口复制的说明:StringExpressionReturns a string with leading whitespace removed.- 指定者:
ltrim在接口中StringExpression- 返回:
- a left-trimmed version of this string expression
-
rtrim
从接口复制的说明:StringExpressionReturns a string with trailing whitespace removed.- 指定者:
rtrim在接口中StringExpression- 返回:
- a right-trimmed version of this string expression
-
length
从接口复制的说明:StringExpressionReturns the length of the string.- 指定者:
length在接口中StringExpression- 返回:
- an expression representing the length of this string
-
concat
- 指定者:
concat在接口中StringExpression
-
concat
- 指定者:
concat在接口中StringExpression
-
substring
从接口复制的说明:StringExpressionReturns a substring starting from the specified position with the specified length.- 指定者:
substring在接口中StringExpression- 参数:
start- the starting position expression (1-based index)length- the length expression of the substring- 返回:
- a substring of this string expression
-
coalesce
- 指定者:
coalesce在接口中ComparableExpression<String>- 指定者:
coalesce在接口中ComparableExpressionImplementor<String>- 指定者:
coalesce在接口中Expression<String>- 指定者:
coalesce在接口中ExpressionImplementor<String>- 指定者:
coalesce在接口中StringExpression
-
coalesce
- 指定者:
coalesce在接口中ComparableExpression<String>- 指定者:
coalesce在接口中ComparableExpressionImplementor<String>- 指定者:
coalesce在接口中Expression<String>- 指定者:
coalesce在接口中ExpressionImplementor<String>- 指定者:
coalesce在接口中StringExpression
-
coalesceBuilder
- 指定者:
coalesceBuilder在接口中ComparableExpression<String>- 指定者:
coalesceBuilder在接口中ComparableExpressionImplementor<String>- 指定者:
coalesceBuilder在接口中Expression<String>- 指定者:
coalesceBuilder在接口中ExpressionImplementor<String>- 指定者:
coalesceBuilder在接口中StringExpression
-
replace
从接口复制的说明:StringExpressionReplaces all occurrences of a specified target string with a specified replacement string.- 指定者:
replace在接口中StringExpression- 参数:
target- the string to be replacedreplacement- the string to replace all occurrences of target- 返回:
- a new string expression with all occurrences of target replaced by replacement
-
reverse
从接口复制的说明:StringExpressionReturns a string with characters in reverse order. For example, reverse("SQL Tutorial") returns "lairotuT LQS".- 指定者:
reverse在接口中StringExpression- 返回:
- a new string expression with all characters in reverse order
-
lpad
从接口复制的说明:StringExpressionLeft-pads a string with a specified pad string to a certain length. If the original string is longer than the specified length, the result is truncated.- 指定者:
lpad在接口中StringExpression- 参数:
length- the desired length of the output stringpadString- the string to use for padding- 返回:
- a left-padded string expression
-
lpad
从接口复制的说明:StringExpressionLeft-pads a string with a specified pad string to a certain length. If the original string is longer than the specified length, the result is truncated.- 指定者:
lpad在接口中StringExpression- 参数:
length- the expression representing the desired length of the output stringpadString- the string to use for padding- 返回:
- a left-padded string expression
-
rpad
从接口复制的说明:StringExpressionRight-pads a string with a specified pad string to a certain length. If the original string is longer than the specified length, the result is truncated.- 指定者:
rpad在接口中StringExpression- 参数:
length- the desired length of the output stringpadString- the string to use for padding- 返回:
- a right-padded string expression
-
rpad
从接口复制的说明:StringExpressionRight-pads a string with a specified pad string to a certain length. If the original string is longer than the specified length, the result is truncated.- 指定者:
rpad在接口中StringExpression- 参数:
length- the expression representing the desired length of the output stringpadString- the string to use for padding- 返回:
- a right-padded string expression
-
position
从接口复制的说明:StringExpressionReturns the position of the first occurrence of a substring in a string, starting the search at a specified position. The position is 1-based (the first position is 1, not 0). Returns 0 if the substring is not found.- 指定者:
position在接口中StringExpression- 参数:
substring- the substring to findstart- the expression representing the position to start the search from (1-based)- 返回:
- an expression representing the position of the substring
-
left
从接口复制的说明:StringExpressionReturns the leftmost characters from a string.- 指定者:
left在接口中StringExpression- 参数:
length- an expression representing the number of characters to extract- 返回:
- a string expression containing the leftmost characters
-
right
从接口复制的说明:StringExpressionReturns the rightmost characters from a string.- 指定者:
right在接口中StringExpression- 参数:
length- an expression representing the number of characters to extract- 返回:
- a string expression containing the rightmost characters
-