public abstract class StringExpression extends ComparableExpression<String>
String expressionsString,
Serialized FormhashCode, mixin| Constructor and Description |
|---|
StringExpression(Expression<String> mixin) |
| Modifier and Type | Method and Description |
|---|---|
StringExpression |
append(Expression<String> str)
Get the concatenation of this and str
|
StringExpression |
append(String str)
Get the concatenation of this and str
|
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)
Get the character at the given index
|
SimpleExpression<Character> |
charAt(int i)
Get the character at the given index
|
StringExpression |
concat(Expression<String> str)
Get the concatenation of this and str
|
StringExpression |
concat(String str)
Get the concatenation of this and str
|
BooleanExpression |
contains(Expression<String> str)
Returns true if the given String is contained
|
BooleanExpression |
contains(String str)
Returns true if the given String is contained
|
BooleanExpression |
containsIgnoreCase(Expression<String> str) |
BooleanExpression |
containsIgnoreCase(String str) |
BooleanExpression |
endsWith(Expression<String> str)
Returns true if this ends with str
|
BooleanExpression |
endsWith(String str)
Returns true if this ends with str
|
BooleanExpression |
endsWithIgnoreCase(Expression<String> str) |
BooleanExpression |
endsWithIgnoreCase(String str) |
BooleanExpression |
equalsIgnoreCase(Expression<String> str)
Compares this
StringExpression to another StringExpression, ignoring case
considerations. |
BooleanExpression |
equalsIgnoreCase(String str)
Compares this
StringExpression to another StringExpression, ignoring case
considerations. |
NumberExpression<Integer> |
indexOf(Expression<String> str)
Get the index of the given substring in this String
|
NumberExpression<Integer> |
indexOf(Expression<String> str,
int i)
Get the index of the given substring in this String, starting from the given index
|
NumberExpression<Integer> |
indexOf(String str)
Get the index of the given substring in this String
|
NumberExpression<Integer> |
indexOf(String str,
int i)
Get the index of the given substring in this String, starting from the given index
|
BooleanExpression |
isEmpty()
Return true if this String is empty
|
BooleanExpression |
isNotEmpty()
Return true if this String is not empty
|
NumberExpression<Integer> |
length()
Return the length of this String
|
BooleanExpression |
like(Expression<String> str)
Expr:
this like str |
BooleanExpression |
like(Expression<String> str,
char escape)
Expr:
this like str |
BooleanExpression |
like(String str)
Expr:
this like str |
BooleanExpression |
like(String str,
char escape)
Expr:
this like str |
BooleanExpression |
likeIgnoreCase(Expression<String> str)
Expr:
this like str ignoring case. |
BooleanExpression |
likeIgnoreCase(Expression<String> str,
char escape)
Expr:
this like str ignoring case |
BooleanExpression |
likeIgnoreCase(String str)
Expr:
this like str ignoring case. |
BooleanExpression |
likeIgnoreCase(String str,
char escape)
Expr:
this like str ignoring case |
NumberExpression<Integer> |
locate(Expression<String> str)
Get the position of the given String in this String, the first position is 1
|
NumberExpression<Integer> |
locate(Expression<String> str,
NumberExpression<Integer> start)
Get the position of the given String in this String, the first position is 1
|
NumberExpression<Integer> |
locate(String str)
Get the position of the given String in this String, the first position is 1
|
NumberExpression<Integer> |
locate(String str,
int start)
Get the position of the given String in this String, the first position is 1
|
StringExpression |
lower()
Get the lower case form
|
BooleanExpression |
matches(Expression<String> regex)
Return true if this String matches the given regular expression
|
BooleanExpression |
matches(String regex)
Return true if this String matches the given regular expression
|
StringExpression |
max()
Get the maximum value of this expression (aggregation)
|
StringExpression |
min()
Get the minimum value of this expression (aggregation)
|
BooleanExpression |
notEqualsIgnoreCase(Expression<String> str)
Compares this
StringExpression to another StringExpression, ignoring case
considerations. |
BooleanExpression |
notEqualsIgnoreCase(String str)
Compares this
StringExpression to another StringExpression, ignoring case
considerations. |
BooleanExpression |
notLike(Expression<String> str)
Expr:
this not like str |
BooleanExpression |
notLike(Expression<String> str,
char escape)
Expr:
this not like str |
BooleanExpression |
notLike(String str)
Expr:
this not like str |
BooleanExpression |
notLike(String str,
char escape)
Expr:
this not like str |
StringExpression |
prepend(Expression<String> str)
Prepend the given String and return the result
|
StringExpression |
prepend(String str)
Prepend the given String and return the result
|
BooleanExpression |
startsWith(Expression<String> str)
Return true if this starts with str
|
BooleanExpression |
startsWith(String str)
Return true if this starts with str
|
BooleanExpression |
startsWithIgnoreCase(Expression<String> str) |
BooleanExpression |
startsWithIgnoreCase(String str) |
StringExpression |
stringValue()
Get a cast to String expression
|
StringExpression |
substring(Expression<Integer> beginIndex)
Get the given substring
|
StringExpression |
substring(Expression<Integer> beginIndex,
Expression<Integer> endIndex)
Get the given substring
|
StringExpression |
substring(Expression<Integer> beginIndex,
int endIndex)
Get the given substring
|
StringExpression |
substring(int beginIndex)
Get the given substring
|
StringExpression |
substring(int beginIndex,
Expression<Integer> endIndex)
Get the given substring
|
StringExpression |
substring(int beginIndex,
int endIndex)
Get the given substring
|
StringExpression |
toLowerCase()
Get the lower case form
|
StringExpression |
toUpperCase()
Get the upper case form
|
StringExpression |
trim()
Get a copy of the string, with leading and trailing whitespace
omitted.
|
StringExpression |
upper()
Get the upper case form
|
between, between, goe, goe, goeAll, goeAny, gt, gt, gtAll, gtAny, loe, loe, loeAll, loeAny, lt, lt, ltAll, ltAny, notBetween, notBetweenasc, castToNum, coalesce, coalesce, desccount, countDistinct, eq, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, 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)
str - public StringExpression append(String str)
str - public SimpleExpression<Character> charAt(Expression<Integer> i)
i - String.charAt(int)public SimpleExpression<Character> charAt(int i)
i - String.charAt(int)public StringExpression concat(Expression<String> str)
str - public StringExpression concat(String str)
str - public BooleanExpression contains(Expression<String> str)
str - String.contains(CharSequence)public BooleanExpression contains(String str)
str - String.contains(CharSequence)public BooleanExpression containsIgnoreCase(Expression<String> str)
str - public BooleanExpression containsIgnoreCase(String str)
str - public BooleanExpression endsWith(Expression<String> str)
str - String.endsWith(String)public BooleanExpression endsWithIgnoreCase(Expression<String> str)
str - public BooleanExpression endsWith(String str)
str - String.endsWith(String)public BooleanExpression endsWithIgnoreCase(String str)
str - public BooleanExpression equalsIgnoreCase(Expression<String> str)
StringExpression to another StringExpression, ignoring case
considerations.str - String.equalsIgnoreCase(String)public BooleanExpression equalsIgnoreCase(String str)
StringExpression to another StringExpression, ignoring case
considerations.str - String.equalsIgnoreCase(String)public NumberExpression<Integer> indexOf(Expression<String> str)
str - String.indexOf(String)public NumberExpression<Integer> indexOf(String str)
str - String.indexOf(String)public NumberExpression<Integer> indexOf(String str, int i)
str - i - String.indexOf(String, int)public NumberExpression<Integer> indexOf(Expression<String> str, int i)
str - i - public BooleanExpression isEmpty()
String.isEmpty()public BooleanExpression isNotEmpty()
String.isEmpty()public NumberExpression<Integer> length()
String.length()public BooleanExpression like(String str)
this like strstr - public BooleanExpression like(Expression<String> str)
this like strstr - public BooleanExpression likeIgnoreCase(String str)
this like str ignoring case.str - stringpublic BooleanExpression likeIgnoreCase(Expression<String> str)
this like str ignoring case.str - stringpublic BooleanExpression like(String str, char escape)
this like strstr - public BooleanExpression like(Expression<String> str, char escape)
this like strstr - public BooleanExpression likeIgnoreCase(String str, char escape)
this like str ignoring casestr - stringescape - escape characterpublic BooleanExpression likeIgnoreCase(Expression<String> str, char escape)
this like str ignoring casestr - stringescape - escape characterpublic NumberExpression<Integer> locate(Expression<String> str)
str - public NumberExpression<Integer> locate(String str)
str - public NumberExpression<Integer> locate(Expression<String> str, NumberExpression<Integer> start)
str - public NumberExpression<Integer> locate(String str, int start)
str - public StringExpression lower()
String.toLowerCase()public BooleanExpression matches(Expression<String> regex)
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 - String.matches(String)public BooleanExpression matches(String regex)
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 - String.matches(String)public StringExpression max()
public StringExpression min()
public BooleanExpression notEqualsIgnoreCase(Expression<String> str)
StringExpression to another StringExpression, ignoring case
considerations.str - String.equalsIgnoreCase(String)public BooleanExpression notEqualsIgnoreCase(String str)
StringExpression to another StringExpression, ignoring case
considerations.str - String.equalsIgnoreCase(String)public BooleanExpression notLike(String str)
this not like strstr - public BooleanExpression notLike(Expression<String> str)
this not like strstr - public BooleanExpression notLike(String str, char escape)
this not like strstr - public BooleanExpression notLike(Expression<String> str, char escape)
this not like strstr - public StringExpression prepend(Expression<String> str)
str - public StringExpression prepend(String str)
str - public BooleanExpression startsWith(Expression<String> str)
str - String.startsWith(String)public BooleanExpression startsWithIgnoreCase(Expression<String> str)
str - public BooleanExpression startsWith(String str)
str - String.startsWith(String)public BooleanExpression startsWithIgnoreCase(String str)
str - public StringExpression stringValue()
ComparableExpressionBasestringValue in class ComparableExpressionBase<String>Object.toString()public StringExpression substring(int beginIndex)
beginIndex - String.substring(int)public StringExpression substring(int beginIndex, int endIndex)
beginIndex - endIndex - String.substring(int, int)public StringExpression substring(Expression<Integer> beginIndex, int endIndex)
beginIndex - endIndex - String.substring(int, int)public StringExpression substring(int beginIndex, Expression<Integer> endIndex)
beginIndex - endIndex - String.substring(int, int)public StringExpression substring(Expression<Integer> beginIndex)
beginIndex - String.substring(int)public StringExpression substring(Expression<Integer> beginIndex, Expression<Integer> endIndex)
beginIndex - endIndex - String.substring(int, int)public StringExpression toLowerCase()
String.toLowerCase()public StringExpression toUpperCase()
String.toUpperCase()public StringExpression trim()
String.trim()public StringExpression upper()
String.toUpperCase()Copyright © 2007–2015 Querydsl. All rights reserved.