|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that allows one datastore adapt operations
Method Summary | |
NumericExpression |
absMethod(ScalarExpression expr)
Returns the absolute expression for the JDOQL Math.abs(EXPRESSION) method. |
NumericExpression |
acosMethod(ScalarExpression expr)
Returns the expression for the JDOQL Math.acos(EXPRESSION) method. |
NumericExpression |
asinMethod(ScalarExpression expr)
Returns the expression for the JDOQL Math.asin(EXPRESSION) method. |
NumericExpression |
atanMethod(ScalarExpression expr)
Returns the expression for the JDOQL Math.tan(EXPRESSION) method. |
NumericExpression |
ceilMethod(ScalarExpression expr)
Returns the expression for the JDOQL Math.ceil(EXPRESSION) method. |
NumericExpression |
cosMethod(ScalarExpression expr)
Returns the expression for the JDOQL Math.cos(EXPRESSION) method. |
BooleanExpression |
endsWithMethod(ScalarExpression leftOperand,
ScalarExpression rightOperand)
Returns whether this string ends with the specified string. |
NumericExpression |
expMethod(ScalarExpression expr)
Returns the expression for the JDOQL Math.exp(EXPRESSION) method. |
NumericExpression |
floorMethod(ScalarExpression expr)
Returns the expression for the JDOQL Math.floor(EXPRESSION) method. |
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. |
NumericExpression |
logMethod(ScalarExpression expr)
Returns the expression for the JDOQL Math.log(EXPRESSION) method. |
NumericExpression |
sinMethod(ScalarExpression expr)
Returns the expression for the JDOQL Math.sin(EXPRESSION) method. |
NumericExpression |
sqrtMethod(ScalarExpression expr)
Returns the expression for the JDOQL Math.sqrt(EXPRESSION) 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. |
StringExpression |
substringMethod(StringExpression str,
NumericExpression begin,
NumericExpression end)
Returns the expression for the JDOQL String.substring(str,begin,end) method. |
NumericExpression |
tanMethod(ScalarExpression expr)
Returns the expression for the JDOQL Math.tan(EXPRESSION) method. |
StringExpression |
trimMethod(StringExpression str)
Returns the expression for the JDOQL String.trim(str) method. |
Method Detail |
public NumericExpression absMethod(ScalarExpression expr)
ABS(str)
expr
- The argument to the abs() method.
public NumericExpression sqrtMethod(ScalarExpression expr)
SQRT(str)
expr
- The argument to the sqrt() method.
public NumericExpression cosMethod(ScalarExpression expr)
COS(str)
expr
- The argument to the cos() method.
public NumericExpression sinMethod(ScalarExpression expr)
SIN(str)
expr
- The argument to the sin() method.
public NumericExpression tanMethod(ScalarExpression expr)
TAN(str)
expr
- The argument to the tan() method.
public NumericExpression acosMethod(ScalarExpression expr)
ACOS(str)
expr
- The argument to the cos() method.
public NumericExpression asinMethod(ScalarExpression expr)
ASIN(str)
expr
- The argument to the asin() method.
public NumericExpression atanMethod(ScalarExpression expr)
ATAN(str)
expr
- The argument to the atan() method.
public BooleanExpression endsWithMethod(ScalarExpression leftOperand, ScalarExpression rightOperand)
leftOperand
- the source stringrightOperand
- The string to compare against.
public NumericExpression expMethod(ScalarExpression expr)
EXP(str)
expr
- The argument to the exp() method.
public NumericExpression logMethod(ScalarExpression expr)
LOG(str)
expr
- The argument to the log() method.
public NumericExpression floorMethod(ScalarExpression expr)
FLOOR(str)
expr
- The argument to the floor() method.
public NumericExpression ceilMethod(ScalarExpression expr)
CEIL(str)
expr
- The argument to the ceil() method.
public NumericExpression lengthMethod(StringExpression str)
CHAR_LENGTH(str)
str
- The argument to the length() method.
public 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.
public 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.
public BooleanExpression startsWithMethod(ScalarExpression source, ScalarExpression str)
source
- The expression with the searched stringstr
- The expression for the search string
public 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
public StringExpression trimMethod(StringExpression str)
TRIM(str)
str
- The first argument to the trim() method.
public NumericExpression getDayMethod(SqlTemporalExpression source)
source
- The date expression to find the day of month for
public NumericExpression getMonthMethod(SqlTemporalExpression source)
source
- The date expression to find the month for
public NumericExpression getYearMethod(SqlTemporalExpression source)
source
- The date expression to find the year for
public NumericExpression getHourMethod(SqlTemporalExpression source)
source
- The time expression to find the hour for
public NumericExpression getMinuteMethod(SqlTemporalExpression source)
source
- The time expression to find the minute for
public NumericExpression getSecondMethod(SqlTemporalExpression source)
source
- The time expression to find the second for
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |