public abstract class StringExpression extends LiteralExpression<java.lang.String>
StringExpression represents String expressionsString,
Serialized FormhashCode, mixin| Constructor and Description |
|---|
StringExpression(Expression<java.lang.String> mixin) |
| Modifier and Type | Method and Description |
|---|---|
StringExpression |
append(Expression<java.lang.String> str)
Create a
concat(this, str) expression |
StringExpression |
append(java.lang.String str)
Create a
concat(this, str) expression |
StringExpression |
as(Path<java.lang.String> alias)
Create an alias for the expression
|
StringExpression |
as(java.lang.String alias)
Create an alias for the expression
|
SimpleExpression<java.lang.Character> |
charAt(Expression<java.lang.Integer> i)
Create a
this.charAt(i) expression |
SimpleExpression<java.lang.Character> |
charAt(int i)
Create a
this.charAt(i) expression |
StringExpression |
coalesce(Expression<?>... exprs)
Create a
coalesce(this, exprs...) expression |
StringExpression |
coalesce(Expression<java.lang.String> expr)
Create a
coalesce(this, expr) expression |
StringExpression |
coalesce(java.lang.String... args)
Create a
coalesce(this, args...) expression |
StringExpression |
coalesce(java.lang.String arg)
Create a
coalesce(this, arg) expression |
StringExpression |
concat(Expression<java.lang.String> str)
Create a
concat(this, str) expression |
StringExpression |
concat(java.lang.String str)
Create a
concat(this, str) expression |
BooleanExpression |
contains(Expression<java.lang.String> str)
Create a
this.contains(str) expression |
BooleanExpression |
contains(java.lang.String str)
Create a
this.contains(str) expression |
BooleanExpression |
containsIgnoreCase(Expression<java.lang.String> str)
Create a
this.containsIgnoreCase(str) expression |
BooleanExpression |
containsIgnoreCase(java.lang.String str)
Create a
this.containsIgnoreCase(str) expression |
BooleanExpression |
endsWith(Expression<java.lang.String> str)
Create a
this.endsWith(str) expression |
BooleanExpression |
endsWith(java.lang.String str)
Create a
this.endsWith(str) expression |
BooleanExpression |
endsWithIgnoreCase(Expression<java.lang.String> str)
Create a
this.endsWithIgnoreCase(str) expression |
BooleanExpression |
endsWithIgnoreCase(java.lang.String str)
Create a
this.endsWithIgnoreCase(str) expression |
BooleanExpression |
equalsIgnoreCase(Expression<java.lang.String> str)
Create a
this.equalsIgnoreCase(str) expression |
BooleanExpression |
equalsIgnoreCase(java.lang.String str)
Create a
this.equalsIgnoreCase(str) expression |
NumberExpression<java.lang.Integer> |
indexOf(Expression<java.lang.String> str)
Create a
this.indexOf(str) expression |
NumberExpression<java.lang.Integer> |
indexOf(Expression<java.lang.String> str,
int i)
Create a
this.indexOf(str) expression |
NumberExpression<java.lang.Integer> |
indexOf(java.lang.String str)
Create a
this.indexOf(str) expression |
NumberExpression<java.lang.Integer> |
indexOf(java.lang.String str,
int i)
Create a
this.indexOf(str, i) expression |
BooleanExpression |
isEmpty()
Create a
this.isEmpty() expression |
BooleanExpression |
isNotEmpty()
Create a
!this.isEmpty() expression |
NumberExpression<java.lang.Integer> |
length()
Create a
this.length() expression |
BooleanExpression |
like(Expression<java.lang.String> str)
Create a
this like str expression |
BooleanExpression |
like(Expression<java.lang.String> str,
char escape)
Create a
this like str expression |
BooleanExpression |
like(java.lang.String str)
Create a
this like str expression |
BooleanExpression |
like(java.lang.String str,
char escape)
Create a
this like str expression |
BooleanExpression |
likeIgnoreCase(Expression<java.lang.String> str)
Create a
this like str expression ignoring case |
BooleanExpression |
likeIgnoreCase(Expression<java.lang.String> str,
char escape)
Create a
this like str expression ignoring case |
BooleanExpression |
likeIgnoreCase(java.lang.String str)
Create a
this like str expression ignoring case |
BooleanExpression |
likeIgnoreCase(java.lang.String str,
char escape)
Create a
this like str expression ignoring case |
NumberExpression<java.lang.Integer> |
locate(Expression<java.lang.String> str)
Create a
locate(str, this) expression |
NumberExpression<java.lang.Integer> |
locate(Expression<java.lang.String> str,
NumberExpression<java.lang.Integer> start)
Create a
locate(str, this, start) expression |
NumberExpression<java.lang.Integer> |
locate(java.lang.String str)
Create a
locate(str, this) expression |
NumberExpression<java.lang.Integer> |
locate(java.lang.String str,
Expression<java.lang.Integer> start)
Create a
locate(str, this, start) expression |
NumberExpression<java.lang.Integer> |
locate(java.lang.String str,
int start)
Create a
locate(str, this, start) expression |
StringExpression |
lower()
Create a
this.toLowerCase() expression |
BooleanExpression |
matches(Expression<java.lang.String> regex)
Create a
this.matches(regex) expression |
BooleanExpression |
matches(java.lang.String regex)
Create a
this.matches(regex) expression |
StringExpression |
max()
Create a
max(this) expression |
StringExpression |
min()
Create a
min(this) expression |
BooleanExpression |
notEqualsIgnoreCase(Expression<java.lang.String> str)
Create a
!this.equalsIgnoreCase(str) expression |
BooleanExpression |
notEqualsIgnoreCase(java.lang.String str)
Create a
!this.equalsIgnoreCase(str) expression |
BooleanExpression |
notLike(Expression<java.lang.String> str)
Create a
this not like str expression |
BooleanExpression |
notLike(Expression<java.lang.String> str,
char escape)
Create a
this not like str expression |
BooleanExpression |
notLike(java.lang.String str)
Create a
this not like str expression |
BooleanExpression |
notLike(java.lang.String str,
char escape)
Create a
this not like str expression |
StringExpression |
nullif(Expression<java.lang.String> other)
Create a
nullif(this, other) expression |
StringExpression |
nullif(java.lang.String other)
Create a
nullif(this, other) expression |
StringExpression |
prepend(Expression<java.lang.String> str)
Create a
concat(str, this) expression |
StringExpression |
prepend(java.lang.String str)
Create a
concat(str, this) expression |
BooleanExpression |
startsWith(Expression<java.lang.String> str)
Create a
this.startsWith(str) expression |
BooleanExpression |
startsWith(java.lang.String str)
Create a
this.startsWith(str) expression |
BooleanExpression |
startsWithIgnoreCase(Expression<java.lang.String> str)
Create a
this.startsWithIgnoreCase(str) expression |
BooleanExpression |
startsWithIgnoreCase(java.lang.String str)
Create a
this.startsWithIgnoreCase(str) expression |
StringExpression |
stringValue()
Create a cast to String expression
|
StringExpression |
substring(Expression<java.lang.Integer> beginIndex)
Create a
this.substring(beginIndex) expression |
StringExpression |
substring(Expression<java.lang.Integer> beginIndex,
Expression<java.lang.Integer> endIndex)
Create a
this.substring(beginIndex, endIndex) expression |
StringExpression |
substring(Expression<java.lang.Integer> beginIndex,
int endIndex)
Create a
this.substring(beginIndex, endIndex) expression |
StringExpression |
substring(int beginIndex)
Create a
this.substring(beginIndex) expression |
StringExpression |
substring(int beginIndex,
Expression<java.lang.Integer> endIndex)
Create a
this.substring(beginIndex, endIndex) expression |
StringExpression |
substring(int beginIndex,
int endIndex)
Create a
this.substring(beginIndex, endIndex) expression |
StringExpression |
toLowerCase()
Create a
this.toLowerCase() expression |
StringExpression |
toUpperCase()
Create a
this.toUpperCase() expression |
StringExpression |
trim()
Create a
this.trim() expression |
StringExpression |
upper()
Create a
this.toUpperCase() expression |
castToNumbetween, between, goe, goe, goeAll, goeAll, goeAny, goeAny, gt, gt, gtAll, gtAll, gtAny, gtAny, loe, loe, loeAll, loeAll, loeAny, loeAny, lt, lt, ltAll, ltAll, ltAny, ltAny, notBetween, notBetweenasc, desccount, countDistinct, eq, eq, eqAll, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, notIn, notIn, when, whenequals, getType, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitacceptpublic StringExpression(Expression<java.lang.String> mixin)
public StringExpression as(Path<java.lang.String> alias)
SimpleExpressionas in class ComparableExpression<java.lang.String>public StringExpression as(java.lang.String alias)
SimpleExpressionas in class ComparableExpression<java.lang.String>public StringExpression append(Expression<java.lang.String> str)
concat(this, str) expression
Get the concatenation of this and str
str - string to appendpublic StringExpression append(java.lang.String str)
concat(this, str) expression
Get the concatenation of this and str
str - string to appendpublic SimpleExpression<java.lang.Character> charAt(Expression<java.lang.Integer> i)
this.charAt(i) expression
Get the character at the given index
i - zero based indexString.charAt(int)public SimpleExpression<java.lang.Character> charAt(int i)
this.charAt(i) expression
Get the character at the given index
i - zero based indexString.charAt(int)public StringExpression concat(Expression<java.lang.String> str)
concat(this, str) expression
Get the concatenation of this and str
str - string to appendpublic StringExpression concat(java.lang.String str)
concat(this, str) expression
Get the concatenation of this and str
str - string to appendpublic BooleanExpression contains(Expression<java.lang.String> str)
this.contains(str) expression
Returns true if the given String is contained
str - stringString.contains(CharSequence)public BooleanExpression contains(java.lang.String str)
this.contains(str) expression
Returns true if the given String is contained
str - stringString.contains(CharSequence)public BooleanExpression containsIgnoreCase(Expression<java.lang.String> str)
this.containsIgnoreCase(str) expression
Returns true if the given String is contained, compare case insensitively
str - stringpublic BooleanExpression containsIgnoreCase(java.lang.String str)
this.containsIgnoreCase(str) expression
Returns true if the given String is contained, compare case insensitively
str - stringpublic BooleanExpression endsWith(Expression<java.lang.String> str)
this.endsWith(str) expression
Returns true if this ends with str
str - stringString.endsWith(String)public BooleanExpression endsWithIgnoreCase(Expression<java.lang.String> str)
this.endsWithIgnoreCase(str) expression
Returns true if this ends with str, compares case insensitively
str - stringpublic BooleanExpression endsWith(java.lang.String str)
this.endsWith(str) expression
Returns true if this ends with str
str - stringString.endsWith(String)public BooleanExpression endsWithIgnoreCase(java.lang.String str)
this.endsWithIgnoreCase(str) expression
Returns true if this ends with str, compares case insensitively
str - stringpublic BooleanExpression equalsIgnoreCase(Expression<java.lang.String> str)
this.equalsIgnoreCase(str) expression
Compares this StringExpression to another StringExpression, ignoring case
considerations.
str - stringString.equalsIgnoreCase(String)public BooleanExpression equalsIgnoreCase(java.lang.String str)
this.equalsIgnoreCase(str) expression
Compares this StringExpression to another StringExpression, ignoring case
considerations.
str - stringString.equalsIgnoreCase(String)public NumberExpression<java.lang.Integer> indexOf(Expression<java.lang.String> str)
this.indexOf(str) expression
Get the index of the given substring in this String
str - stringString.indexOf(String)public NumberExpression<java.lang.Integer> indexOf(java.lang.String str)
this.indexOf(str) expression
Get the index of the given substring in this String
str - stringString.indexOf(String)public NumberExpression<java.lang.Integer> indexOf(java.lang.String str, int i)
this.indexOf(str, i) expression
Get the index of the given substring in this String, starting from the given index
str - stringi - zero based indexString.indexOf(String, int)public NumberExpression<java.lang.Integer> indexOf(Expression<java.lang.String> str, int i)
this.indexOf(str) expression
Get the index of the given substring in this String, starting from the given index
str - stringi - zero based indexpublic BooleanExpression isEmpty()
this.isEmpty() expression
Return true if this String is empty
String.isEmpty()public BooleanExpression isNotEmpty()
!this.isEmpty() expression
Return true if this String is not empty
String.isEmpty()public NumberExpression<java.lang.Integer> length()
this.length() expression
Return the length of this String
String.length()public BooleanExpression like(java.lang.String str)
this like str expressionstr - stringpublic BooleanExpression like(Expression<java.lang.String> str)
this like str expressionstr - stringpublic BooleanExpression likeIgnoreCase(java.lang.String str)
this like str expression ignoring casestr - stringpublic BooleanExpression likeIgnoreCase(Expression<java.lang.String> str)
this like str expression ignoring casestr - stringpublic BooleanExpression like(java.lang.String str, char escape)
this like str expressionstr - stringpublic BooleanExpression like(Expression<java.lang.String> str, char escape)
this like str expressionstr - stringpublic BooleanExpression likeIgnoreCase(java.lang.String str, char escape)
this like str expression ignoring casestr - stringescape - escape characterpublic BooleanExpression likeIgnoreCase(Expression<java.lang.String> str, char escape)
this like str expression ignoring casestr - stringescape - escape characterpublic NumberExpression<java.lang.Integer> locate(Expression<java.lang.String> str)
locate(str, this) expression
Get the position of the given String in this String, the first position is 1
str - stringpublic NumberExpression<java.lang.Integer> locate(java.lang.String str)
locate(str, this) expression
Get the position of the given String in this String, the first position is 1
str - stringpublic NumberExpression<java.lang.Integer> locate(Expression<java.lang.String> str, NumberExpression<java.lang.Integer> start)
locate(str, this, start) expression
Get the position of the given String in this String, the first position is 1
str - stringstart - startpublic NumberExpression<java.lang.Integer> locate(java.lang.String str, int start)
locate(str, this, start) expression
Get the position of the given String in this String, the first position is 1
str - stringstart - startpublic NumberExpression<java.lang.Integer> locate(java.lang.String str, Expression<java.lang.Integer> start)
locate(str, this, start) expression
Get the position of the given String in this String, the first position is 1
str - stringstart - startpublic StringExpression lower()
this.toLowerCase() expression
Get the lower case form
String.toLowerCase()public BooleanExpression matches(Expression<java.lang.String> regex)
this.matches(regex) expression
Return true if this String matches the given regular expression
Some implementations such as Querydsl JPA will try to convert a regex expression into like form and will throw an Exception when this fails
regex - regular expressionString.matches(String)public BooleanExpression matches(java.lang.String regex)
this.matches(regex) expression
Return true if this String matches the given regular expression
Some implementations such as Querydsl JPA will try to convert a regex expression into like form and will throw an Exception when this fails
regex - regular expressionString.matches(String)public StringExpression max()
max(this) expression
Get the maximum value of this expression (aggregation)
max in class ComparableExpression<java.lang.String>public StringExpression min()
min(this) expression
Get the minimum value of this expression (aggregation)
min in class ComparableExpression<java.lang.String>public BooleanExpression notEqualsIgnoreCase(Expression<java.lang.String> str)
!this.equalsIgnoreCase(str) expression
Compares this StringExpression to another StringExpression, ignoring case
considerations.
str - stringString.equalsIgnoreCase(String)public BooleanExpression notEqualsIgnoreCase(java.lang.String str)
!this.equalsIgnoreCase(str) expression
Compares this StringExpression to another StringExpression, ignoring case
considerations.
str - stringString.equalsIgnoreCase(String)public BooleanExpression notLike(java.lang.String str)
this not like str expressionstr - stringpublic BooleanExpression notLike(Expression<java.lang.String> str)
this not like str expressionstr - stringpublic BooleanExpression notLike(java.lang.String str, char escape)
this not like str expressionstr - stringpublic BooleanExpression notLike(Expression<java.lang.String> str, char escape)
this not like str expressionstr - stringpublic StringExpression prepend(Expression<java.lang.String> str)
concat(str, this) expression
Prepend the given String and return the result
str - stringpublic StringExpression prepend(java.lang.String str)
concat(str, this) expression
Prepend the given String and return the result
str - stringpublic BooleanExpression startsWith(Expression<java.lang.String> str)
this.startsWith(str) expression
Return true if this starts with str
str - stringString.startsWith(String)public BooleanExpression startsWithIgnoreCase(Expression<java.lang.String> str)
this.startsWithIgnoreCase(str) expressionstr - stringpublic BooleanExpression startsWith(java.lang.String str)
this.startsWith(str) expression
Return true if this starts with str
str - stringString.startsWith(String)public BooleanExpression startsWithIgnoreCase(java.lang.String str)
this.startsWithIgnoreCase(str) expressionstr - stringpublic StringExpression stringValue()
LiteralExpressionstringValue in class LiteralExpression<java.lang.String>Object.toString()public StringExpression substring(int beginIndex)
this.substring(beginIndex) expressionbeginIndex - inclusive start indexString.substring(int)public StringExpression substring(int beginIndex, int endIndex)
this.substring(beginIndex, endIndex) expressionbeginIndex - inclusive start indexendIndex - exclusive end indexString.substring(int, int)public StringExpression substring(Expression<java.lang.Integer> beginIndex, int endIndex)
this.substring(beginIndex, endIndex) expressionbeginIndex - inclusive start indexendIndex - exclusive end indexString.substring(int, int)public StringExpression substring(int beginIndex, Expression<java.lang.Integer> endIndex)
this.substring(beginIndex, endIndex) expressionbeginIndex - inclusive start indexendIndex - exclusive end indexString.substring(int, int)public StringExpression substring(Expression<java.lang.Integer> beginIndex)
this.substring(beginIndex) expressionbeginIndex - inclusive start indexString.substring(int)public StringExpression substring(Expression<java.lang.Integer> beginIndex, Expression<java.lang.Integer> endIndex)
this.substring(beginIndex, endIndex) expressionbeginIndex - inclusive start indexendIndex - exclusive end indexString.substring(int, int)public StringExpression toLowerCase()
this.toLowerCase() expression
Get the lower case form
String.toLowerCase()public StringExpression toUpperCase()
this.toUpperCase() expression
Get the upper case form
String.toUpperCase()public StringExpression trim()
this.trim() expression
Create a copy of the string, with leading and trailing whitespace omitted.
String.trim()public StringExpression upper()
this.toUpperCase() expression
Get the upper case form
String.toUpperCase()public StringExpression nullif(Expression<java.lang.String> other)
nullif(this, other) expressionnullif in class ComparableExpression<java.lang.String>other - public StringExpression nullif(java.lang.String other)
nullif(this, other) expressionnullif in class ComparableExpression<java.lang.String>other - public StringExpression coalesce(Expression<java.lang.String> expr)
coalesce(this, expr) expressioncoalesce in class ComparableExpression<java.lang.String>expr - additional argumentpublic StringExpression coalesce(Expression<?>... exprs)
coalesce(this, exprs...) expressioncoalesce in class ComparableExpression<java.lang.String>exprs - additional argumentspublic StringExpression coalesce(java.lang.String arg)
coalesce(this, arg) expressioncoalesce in class ComparableExpression<java.lang.String>arg - additional argumentpublic StringExpression coalesce(java.lang.String... args)
coalesce(this, args...) expressioncoalesce in class ComparableExpression<java.lang.String>args - additional argumentsCopyright © 2007–2021 Querydsl. All rights reserved.