|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StringExpression
Representation of a string in a query.
| Method Summary | |
|---|---|
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(java.lang.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(java.lang.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(java.lang.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(java.lang.String str,
int pos)
Method to return an expression for the position of the passed string in this string after a position. |
NumericExpression |
indexOf(java.lang.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(java.lang.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. |
| Methods inherited from interface org.datanucleus.query.typesafe.ComparableExpression |
|---|
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min |
| Methods inherited from interface org.datanucleus.query.typesafe.Expression |
|---|
cast, count, countDistinct, eq, eq, instanceOf, ne, ne |
| Method Detail |
|---|
StringExpression add(Expression expr)
expr - The other expression
CharacterExpression charAt(int pos)
pos - The position
CharacterExpression charAt(NumericExpression pos)
pos - The position
BooleanExpression endsWith(StringExpression expr)
expr - The expression that it ends with.
BooleanExpression endsWith(java.lang.String str)
str - The string that it ends with.
BooleanExpression equalsIgnoreCase(StringExpression expr)
expr - The expression
BooleanExpression equalsIgnoreCase(java.lang.String str)
str - The string
NumericExpression indexOf(StringExpression expr)
expr - The other string
NumericExpression indexOf(java.lang.String str)
str - The other string
NumericExpression indexOf(StringExpression expr,
NumericExpression pos)
expr - The other stringpos - Start point of the search
NumericExpression indexOf(java.lang.String str,
NumericExpression pos)
str - The other stringpos - Start point of the search
NumericExpression indexOf(java.lang.String str,
int pos)
str - The other stringpos - Start point of the search
NumericExpression indexOf(StringExpression expr,
int pos)
expr - The other stringpos - Start point of the search
NumericExpression length()
BooleanExpression startsWith(StringExpression expr)
expr - The expression that it starts with.
BooleanExpression startsWith(java.lang.String str)
str - The string that it starts with.
StringExpression substring(NumericExpression pos)
pos - The position of the start point of the substring
StringExpression substring(int pos)
pos - The position of the start point of the substring
StringExpression substring(NumericExpression startPos,
NumericExpression endPos)
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)
StringExpression substring(int startPos,
int endPos)
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)
StringExpression toLowerCase()
StringExpression toUpperCase()
StringExpression trim()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||