|
EclipseLink 2.0.0_ 2.0.0.r3967-SNAPSHOT API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Expression
Instances of this interface can be used either as select list items or as predicate operands.
| Method Summary | |
|---|---|
Expression |
abs()
Absolute value. |
Expression |
concat(Expression... str)
Concatenate a string with other string(s). |
Expression |
concat(java.lang.String... str)
Concatenate a string with other string(s). |
Expression |
dividedBy(Expression expr)
Division. |
Expression |
dividedBy(java.lang.Number num)
Division. |
Predicate |
in(java.lang.Class... classes)
Create a predicate for testing whether the expression value is a member of the argument list. |
Predicate |
in(java.lang.Enum<?>... enums)
Create a predicate for testing whether the expression value is a member of the argument list. |
Predicate |
in(Expression... params)
Create a predicate for testing whether the expression value is a member of the argument list. |
Predicate |
in(java.lang.Number... nums)
Create a predicate for testing whether the expression value is a member of the argument list. |
Predicate |
in(java.lang.String... strings)
Create a predicate for testing whether the expression value is a member of the argument list. |
Predicate |
in(Subquery subquery)
Create a predicate for testing whether the expression value is a member of a subquery result. |
Predicate |
isNull()
Create a predicate for testing whether the value of the expression is null. |
Expression |
length()
String length This method must be invoked on an expression corresponding to a string. |
Expression |
locate(Expression str)
Locate a string contained within the string corresponding to the expression on which the method was invoked. |
Expression |
locate(Expression str,
Expression position)
Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position. |
Expression |
locate(Expression str,
int position)
Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position. |
Expression |
locate(java.lang.String str)
Locate a string contained within the string corresponding to the expression on which the method was invoked. |
Expression |
locate(java.lang.String str,
Expression position)
Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position. |
Expression |
locate(java.lang.String str,
int position)
Locate a string contained within the string corresponding to the expression on which the method was invoked, starting at a specified search position. |
Expression |
lower()
Convert string to lowercase. |
Predicate |
member(PathExpression arg)
Create a predicate for testing whether the expression is a member of the association or element collection denoted by the path expression. |
Expression |
minus()
Unary minus. |
Expression |
minus(Expression expr)
Subtraction. |
Expression |
minus(java.lang.Number num)
Subtraction. |
Expression |
mod(Expression expr)
Modulo operation. |
Expression |
mod(int num)
Modulo operation. |
Expression |
plus(Expression expr)
Addition. |
Expression |
plus(java.lang.Number num)
Addition. |
Expression |
sqrt()
Square root. |
Expression |
substring(Expression start)
Extract a substring starting at specified position through to the end of the string. |
Expression |
substring(Expression start,
Expression len)
Extract a substring. |
Expression |
substring(Expression start,
int len)
Extract a substring. |
Expression |
substring(int start)
Extract a substring starting at specified position through to the end of the string. |
Expression |
substring(int start,
Expression len)
Extract a substring. |
Expression |
substring(int start,
int len)
Extract a substring. |
Expression |
times(Expression expr)
Multiplication. |
Expression |
times(java.lang.Number num)
Multiplication. |
Expression |
trim()
Trim leading and trailing blanks. |
Expression |
trim(char c)
Trim leading and trailing occurrences of character from the string. |
Expression |
trim(char c,
TrimSpec spec)
Trim occurrences of the character from leading or trailing (or both) positions of the string, as specified by trim spec. |
Expression |
trim(Expression expr)
Trim leading and trailing occurrences of character specified by the expression argument from the string. |
Expression |
trim(Expression expr,
TrimSpec spec)
Trim occurrences of the character specified by the expression argument from leading or trailing (or both) positions of the string, as specified by trim spec. |
Expression |
trim(TrimSpec spec)
Trim leading, trailing blanks (or both) as specified by trim spec. |
Expression |
upper()
Convert string to uppercase. |
| Method Detail |
|---|
Predicate member(PathExpression arg)
arg - - a path expression that specifies a collection-valued
association or an element collection
Predicate isNull()
Predicate in(java.lang.String... strings)
strings -
Predicate in(java.lang.Number... nums)
nums -
Predicate in(java.lang.Enum<?>... enums)
enums -
Predicate in(java.lang.Class... classes)
classes -
Predicate in(Expression... params)
params -
Predicate in(Subquery subquery)
subquery -
Expression length()
Expression concat(java.lang.String... str)
str - - string(s)
Expression concat(Expression... str)
str - - expression(s) corresponding to string(s)
Expression substring(int start)
start - - start position (1 indicates first position)
Expression substring(Expression start)
start - - expression denoting start position (1 indicates first
position)
Expression substring(int start,
int len)
start - - start position (1 indicates first position)len - - length of the substring to be returned
Expression substring(int start,
Expression len)
start - - start position (1 indicates first position)len - - expression denoting length of the substring to return
Expression substring(Expression start,
int len)
start - - expression denoting start position (1 indicates first
position)len - - length of the substring to return
Expression substring(Expression start,
Expression len)
start - - expression denoting start position (1 indicates first
position)len - - expression denoting length of the substring to return
Expression lower()
Expression upper()
Expression trim()
Expression trim(TrimSpec spec)
spec - - trim specification
Expression trim(char c)
c - - character to be trimmed
Expression trim(char c,
TrimSpec spec)
c - - character to be trimmedspec - - trim specification
Expression trim(Expression expr)
expr - - expression corresponding to the character to be trimmed
Expression trim(Expression expr,
TrimSpec spec)
expr - - expression corresponding to the character to be trimmedspec - - trim specification
Expression locate(java.lang.String str)
str - - string to be located
Expression locate(Expression str)
str - - expression corresponding to the string to be located
Expression locate(java.lang.String str,
int position)
str - - string to be locatedposition - - position at which to start the search
Expression locate(java.lang.String str,
Expression position)
str - - string to be locatedposition - - expression corresponding to position at which to start the
search
Expression locate(Expression str,
int position)
str - - expression corresponding to the string to be locatedposition - - position at which to start the search
Expression locate(Expression str,
Expression position)
str - - expression corresponding to the string to be locatedposition - - expression corresponding to position at which to start the
search
Expression plus(java.lang.Number num)
num - - number to be added
Expression plus(Expression expr)
expr - - expression corresponding to number to be added
Expression minus()
Expression minus(java.lang.Number num)
num - - subtrahend
Expression minus(Expression expr)
expr - - expression corresponding to subtrahend
Expression dividedBy(java.lang.Number num)
num - - divisor
Expression dividedBy(Expression expr)
expr - - expression corresponding to the divisor
Expression times(java.lang.Number num)
num - - multiplier
Expression times(Expression expr)
expr - - expression corresponding to the multiplier
Expression abs()
Expression sqrt()
Expression mod(int num)
num - - integer divisor
Expression mod(Expression expr)
expr - - expression corresponding to integer divisor
|
EclipseLink 2.0.0_ 2.0.0.r3967-SNAPSHOT API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||