| org.jpox.store.expression.ExpressionMethodAdapter
ExpressionMethodAdapter | public interface ExpressionMethodAdapter (Code) | | Interface that allows one datastore adapt operations
version: $Revision: 1.11 $ |
Method Summary | |
NumericExpression | absMethod(ScalarExpression expr) Returns the absolute expression for the JDOQL Math.abs(EXPRESSION)
method.
In SQL, it may compile to:
ABS(str)
Parameters: expr - The argument to the abs() method. | NumericExpression | acosMethod(ScalarExpression expr) Returns the expression for the JDOQL Math.acos(EXPRESSION)
method.
In SQL, it may compile to:
ACOS(str)
Parameters: expr - The argument to the cos() method. | NumericExpression | asinMethod(ScalarExpression expr) Returns the expression for the JDOQL Math.asin(EXPRESSION)
method.
In SQL, it may compile to:
ASIN(str)
Parameters: expr - The argument to the asin() method. | NumericExpression | atanMethod(ScalarExpression expr) Returns the expression for the JDOQL Math.tan(EXPRESSION)
method.
In SQL, it may compile to:
ATAN(str)
Parameters: expr - The argument to the atan() method. | NumericExpression | ceilMethod(ScalarExpression expr) Returns the expression for the JDOQL Math.ceil(EXPRESSION)
method.
In SQL, it may compile to:
CEIL(str)
Parameters: expr - The argument to the ceil() method. | NumericExpression | cosMethod(ScalarExpression expr) Returns the expression for the JDOQL Math.cos(EXPRESSION)
method.
In SQL, it may compile to:
COS(str)
Parameters: expr - The argument to the cos() method. | BooleanExpression | endsWithMethod(ScalarExpression leftOperand, ScalarExpression rightOperand) Returns whether this string ends with the specified string.
Parameters: leftOperand - the source string Parameters: rightOperand - The string to compare against. | NumericExpression | expMethod(ScalarExpression expr) Returns the expression for the JDOQL Math.exp(EXPRESSION)
method.
In SQL, it may compile to:
EXP(str)
Parameters: expr - The argument to the exp() method. | NumericExpression | floorMethod(ScalarExpression expr) Returns the expression for the JDOQL Math.floor(EXPRESSION)
method.
In SQL, it may compile to:
FLOOR(str)
Parameters: expr - The argument to the floor() method. | 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 | getDayMethod(SqlTemporalExpression source) Method to handle the Date.getDay() method in JDOQL. | NumericExpression | getHourMethod(SqlTemporalExpression source) Method to handle the Time.getHour() method in JDOQL. | NumericExpression | getMinuteMethod(SqlTemporalExpression source) Method to handle the Time.getMinute() method in JDOQL. | NumericExpression | getMonthMethod(SqlTemporalExpression source) Method to handle the Date.getMonth() method in JDOQL. | NumericExpression | getSecondMethod(SqlTemporalExpression source) Method to handle the Time.getSecond() method in JDOQL. | NumericExpression | getYearMethod(SqlTemporalExpression source) Method to handle the Date.getYear() method in JDOQL. | NumericExpression | indexOfMethod(ScalarExpression source, ScalarExpression str, NumericExpression from) Method to handle the indexOf operation. | NumericExpression | lengthMethod(StringExpression str) Returns the expression for the JDOQL String.length()
method.
In SQL, it may compile to:
CHAR_LENGTH(str)
Parameters: str - The argument to the length() method. | NumericExpression | logMethod(ScalarExpression expr) Returns the expression for the JDOQL Math.log(EXPRESSION)
method.
In SQL, it may compile to:
LOG(str)
Parameters: expr - The argument to the log() method. | BooleanExpression | matchesMethod(StringExpression text, StringExpression pattern) Matches this to the argument expression pattern. | NumericExpression | sinMethod(ScalarExpression expr) Returns the expression for the JDOQL Math.sin(EXPRESSION)
method.
In SQL, it may compile to:
SIN(str)
Parameters: expr - The argument to the sin() method. | NumericExpression | sqrtMethod(ScalarExpression expr) Returns the expression for the JDOQL Math.sqrt(EXPRESSION)
method.
In SQL, it may compile to:
SQRT(str)
Parameters: expr - The argument to the sqrt() method. | 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.
In SQL, it may compile to:
SUBSTRING(str FROM begin)
Note that the value of begin is base 0(Java-style), while most
SQL string functions use base 1.
Parameters: str - The first argument to the substring() method. Parameters: begin - The second argument to the substring() method. | StringExpression | substringMethod(StringExpression str, NumericExpression begin, NumericExpression end) Returns the expression for the JDOQL
String.substring(str,begin,end) method.
In SQL, it may compile to:
SUBSTRING(str FROM begin FOR len)
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.
Parameters: str - The first argument to the substring() method. Parameters: begin - The second argument to the substring() method. Parameters: end - The third argument to the substring() method. | NumericExpression | tanMethod(ScalarExpression expr) Returns the expression for the JDOQL Math.tan(EXPRESSION)
method.
In SQL, it may compile to:
TAN(str)
Parameters: expr - The argument to the tan() 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. |
absMethod | NumericExpression absMethod(ScalarExpression expr)(Code) | | Returns the absolute expression for the JDOQL Math.abs(EXPRESSION)
method.
In SQL, it may compile to:
ABS(str)
Parameters: expr - The argument to the abs() method. The expression. |
acosMethod | NumericExpression acosMethod(ScalarExpression expr)(Code) | | Returns the expression for the JDOQL Math.acos(EXPRESSION)
method.
In SQL, it may compile to:
ACOS(str)
Parameters: expr - The argument to the cos() method. The expression. |
asinMethod | NumericExpression asinMethod(ScalarExpression expr)(Code) | | Returns the expression for the JDOQL Math.asin(EXPRESSION)
method.
In SQL, it may compile to:
ASIN(str)
Parameters: expr - The argument to the asin() method. The expression. |
atanMethod | NumericExpression atanMethod(ScalarExpression expr)(Code) | | Returns the expression for the JDOQL Math.tan(EXPRESSION)
method.
In SQL, it may compile to:
ATAN(str)
Parameters: expr - The argument to the atan() method. The expression. |
ceilMethod | NumericExpression ceilMethod(ScalarExpression expr)(Code) | | Returns the expression for the JDOQL Math.ceil(EXPRESSION)
method.
In SQL, it may compile to:
CEIL(str)
Parameters: expr - The argument to the ceil() method. The expression. |
cosMethod | NumericExpression cosMethod(ScalarExpression expr)(Code) | | Returns the expression for the JDOQL Math.cos(EXPRESSION)
method.
In SQL, it may compile to:
COS(str)
Parameters: expr - The argument to the cos() method. The expression. |
endsWithMethod | BooleanExpression endsWithMethod(ScalarExpression leftOperand, ScalarExpression rightOperand)(Code) | | Returns whether this string ends with the specified string.
Parameters: leftOperand - the source string Parameters: rightOperand - The string to compare against. Whether it ends with the string. |
expMethod | NumericExpression expMethod(ScalarExpression expr)(Code) | | Returns the expression for the JDOQL Math.exp(EXPRESSION)
method.
In SQL, it may compile to:
EXP(str)
Parameters: expr - The argument to the exp() method. The expression. |
floorMethod | NumericExpression floorMethod(ScalarExpression expr)(Code) | | Returns the expression for the JDOQL Math.floor(EXPRESSION)
method.
In SQL, it may compile to:
FLOOR(str)
Parameters: expr - The argument to the floor() method. The expression. |
getCurrentDateMethod | ScalarExpression getCurrentDateMethod(QueryExpression qs)(Code) | | Method to return an expression for the current date in the datastore.
Parameters: qs - QueryExpression Current date expression for this datastore |
getCurrentTimeMethod | ScalarExpression getCurrentTimeMethod(QueryExpression qs)(Code) | | Method to return an expression for the current time in the datastore.
Parameters: qs - QueryExpression Current time expression for this datastore |
getCurrentTimestampMethod | ScalarExpression getCurrentTimestampMethod(QueryExpression qs)(Code) | | Method to return an expression for the current timestamp in the datastore.
Parameters: qs - QueryExpression Current timestamp expression for this datastore |
getDayMethod | NumericExpression getDayMethod(SqlTemporalExpression source)(Code) | | Method to handle the Date.getDay() method in JDOQL.
Parameters: source - The date expression to find the day of month for The expression for the day of the month. |
getHourMethod | NumericExpression getHourMethod(SqlTemporalExpression source)(Code) | | Method to handle the Time.getHour() method in JDOQL.
Parameters: source - The time expression to find the hour for The expression for the hour. |
getMinuteMethod | NumericExpression getMinuteMethod(SqlTemporalExpression source)(Code) | | Method to handle the Time.getMinute() method in JDOQL.
Parameters: source - The time expression to find the minute for The expression for the minute. |
getMonthMethod | NumericExpression getMonthMethod(SqlTemporalExpression source)(Code) | | Method to handle the Date.getMonth() method in JDOQL.
Parameters: source - The date expression to find the month for The expression for the month. |
getSecondMethod | NumericExpression getSecondMethod(SqlTemporalExpression source)(Code) | | Method to handle the Time.getSecond() method in JDOQL.
Parameters: source - The time expression to find the second for The expression for the second. |
getYearMethod | NumericExpression getYearMethod(SqlTemporalExpression source)(Code) | | Method to handle the Date.getYear() method in JDOQL.
Parameters: source - The date expression to find the year for The expression for the year. |
lengthMethod | NumericExpression lengthMethod(StringExpression str)(Code) | | Returns the expression for the JDOQL String.length()
method.
In SQL, it may compile to:
CHAR_LENGTH(str)
Parameters: str - The argument to the length() method. The expression. |
logMethod | NumericExpression logMethod(ScalarExpression expr)(Code) | | Returns the expression for the JDOQL Math.log(EXPRESSION)
method.
In SQL, it may compile to:
LOG(str)
Parameters: expr - The argument to the log() method. The expression. |
matchesMethod | BooleanExpression matchesMethod(StringExpression text, StringExpression pattern)(Code) | | Matches this to the argument expression pattern. Use "." to find any
character and ".*" for wildcard matches. A global case-insensitive flag
"(?i)" can be set for the pattern. If used, the global case-insensitive
flag must prefix the pattern. The pattern passed to matches must be a
literal or parameter.
Parameters: text - The argument to the length() method. Parameters: pattern - The literal expression with the pattern. the match expression. |
sinMethod | NumericExpression sinMethod(ScalarExpression expr)(Code) | | Returns the expression for the JDOQL Math.sin(EXPRESSION)
method.
In SQL, it may compile to:
SIN(str)
Parameters: expr - The argument to the sin() method. The expression. |
sqrtMethod | NumericExpression sqrtMethod(ScalarExpression expr)(Code) | | Returns the expression for the JDOQL Math.sqrt(EXPRESSION)
method.
In SQL, it may compile to:
SQRT(str)
Parameters: expr - The argument to the sqrt() method. The expression. |
startsWithMethod | BooleanExpression startsWithMethod(ScalarExpression source, ScalarExpression str)(Code) | | Method to handle the starts with operation.
Parameters: source - The expression with the searched string Parameters: str - The expression for the search string The expression. |
substringMethod | StringExpression substringMethod(StringExpression str, NumericExpression begin)(Code) | | Returns the expression for the JDOQL
String.substring(str,begin) method.
In SQL, it may compile to:
SUBSTRING(str FROM begin)
Note that the value of begin is base 0(Java-style), while most
SQL string functions use base 1.
Parameters: str - The first argument to the substring() method. Parameters: begin - The second argument to the substring() method. The expression. |
substringMethod | StringExpression substringMethod(StringExpression str, NumericExpression begin, NumericExpression end)(Code) | | Returns the expression for the JDOQL
String.substring(str,begin,end) method.
In SQL, it may compile to:
SUBSTRING(str FROM begin FOR len)
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.
Parameters: str - The first argument to the substring() method. Parameters: begin - The second argument to the substring() method. Parameters: end - The third argument to the substring() method. The expression. |
tanMethod | NumericExpression tanMethod(ScalarExpression expr)(Code) | | Returns the expression for the JDOQL Math.tan(EXPRESSION)
method.
In SQL, it may compile to:
TAN(str)
Parameters: expr - The argument to the tan() method. The expression. |
trimMethod | StringExpression trimMethod(StringExpression str, boolean leading, boolean trailing)(Code) | | Returns the expression for the JDOQL String.trim(str) method.
In SQL, it may compile to:
TRIM(str)
Parameters: str - The first argument to the trim() method. Parameters: leading - Whether to trim leading spaces Parameters: trailing - Whether to trim trailing spaces The expression. |
|
|