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 |
indexOf(String str)
Method to return an expression for the position of the passed string in this string.
|
NumericExpression |
indexOf(StringExpression expr)
Method to return an expression for the position of the passed string in this string.
|
NumericExpression |
indexOf(StringExpression expr,
int pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression |
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 |
indexOf(String str,
NumericExpression pos)
Method to return an expression for the position of the passed string in this string after a position.
|
NumericExpression |
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 pos)
Method to return an expression for the substring of this string expression.
|
StringExpression |
substring(NumericExpression startPos,
NumericExpression 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, mincast, count, countDistinct, eq, eq, getQueryExpression, instanceOf, isParameter, isVariable, ne, neclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, mincast, count, countDistinct, eq, eq, instanceOf, ne, nepublic 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 StringExpressionexpr - The other expressionpublic CharacterExpression charAt(int pos)
StringExpressioncharAt in interface StringExpressionpos - The positionpublic CharacterExpression charAt(NumericExpression pos)
StringExpressioncharAt in interface StringExpressionpos - The positionpublic BooleanExpression endsWith(String str)
StringExpressionendsWith in interface StringExpressionstr - The string that it ends with.public BooleanExpression endsWith(StringExpression expr)
StringExpressionendsWith in interface StringExpressionexpr - The expression that it ends with.public BooleanExpression equalsIgnoreCase(String str)
StringExpressionequalsIgnoreCase in interface StringExpressionstr - The stringpublic BooleanExpression equalsIgnoreCase(StringExpression expr)
StringExpressionequalsIgnoreCase in interface StringExpressionexpr - The expressionpublic NumericExpression indexOf(String str, int pos)
StringExpressionindexOf in interface StringExpressionstr - The other stringpos - Start point of the searchpublic NumericExpression indexOf(String str, NumericExpression pos)
StringExpressionindexOf in interface StringExpressionstr - The other stringpos - Start point of the searchpublic NumericExpression indexOf(String str)
StringExpressionindexOf in interface StringExpressionstr - The other stringpublic NumericExpression indexOf(StringExpression expr, int pos)
StringExpressionindexOf in interface StringExpressionexpr - The other stringpos - Start point of the searchpublic NumericExpression indexOf(StringExpression expr, NumericExpression pos)
StringExpressionindexOf in interface StringExpressionexpr - The other stringpos - Start point of the searchpublic NumericExpression indexOf(StringExpression expr)
StringExpressionindexOf in interface StringExpressionexpr - The other stringpublic NumericExpression length()
StringExpressionlength in interface StringExpressionpublic BooleanExpression startsWith(String str)
StringExpressionstartsWith in interface StringExpressionstr - The string that it starts with.public BooleanExpression startsWith(StringExpression expr)
StringExpressionstartsWith in interface StringExpressionexpr - The expression that it starts with.public StringExpression substring(int startPos, int endPos)
StringExpressionsubstring in interface StringExpressionstartPos - 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)
StringExpressionsubstring in interface StringExpressionpos - The position of the start point of the substringpublic StringExpression substring(NumericExpression startPos, NumericExpression endPos)
StringExpressionsubstring in interface StringExpressionstartPos - 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 pos)
StringExpressionsubstring in interface StringExpressionpos - The position of the start point of the substringpublic StringExpression toLowerCase()
StringExpressiontoLowerCase in interface StringExpressionpublic StringExpression toUpperCase()
StringExpressiontoUpperCase in interface StringExpressionpublic StringExpression trim()
StringExpressiontrim in interface StringExpressionCopyright © 2015. All rights reserved.