| 
 | ||||||||||
| 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(String... str)Concatenate a string with other string(s). | 
|  Expression | dividedBy(Expression expr)Division. | 
|  Expression | dividedBy(Number num)Division. | 
|  Predicate | in(Class... classes)Create a predicate for testing whether the expression value is a member of the argument list. | 
|  Predicate | in(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(Number... nums)Create a predicate for testing whether the expression value is a member of the argument list. | 
|  Predicate | in(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(String str)Locate a string contained within the string corresponding to the expression on which the method was invoked. | 
|  Expression | locate(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(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(Number num)Subtraction. | 
|  Expression | mod(Expression expr)Modulo operation. | 
|  Expression | mod(int num)Modulo operation. | 
|  Expression | plus(Expression expr)Addition. | 
|  Expression | plus(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(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. | 
| Methods inherited from interface org.apache.openjpa.persistence.query.SelectItem | 
|---|
| asc, desc | 
| Methods inherited from interface org.apache.openjpa.persistence.query.PredicateOperand | 
|---|
| between, between, between, between, between, between, between, between, between, between, between, between, between, equal, equal, equal, equal, equal, equal, equal, equal, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterEqual, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, lessEqual, lessEqual, lessEqual, lessEqual, lessEqual, lessThan, lessThan, lessThan, lessThan, lessThan, like, like, like, like, like, like, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual, notEqual | 
| Method Detail | 
|---|
Predicate member(PathExpression arg)
arg - -
            a path expression that specifies a collection-valued
            association or an element collection
Predicate isNull()
Predicate in(String... strings)
strings - 
Predicate in(Number... nums)
nums - 
Predicate in(Enum<?>... enums)
enums - 
Predicate in(Class... classes)
classes - 
Predicate in(Expression... params)
params - 
Predicate in(Subquery subquery)
subquery - 
Expression length()
Expression concat(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(String str)
str - -
            string to be located
Expression locate(Expression str)
str - -
            expression corresponding to the string to be located
Expression locate(String str,
                  int position)
str - -
                 string to be locatedposition - -
                 position at which to start the search
Expression locate(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(Number num)
num - -
            number to be added
Expression plus(Expression expr)
expr - -
             expression corresponding to number to be added
Expression minus()
Expression minus(Number num)
num - -
            subtrahend
Expression minus(Expression expr)
expr - -
             expression corresponding to subtrahend
Expression dividedBy(Number num)
num - -
            divisor
Expression dividedBy(Expression expr)
expr - -
             expression corresponding to the divisor
Expression times(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
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||