Package javax.jdo.query
Interface StringExpression
- All Superinterfaces:
ComparableExpression<String>
,Expression<String>
Representation of a string in a query.
-
Method Summary
Modifier and TypeMethodDescriptionMethod to return an expression for this string added to the passed expression (String concatenation).add
(Expression expr) Method to return an expression for this expression added to the passed expression (String concatenation).charAt
(int pos) Method to return an expression for the character at a position of this string expression.charAt
(NumericExpression<Integer> pos) Method to return an expression for the character at a position of this string expression.Method returning an expression for whether this string expression ends with the passed string expression.endsWith
(StringExpression expr) Method returning an expression for whether this string expression ends with the passed string expression.equalsIgnoreCase
(String str) Method returning an expression for whether this string expression is equal to (ignoring case) the passed string.Method returning an expression for whether this string expression is equal to (ignoring case) the passed string expression.Method to return an expression for the position of the passed string in this string.Method to return an expression for the position of the passed string in this string after a position.indexOf
(String str, NumericExpression<Integer> pos) Method to return an expression for the position of the passed string in this string after a position.indexOf
(StringExpression expr) Method to return an expression for the position of the passed string in this string.indexOf
(StringExpression expr, int pos) Method to return an expression for the position of the passed string in this string after a position.indexOf
(StringExpression expr, NumericExpression<Integer> pos) Method to return an expression for the position of the passed string in this string after a position.length()
Method returning a expression for the length of this string.Method to return an expression for whether this string expression matches the provided string.matches
(StringExpression expr) Method to return an expression for whether this string expression matches the provided expression.startsWith
(String str) Method returning an expression for whether this string expression starts with the passed string.startsWith
(String str, int pos) Method returning an expression for whether this string expression starts with the passed string.startsWith
(String str, NumericExpression<Integer> pos) Method returning an expression for whether this string expression starts with the passed string.startsWith
(StringExpression expr) Method returning an expression for whether this string expression starts with the passed string expression.startsWith
(StringExpression expr, int pos) Method returning an expression for whether this string expression starts with the passed string expression.startsWith
(StringExpression expr, NumericExpression<Integer> pos) Method returning an expression for whether this string expression starts with the passed string expression.substring
(int pos) Method to return an expression for the substring of this string expression.substring
(int startPos, int endPos) Method to return an expression for the substring of this string expression.Method to return an expression for the substring of this string expression.substring
(NumericExpression<Integer> startPos, NumericExpression<Integer> endPos) Method to return an expression for the substring of this string expression.Method to return a StringExpression representing this string expression in lower case.Method to return a StringExpression representing this string expression in upper case.trim()
Method returning a string expression with whitespace trimmed from start and end.Methods inherited from interface javax.jdo.query.ComparableExpression
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
Methods inherited from interface javax.jdo.query.Expression
as, cast, count, countDistinct, eq, eq, instanceOf, ne, ne
-
Method Details
-
add
Method to return an expression for this expression added to the passed expression (String concatenation).- Parameters:
expr
- The other expression- Returns:
- The summation
-
add
Method to return an expression for this string added to the passed expression (String concatenation).- Parameters:
str
- The other string- Returns:
- The summation
-
charAt
Method to return an expression for the character at a position of this string expression.- Parameters:
pos
- The position- Returns:
- Expression for the character
-
charAt
Method to return an expression for the character at a position of this string expression.- Parameters:
pos
- The position- Returns:
- Expression for the character
-
endsWith
Method returning an expression for whether this string expression ends with the passed string expression.- Parameters:
expr
- The expression that it ends with.- Returns:
- Whether it ends with the other string
-
endsWith
Method returning an expression for whether this string expression ends with the passed string expression.- Parameters:
str
- The string that it ends with.- Returns:
- Whether it ends with the other string
-
equalsIgnoreCase
Method returning an expression for whether this string expression is equal to (ignoring case) the passed string expression.- Parameters:
expr
- The expression- Returns:
- Whether they are equal
-
equalsIgnoreCase
Method returning an expression for whether this string expression is equal to (ignoring case) the passed string.- Parameters:
str
- The string- Returns:
- Whether they are equal
-
indexOf
Method to return an expression for the position of the passed string in this string.- Parameters:
expr
- The other string- Returns:
- Expression for the position of the passed string
-
indexOf
Method to return an expression for the position of the passed string in this string.- Parameters:
str
- The other string- Returns:
- Expression for the position of the passed string
-
indexOf
Method to return an expression for the position of the passed string in this string after a position.- Parameters:
expr
- The other stringpos
- Start point of the search- Returns:
- Expression for the position of the passed string
-
indexOf
Method to return an expression for the position of the passed string in this string after a position.- Parameters:
str
- The other stringpos
- Start point of the search- Returns:
- Expression for the position of the passed string
-
indexOf
Method to return an expression for the position of the passed string in this string after a position.- Parameters:
str
- The other stringpos
- Start point of the search- Returns:
- Expression for the position of the passed string
-
indexOf
Method to return an expression for the position of the passed string in this string after a position.- Parameters:
expr
- The other stringpos
- Start point of the search- Returns:
- Expression for the position of the passed string
-
length
NumericExpression<Integer> length()Method returning a expression for the length of this string.- Returns:
- Expression for the length
-
matches
Method to return an expression for whether this string expression matches the provided expression.- Parameters:
expr
- The expression to match against- Returns:
- Whether this expression matches the provided expression
-
matches
Method to return an expression for whether this string expression matches the provided string.- Parameters:
str
- String literal to match against- Returns:
- Whether this expression matches the provided string
-
startsWith
Method returning an expression for whether this string expression starts with the passed string expression.- Parameters:
expr
- The expression that it starts with.- Returns:
- Whether it starts with the other string
-
startsWith
Method returning an expression for whether this string expression starts with the passed string.- Parameters:
str
- The string that it starts with.- Returns:
- Whether it starts with the other string
-
startsWith
Method returning an expression for whether this string expression starts with the passed string expression.- Parameters:
expr
- The expression that it starts with.pos
- The position to start from- Returns:
- Whether it starts with the other string
-
startsWith
Method returning an expression for whether this string expression starts with the passed string.- Parameters:
str
- The string that it starts with.pos
- The position to start from- Returns:
- Whether it starts with the other string
-
startsWith
Method returning an expression for whether this string expression starts with the passed string expression.- Parameters:
expr
- The expression that it starts with.pos
- The position to start from- Returns:
- Whether it starts with the other string
-
startsWith
Method returning an expression for whether this string expression starts with the passed string.- Parameters:
str
- The string that it starts with.pos
- The position to start from- Returns:
- Whether it starts with the other string
-
substring
Method to return an expression for the substring of this string expression.- Parameters:
pos
- The position of the start point of the substring- Returns:
- Expression for the substring
-
substring
Method to return an expression for the substring of this string expression.- Parameters:
pos
- The position of the start point of the substring- Returns:
- Expression for the substring
-
substring
Method to return an expression for the substring of this string expression.- Parameters:
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)- Returns:
- Expression for the substring
-
substring
Method to return an expression for the substring of this string expression.- Parameters:
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)- Returns:
- Expression for the substring
-
toLowerCase
StringExpression toLowerCase()Method to return a StringExpression representing this string expression in lower case.- Returns:
- The lower case expression
-
toUpperCase
StringExpression toUpperCase()Method to return a StringExpression representing this string expression in upper case.- Returns:
- The upper case expression
-
trim
StringExpression trim()Method returning a string expression with whitespace trimmed from start and end.- Returns:
- String expression with whitespace trimmed
-