|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExpressionMethodAdapter
Interface that allows one datastore adapt operations.
| Method Summary | |
|---|---|
BooleanExpression |
endsWithMethod(ScalarExpression leftOperand,
ScalarExpression rightOperand)
Returns whether this string ends with the specified string. |
ScalarExpression |
getCurrentDateMethod(QueryExpression qs)
Method to return an expression for the current date in the datastore. |
ScalarExpression |
getCurrentTimeMethod(QueryExpression qs)
Method to return an expression for the current time in the datastore. |
ScalarExpression |
getCurrentTimestampMethod(QueryExpression qs)
Method to return an expression for the current timestamp in the datastore. |
NumericExpression |
indexOfMethod(ScalarExpression source,
ScalarExpression str,
NumericExpression from)
Method to handle the indexOf operation. |
StringExpression |
lowerMethod(StringExpression str)
Returns the expression for the JDOQL String.toLowerCase(str) method. |
BooleanExpression |
matchesMethod(StringExpression text,
StringExpression pattern)
Matches this to the argument expression pattern. |
BooleanExpression |
startsWithMethod(ScalarExpression source,
ScalarExpression str)
Method to handle the starts with operation. |
StringExpression |
substringMethod(StringExpression str,
NumericExpression begin)
Returns the expression for the JDOQL String.substring(str,begin) method. |
StringExpression |
substringMethod(StringExpression str,
NumericExpression begin,
NumericExpression end)
Returns the expression for the JDOQL String.substring(str,begin,end) method. |
StringExpression |
translateMethod(ScalarExpression expr,
ScalarExpression toExpr,
ScalarExpression fromExpr)
Method to translate all chars in this expression to the fromExpr which
corresponds to toExpr. |
StringExpression |
trimMethod(StringExpression str,
boolean leading,
boolean trailing)
Returns the expression for the JDOQL String.trim(str) method. |
StringExpression |
upperMethod(StringExpression str)
Returns the expression for the JDOQL String.toUpperCase(str) method. |
| Method Detail |
|---|
BooleanExpression endsWithMethod(ScalarExpression leftOperand,
ScalarExpression rightOperand)
leftOperand - the source stringrightOperand - The string to compare against.
StringExpression substringMethod(StringExpression str,
NumericExpression begin)
SUBSTRING(str FROM begin)Note that the value of begin is base 0(Java-style), while most SQL string functions use base 1.
str - The first argument to the substring() method.begin - The second argument to the substring() method.
StringExpression substringMethod(StringExpression str,
NumericExpression begin,
NumericExpression end)
Note that the value of begin is base 0 (Java-style), while most SQL string functions use base 1. Note also that an end position is given, while most SQL substring functions take a length.SUBSTRING(str FROM begin FOR len)
str - The first argument to the substring() method.begin - The second argument to the substring() method.end - The third argument to the substring() method.
BooleanExpression startsWithMethod(ScalarExpression source,
ScalarExpression str)
source - The expression with the searched stringstr - The expression for the search string
NumericExpression indexOfMethod(ScalarExpression source,
ScalarExpression str,
NumericExpression from)
source - The expression with the searched stringstr - The expression for the search stringfrom - Position to start searching from
StringExpression trimMethod(StringExpression str,
boolean leading,
boolean trailing)
TRIM(str)
str - The first argument to the trim() method.leading - Whether to trim leading spacestrailing - Whether to trim trailing spaces
BooleanExpression matchesMethod(StringExpression text,
StringExpression pattern)
text - The argument to the length() method.pattern - The literal expression with the pattern.
StringExpression translateMethod(ScalarExpression expr,
ScalarExpression toExpr,
ScalarExpression fromExpr)
fromExpr which
corresponds to toExpr.
StringExpression lowerMethod(StringExpression str)
LOWER(str)
str - The first argument to the trim() method.
StringExpression upperMethod(StringExpression str)
UPPER(str)
str - The first argument to the trim() method.
ScalarExpression getCurrentDateMethod(QueryExpression qs)
qs - QueryExpression
ScalarExpression getCurrentTimeMethod(QueryExpression qs)
qs - QueryExpression
ScalarExpression getCurrentTimestampMethod(QueryExpression qs)
qs - QueryExpression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||