public class StringExpressionImpl extends ComparableExpressionImpl<String> implements StringExpression
Constructor and Description |
---|
StringExpressionImpl(Class<String> cls,
String name,
ExpressionType type) |
StringExpressionImpl(org.datanucleus.query.expression.Expression queryExpr) |
StringExpressionImpl(PersistableExpression parent,
String name) |
Modifier and Type | Method and Description |
---|---|
StringExpression |
add(Expression expr)
Method to return an expression for this expression added to the passed expression (String concatenation).
|
CharacterExpression |
charAt(int pos)
Method to return an expression for the character at a position of this string expression.
|
CharacterExpression |
charAt(NumericExpression pos)
Method to return an expression for the character at a position of this string expression.
|
BooleanExpression |
endsWith(String str)
Method returning an expression for whether this string expression ends with the passed string expression.
|
BooleanExpression |
endsWith(StringExpression expr)
Method returning an expression for whether this string expression ends with the passed string expression.
|
BooleanExpression |
equalsIgnoreCase(String str)
Method returning an expression for whether this string expression is equal to (ignoring case) the
passed string.
|
BooleanExpression |
equalsIgnoreCase(StringExpression expr)
Method returning an expression for whether this string expression is equal to (ignoring case) the
passed string expression.
|
NumericExpression<Integer> |
indexOf(String str)
Method to return an expression for the position of the passed string in this string.
|
NumericExpression<Integer> |
indexOf(StringExpression expr)
Method to return an expression for the position of the passed string in this string.
|
NumericExpression<Integer> |
indexOf(StringExpression expr,
int pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression<Integer> |
indexOf(StringExpression expr,
NumericExpression pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression |
indexOf(String str,
int pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression<Integer> |
indexOf(String str,
NumericExpression pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression<Integer> |
length()
Method returning a expression for the length of this string.
|
BooleanExpression |
startsWith(String str)
Method returning an expression for whether this string expression starts with the passed string.
|
BooleanExpression |
startsWith(StringExpression expr)
Method returning an expression for whether this string expression starts with the passed string expression.
|
StringExpression |
substring(int pos)
Method to return an expression for the substring of this string expression.
|
StringExpression |
substring(int startPos,
int endPos)
Method to return an expression for the substring of this string expression.
|
StringExpression |
substring(NumericExpression<Integer> pos)
Method to return an expression for the substring of this string expression.
|
StringExpression |
substring(NumericExpression<Integer> startPos,
NumericExpression<Integer> endPos)
Method to return an expression for the substring of this string expression.
|
StringExpression |
toLowerCase()
Method to return a StringExpression representing this string expression in lower case.
|
StringExpression |
toUpperCase()
Method to return a StringExpression representing this string expression in upper case.
|
StringExpression |
trim()
Method returning a string expression with whitespace trimmed from start and end.
|
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
cast, count, countDistinct, eq, eq, getQueryExpression, instanceOf, isParameter, isVariable, ne, ne
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
public StringExpressionImpl(PersistableExpression parent, String name)
public StringExpressionImpl(org.datanucleus.query.expression.Expression queryExpr)
public StringExpressionImpl(Class<String> cls, String name, ExpressionType type)
public StringExpression add(Expression expr)
add
in interface StringExpression
expr
- The other expressionpublic CharacterExpression charAt(int pos)
StringExpression
charAt
in interface StringExpression
pos
- The positionpublic CharacterExpression charAt(NumericExpression pos)
StringExpression
charAt
in interface StringExpression
pos
- The positionpublic BooleanExpression endsWith(String str)
StringExpression
endsWith
in interface StringExpression
str
- The string that it ends with.public BooleanExpression endsWith(StringExpression expr)
StringExpression
endsWith
in interface StringExpression
expr
- The expression that it ends with.public BooleanExpression equalsIgnoreCase(String str)
StringExpression
equalsIgnoreCase
in interface StringExpression
str
- The stringpublic BooleanExpression equalsIgnoreCase(StringExpression expr)
StringExpression
equalsIgnoreCase
in interface StringExpression
expr
- The expressionpublic NumericExpression indexOf(String str, int pos)
StringExpression
indexOf
in interface StringExpression
str
- The other stringpos
- Start point of the searchpublic NumericExpression<Integer> indexOf(String str, NumericExpression pos)
StringExpression
indexOf
in interface StringExpression
str
- The other stringpos
- Start point of the searchpublic NumericExpression<Integer> indexOf(String str)
StringExpression
indexOf
in interface StringExpression
str
- The other stringpublic NumericExpression<Integer> indexOf(StringExpression expr, int pos)
StringExpression
indexOf
in interface StringExpression
expr
- The other stringpos
- Start point of the searchpublic NumericExpression<Integer> indexOf(StringExpression expr, NumericExpression pos)
StringExpression
indexOf
in interface StringExpression
expr
- The other stringpos
- Start point of the searchpublic NumericExpression<Integer> indexOf(StringExpression expr)
StringExpression
indexOf
in interface StringExpression
expr
- The other stringpublic NumericExpression<Integer> length()
StringExpression
length
in interface StringExpression
public BooleanExpression startsWith(String str)
StringExpression
startsWith
in interface StringExpression
str
- The string that it starts with.public BooleanExpression startsWith(StringExpression expr)
StringExpression
startsWith
in interface StringExpression
expr
- The expression that it starts with.public StringExpression substring(int startPos, int endPos)
StringExpression
substring
in interface StringExpression
startPos
- The position of the start point of the substring (inclusive, origin 0)endPos
- The position of the end point of the substring (exclusive, origin 0)public StringExpression substring(int pos)
StringExpression
substring
in interface StringExpression
pos
- The position of the start point of the substringpublic StringExpression substring(NumericExpression<Integer> startPos, NumericExpression<Integer> endPos)
StringExpression
substring
in interface StringExpression
startPos
- The position of the start point of the substring (inclusive, origin 0)endPos
- The position of the end point of the substring (exclusive, origin 0)public StringExpression substring(NumericExpression<Integer> pos)
StringExpression
substring
in interface StringExpression
pos
- The position of the start point of the substringpublic StringExpression toLowerCase()
StringExpression
toLowerCase
in interface StringExpression
public StringExpression toUpperCase()
StringExpression
toUpperCase
in interface StringExpression
public StringExpression trim()
StringExpression
trim
in interface StringExpression
Copyright © 2017. All rights reserved.