public abstract class StringExpression extends LiteralExpression<String>
StringExpression represents String expressionsString,
Serialized FormhashCode, mixin| Constructor and Description |
|---|
StringExpression(Expression<String> mixin) |
| Modifier and Type | Method and Description |
|---|---|
StringExpression |
append(Expression<String> str)
Create a
concat(this, str) expression |
StringExpression |
append(String str)
Create a
concat(this, str) expression |
StringExpression |
as(Path<String> alias)
Create an alias for the expression
|
StringExpression |
as(String alias)
Create an alias for the expression
|
SimpleExpression<Character> |
charAt(Expression<Integer> i)
Create a
this.charAt(i) expression |
SimpleExpression<Character> |
charAt(int i)
Create a
this.charAt(i) expression |
StringExpression |
concat(Expression<String> str)
Create a
concat(this, str) expression |
StringExpression |
concat(String str)
Create a
concat(this, str) expression |
BooleanExpression |
contains(Expression<String> str)
Create a
this.contains(str) expression |
BooleanExpression |
contains(String str)
Create a
this.contains(str) expression |
BooleanExpression |
containsIgnoreCase(Expression<String> str)
Create a
this.containsIgnoreCase(str) expression |
BooleanExpression |
containsIgnoreCase(String str)
Create a
this.containsIgnoreCase(str) expression |
BooleanExpression |
endsWith(Expression<String> str)
Create a
this.endsWith(str) expression |
BooleanExpression |
endsWith(String str)
Create a
this.endsWith(str) expression |
BooleanExpression |
endsWithIgnoreCase(Expression<String> str)
Create a
this.endsWithIgnoreCase(str) expression |
BooleanExpression |
endsWithIgnoreCase(String str)
Create a
this.endsWithIgnoreCase(str) expression |
BooleanExpression |
equalsIgnoreCase(Expression<String> str)
Create a
this.equalsIgnoreCase(str) expression |
BooleanExpression |
equalsIgnoreCase(String str)
Create a
this.equalsIgnoreCase(str) expression |
NumberExpression<Integer> |
indexOf(Expression<String> str)
Create a
this.indexOf(str) expression |
NumberExpression<Integer> |
indexOf(Expression<String> str,
int i)
Create a
this.indexOf(str) expression |
NumberExpression<Integer> |
indexOf(String str)
Create a
this.indexOf(str) expression |
NumberExpression<Integer> |
indexOf(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<Integer> |
length()
Create a
this.length() expression |
BooleanExpression |
like(Expression<String> str)
Create a
this like str expression |
BooleanExpression |
like(Expression<String> str,
char escape)
Create a
this like str expression |
BooleanExpression |
like(String str)
Create a
this like str expression |
BooleanExpression |
like(String str,
char escape)
Create a
this like str expression |
BooleanExpression |
likeIgnoreCase(Expression<String> str)
Create a
this like str expression ignoring case |
BooleanExpression |
likeIgnoreCase(Expression<String> str,
char escape)
Create a
this like str expression ignoring case |
BooleanExpression |
likeIgnoreCase(String str)
Create a
this like str expression ignoring case |
BooleanExpression |
likeIgnoreCase(String str,
char escape)
Create a
this like str expression ignoring case |
NumberExpression<Integer> |
locate(Expression<String> str)
Create a
locate(str, this) expression |
NumberExpression<Integer> |
locate(Expression<String> str,
NumberExpression<Integer> start)
Create a
locate(str, this, start) expression |
NumberExpression<Integer> |
locate(String str)
Create a
locate(str, this) expression |
NumberExpression<Integer> |
locate(String str,
Expression<Integer> start)
Create a
locate(str, this, start) expression |
NumberExpression<Integer> |
locate(String str,
int start)
Create a
locate(str, this, start) expression |
StringExpression |
lower()
Create a
this.toLowerCase() expression |
BooleanExpression |
matches(Expression<String> regex)
Create a
this.matches(regex) expression |
BooleanExpression |
matches(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<String> str)
Create a
!this.equalsIgnoreCase(str) expression |
BooleanExpression |
notEqualsIgnoreCase(String str)
Create a
!this.equalsIgnoreCase(str) expression |
BooleanExpression |
notLike(Expression<String> str)
Create a
this not like str expression |
BooleanExpression |
notLike(Expression<String> str,
char escape)
Create a
this not like str expression |
BooleanExpression |
notLike(String str)
Create a
this not like str expression |
BooleanExpression |
notLike(String str,
char escape)
Create a
this not like str expression |
StringExpression |
prepend(Expression<String> str)
Create a
concat(str, this) expression |
StringExpression |
prepend(String str)
Create a
concat(str, this) expression |
BooleanExpression |
startsWith(Expression<String> str)
Create a
this.startsWith(str) expression |
BooleanExpression |
startsWith(String str)
Create a
this.startsWith(str) expression |
BooleanExpression |
startsWithIgnoreCase(Expression<String> str)
Create a
this.startsWithIgnoreCase(str) expression |
BooleanExpression |
startsWithIgnoreCase(String str)
Create a
this.startsWithIgnoreCase(str) expression |
StringExpression |
stringValue()
Create a cast to String expression
|
StringExpression |
substring(Expression<Integer> beginIndex)
Create a
this.substring(beginIndex) expression |
StringExpression |
substring(Expression<Integer> beginIndex,
Expression<Integer> endIndex)
Create a
this.substring(beginIndex, endIndex) expression |
StringExpression |
substring(Expression<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<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, coalesce, coalesce, desccount, countDistinct, eq, eq, eqAll, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, notIn, notIn, nullif, nullif, when, whenequals, getType, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitacceptpublic StringExpression(Expression<String> mixin)
public StringExpression as(Path<String> alias)
SimpleExpressionas in class ComparableExpression<String>public StringExpression as(String alias)
SimpleExpressionas in class ComparableExpression<String>public StringExpression append(Expression<String> str)
concat(this, str) expression
Get the concatenation of this and str
str - string to appendpublic StringExpression append(String str)
concat(this, str) expression
Get the concatenation of this and str
str - string to appendpublic SimpleExpression<Character> charAt(Expression<Integer> i)
this.charAt(i) expression
Get the character at the given index
i - zero based indexString.charAt(int)public SimpleExpression<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<String> str)
concat(this, str) expression
Get the concatenation of this and str
str - string to appendpublic StringExpression concat(String str)
concat(this, str) expression
Get the concatenation of this and str
str - string to appendpublic BooleanExpression contains(Expression<String> str)
this.contains(str) expression
Returns true if the given String is contained
str - stringString.contains(CharSequence)public BooleanExpression contains(String str)
this.contains(str) expression
Returns true if the given String is contained
str - stringString.contains(CharSequence)public BooleanExpression containsIgnoreCase(Expression<String> str)
this.containsIgnoreCase(str) expression
Returns true if the given String is contained, compare case insensitively
str - stringpublic BooleanExpression containsIgnoreCase(String str)
this.containsIgnoreCase(str) expression
Returns true if the given String is contained, compare case insensitively
str - stringpublic BooleanExpression endsWith(Expression<String> str)
this.endsWith(str) expression
Returns true if this ends with str
str - stringString.endsWith(String)public BooleanExpression endsWithIgnoreCase(Expression<String> str)
this.endsWithIgnoreCase(str) expression
Returns true if this ends with str, compares case insensitively
str - stringpublic BooleanExpression endsWith(String str)
this.endsWith(str) expression
Returns true if this ends with str
str - stringString.endsWith(String)public BooleanExpression endsWithIgnoreCase(String str)
this.endsWithIgnoreCase(str) expression
Returns true if this ends with str, compares case insensitively
str - stringpublic BooleanExpression equalsIgnoreCase(Expression<String> str)
this.equalsIgnoreCase(str) expression
Compares this StringExpression to another StringExpression, ignoring case
considerations.
str - stringString.equalsIgnoreCase(String)public BooleanExpression equalsIgnoreCase(String str)
this.equalsIgnoreCase(str) expression
Compares this StringExpression to another StringExpression, ignoring case
considerations.
str - stringString.equalsIgnoreCase(String)public NumberExpression<Integer> indexOf(Expression<String> str)
this.indexOf(str) expression
Get the index of the given substring in this String
str - stringString.indexOf(String)public NumberExpression<Integer> indexOf(String str)
this.indexOf(str) expression
Get the index of the given substring in this String
str - stringString.indexOf(String)public NumberExpression<Integer> indexOf(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<Integer> indexOf(Expression<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<Integer> length()
this.length() expression
Return the length of this String
String.length()public BooleanExpression like(String str)
this like str expressionstr - stringpublic BooleanExpression like(Expression<String> str)
this like str expressionstr - stringpublic BooleanExpression likeIgnoreCase(String str)
this like str expression ignoring casestr - stringpublic BooleanExpression likeIgnoreCase(Expression<String> str)
this like str expression ignoring casestr - stringpublic BooleanExpression like(String str, char escape)
this like str expressionstr - stringpublic BooleanExpression like(Expression<String> str, char escape)
this like str expressionstr - stringpublic BooleanExpression likeIgnoreCase(String str, char escape)
this like str expression ignoring casestr - stringescape - escape characterpublic BooleanExpression likeIgnoreCase(Expression<String> str, char escape)
this like str expression ignoring casestr - stringescape - escape characterpublic NumberExpression<Integer> locate(Expression<String> str)
locate(str, this) expression
Get the position of the given String in this String, the first position is 1
str - stringpublic NumberExpression<Integer> locate(String str)
locate(str, this) expression
Get the position of the given String in this String, the first position is 1
str - stringpublic NumberExpression<Integer> locate(Expression<String> str, NumberExpression<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<Integer> locate(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<Integer> locate(String str, Expression<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<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(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)
public StringExpression min()
min(this) expression
Get the minimum value of this expression (aggregation)
public BooleanExpression notEqualsIgnoreCase(Expression<String> str)
!this.equalsIgnoreCase(str) expression
Compares this StringExpression to another StringExpression, ignoring case
considerations.
str - stringString.equalsIgnoreCase(String)public BooleanExpression notEqualsIgnoreCase(String str)
!this.equalsIgnoreCase(str) expression
Compares this StringExpression to another StringExpression, ignoring case
considerations.
str - stringString.equalsIgnoreCase(String)public BooleanExpression notLike(String str)
this not like str expressionstr - stringpublic BooleanExpression notLike(Expression<String> str)
this not like str expressionstr - stringpublic BooleanExpression notLike(String str, char escape)
this not like str expressionstr - stringpublic BooleanExpression notLike(Expression<String> str, char escape)
this not like str expressionstr - stringpublic StringExpression prepend(Expression<String> str)
concat(str, this) expression
Prepend the given String and return the result
str - stringpublic StringExpression prepend(String str)
concat(str, this) expression
Prepend the given String and return the result
str - stringpublic BooleanExpression startsWith(Expression<String> str)
this.startsWith(str) expression
Return true if this starts with str
str - stringString.startsWith(String)public BooleanExpression startsWithIgnoreCase(Expression<String> str)
this.startsWithIgnoreCase(str) expressionstr - stringpublic BooleanExpression startsWith(String str)
this.startsWith(str) expression
Return true if this starts with str
str - stringString.startsWith(String)public BooleanExpression startsWithIgnoreCase(String str)
this.startsWithIgnoreCase(str) expressionstr - stringpublic StringExpression stringValue()
LiteralExpressionstringValue in class LiteralExpression<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<Integer> beginIndex, int endIndex)
this.substring(beginIndex, endIndex) expressionbeginIndex - inclusive start indexendIndex - exclusive end indexString.substring(int, int)public StringExpression substring(int beginIndex, Expression<Integer> endIndex)
this.substring(beginIndex, endIndex) expressionbeginIndex - inclusive start indexendIndex - exclusive end indexString.substring(int, int)public StringExpression substring(Expression<Integer> beginIndex)
this.substring(beginIndex) expressionbeginIndex - inclusive start indexString.substring(int)public StringExpression substring(Expression<Integer> beginIndex, Expression<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()Copyright © 2007–2016 Querydsl. All rights reserved.