| 
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Expression | |
|---|---|
| org.apache.openjpa.persistence.query | OpenJPA Dynamic Query This package provides dynamic query construction that are similar to weakly-typed Criteria API. | 
| Uses of Expression in org.apache.openjpa.persistence.query | 
|---|
| Subinterfaces of Expression in org.apache.openjpa.persistence.query | |
|---|---|
 interface | 
Aggregate
Type of the result of an aggregate operation  | 
 interface | 
DomainObject
Domain objects define the domain over which a query operates.  | 
 interface | 
PathExpression
Interface for operations over objects reached via paths  | 
| Classes in org.apache.openjpa.persistence.query that implement Expression | |
|---|---|
 class | 
AbsExpression
Denotes ABS() operation on a given expression.  | 
 class | 
AbstractDomainObject
Domain Object is a path expression over which query is evaluated.  | 
 class | 
ArrayExpression
A single expression that holds an array of values.  | 
 class | 
AverageExpression
Denotes AVG() on a given Expression.  | 
 class | 
BinaryOperatorExpression
An expression resulting from a binary operation on two expressions.  | 
 class | 
ConcatExpression
Denotes CONCAT(e1,e2,..)  | 
 class | 
CountExpression
Denotes COUNT(e) Expression.  | 
 class | 
CurrentTimeExpression
Denotes CURRENT_TIME(), CURRENT_DATE() and CURRENT_TIMESTAMP() expressions.  | 
 class | 
DistinctExpression
Denotes DISTINCT(e) Expression.  | 
 class | 
DividedByExpression
Denotes e1/e2 Expression.  | 
 class | 
ElseExpression
Else clause in a Case Statement.  | 
 class | 
EntryExpression
Denotes ENTRY(e) on a path.  | 
 class | 
FetchPath
Denotes a path used in fetch join.  | 
 class | 
IndexExpression
Denotes INDEX(e) Expression.  | 
 class | 
JoinPath
Path resulting by joining from a parent path via an attribute.  | 
 class | 
KeyExpression
Denotes KEY(e) Expression.  | 
 class | 
LengthExpression
Denotes LENGTH(e) Expression.  | 
 class | 
LiteralExpression
Denotes a Literal Expression.  | 
 class | 
LocateExpression
Denotes LOCATE(e1, e2, n) Expression.  | 
 class | 
LowerExpression
Denotes LOWER(e) Expression.  | 
 class | 
MaxExpression
Denotes MAX(e) Expression.  | 
 class | 
MinExpression
Denotes MIN(e) Expression.  | 
 class | 
MinusExpression
Denotes (e1 - e2) Expression.  | 
 class | 
OperatorPath
A path resulting from KEY() or VALUE() operation on an existing path.  | 
 class | 
ParameterExpression
Denotes a parameter in a query.  | 
 class | 
PlusExpression
Denotes (e1 + e2) Expression.  | 
 class | 
QueryDefinitionImpl
Implements QueryDefinition.  | 
 class | 
RangeExpression
Denotes a range used by e1 BETWEEN x AND y operation.  | 
 class | 
RootPath
Denotes root domain instance representing a persistent type.  | 
 class | 
SizeExpression
Denotes SIZE(e) Expression.  | 
 class | 
SquareRootExpression
Denotes SQRT(e) Expression.  | 
 class | 
SubStringExpression
Denotes SUBSTR(a,i1,i2) Expression.  | 
 class | 
SumExpression
Denotes SUM(e) Expression.  | 
 class | 
TimesExpression
Denotes (e1*e2) Expression.  | 
 class | 
TrimExpression
Denotes TRIM(e1,x) Expression.  | 
 class | 
TypeExpression
Denotes TYPE(e) Expression.  | 
 class | 
UnaryMinusExpression
Denotes (-e) Expression.  | 
 class | 
UpperExpression
Denotes UPPER(e) Expression.  | 
 class | 
ValueExpression
Denotes VALUE(e) Expression.  | 
 class | 
VarArgsExpression
A expression that holds an array of Expressions.  | 
| Fields in org.apache.openjpa.persistence.query declared as Expression | |
|---|---|
protected  Expression | 
BinaryOperatorExpression._e1
 | 
protected  Expression | 
BinaryOperatorExpression._e2
 | 
| Methods in org.apache.openjpa.persistence.query that return Expression | |
|---|---|
 Expression | 
Expression.abs()
Absolute value.  | 
 Expression | 
QueryDefinitionImpl.coalesce(Calendar... exp)
 | 
 Expression | 
QueryDefinition.coalesce(Calendar... exp)
coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.  | 
 Expression | 
AbstractDomainObject.coalesce(Calendar... exp)
 | 
 Expression | 
QueryDefinitionImpl.coalesce(Date... exp)
 | 
 Expression | 
QueryDefinition.coalesce(Date... exp)
coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.  | 
 Expression | 
AbstractDomainObject.coalesce(Date... exp)
 | 
 Expression | 
QueryDefinitionImpl.coalesce(Expression... exp)
 | 
 Expression | 
QueryDefinition.coalesce(Expression... exp)
coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.  | 
 Expression | 
AbstractDomainObject.coalesce(Expression... exp)
 | 
 Expression | 
QueryDefinitionImpl.coalesce(String... exp)
 | 
 Expression | 
QueryDefinition.coalesce(String... exp)
coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.  | 
 Expression | 
AbstractDomainObject.coalesce(String... exp)
 | 
 Expression | 
Expression.concat(Expression... str)
Concatenate a string with other string(s).  | 
 Expression | 
Expression.concat(String... str)
Concatenate a string with other string(s).  | 
 Expression | 
QueryDefinitionImpl.currentDate()
 | 
 Expression | 
QueryDefinition.currentDate()
Create an Expression corresponding to the current date on the database server at the time of query execution.  | 
 Expression | 
AbstractDomainObject.currentDate()
 | 
 Expression | 
QueryDefinitionImpl.currentTime()
 | 
 Expression | 
QueryDefinition.currentTime()
Create an Expression corresponding to the current time on the database server at the time of query execution.  | 
 Expression | 
AbstractDomainObject.currentTime()
 | 
 Expression | 
QueryDefinitionImpl.currentTimestamp()
 | 
 Expression | 
QueryDefinition.currentTimestamp()
Create an Expression corresponding to the current timestamp on the database server at the time of query execution.  | 
 Expression | 
AbstractDomainObject.currentTimestamp()
 | 
 Expression | 
Aggregate.distinct()
Specify that duplicates are to be removed before the aggregate operation is invoked.  | 
 Expression | 
Expression.dividedBy(Expression expr)
Division.  | 
 Expression | 
Expression.dividedBy(Number num)
Division.  | 
 Expression | 
CaseExpressionImpl.elseCase(Calendar arg)
 | 
 Expression | 
CaseExpression.elseCase(Calendar arg)
Add else to a case expression.  | 
 Expression | 
CaseExpressionImpl.elseCase(Class arg)
 | 
 Expression | 
CaseExpression.elseCase(Class arg)
Add else to a case expression.  | 
 Expression | 
CaseExpressionImpl.elseCase(Date arg)
 | 
 Expression | 
CaseExpression.elseCase(Date arg)
Add else to a case expression.  | 
 Expression | 
CaseExpressionImpl.elseCase(Enum<?> arg)
 | 
 Expression | 
CaseExpression.elseCase(Enum<?> arg)
Add else to a case expression.  | 
 Expression | 
CaseExpressionImpl.elseCase(Expression arg)
 | 
 Expression | 
CaseExpression.elseCase(Expression arg)
Add else to a case expression.  | 
 Expression | 
CaseExpressionImpl.elseCase(Number arg)
 | 
 Expression | 
CaseExpression.elseCase(Number arg)
Add else to a case expression.  | 
 Expression | 
CaseExpressionImpl.elseCase(String arg)
 | 
 Expression | 
CaseExpression.elseCase(String arg)
Add else to a case expression.  | 
 Expression | 
BinaryOperatorExpression.getOperand1()
 | 
 Expression | 
BinaryOperatorExpression.getOperand2()
 | 
 Expression | 
DomainObject.index()
Return an expression that corresponds to the index. of the domain object in the referenced association or element collection.  | 
 Expression | 
AbstractDomainObject.index()
Derives by INDEX() operation on this path.  | 
 Expression | 
Expression.length()
String length This method must be invoked on an expression corresponding to a string.  | 
 Expression | 
QueryDefinitionImpl.literal(boolean b)
 | 
 Expression | 
QueryDefinition.literal(boolean b)
Create an Expression corresponding to a boolean value.  | 
 Expression | 
AbstractDomainObject.literal(boolean b)
 | 
 Expression | 
QueryDefinitionImpl.literal(Calendar c)
 | 
 Expression | 
QueryDefinition.literal(Calendar c)
Create an Expression corresponding to a Calendar value.  | 
 Expression | 
AbstractDomainObject.literal(Calendar c)
 | 
 Expression | 
QueryDefinitionImpl.literal(char c)
 | 
 Expression | 
QueryDefinition.literal(char c)
Create an Expression corresponding to a character value.  | 
 Expression | 
AbstractDomainObject.literal(char c)
 | 
 Expression | 
QueryDefinitionImpl.literal(Class cls)
 | 
 Expression | 
QueryDefinition.literal(Class cls)
Create an Expression corresponding to an entity class.  | 
 Expression | 
AbstractDomainObject.literal(Class cls)
 | 
 Expression | 
QueryDefinitionImpl.literal(Date d)
 | 
 Expression | 
QueryDefinition.literal(Date d)
Create an Expression corresponding to a Date value.  | 
 Expression | 
AbstractDomainObject.literal(Date d)
 | 
 Expression | 
QueryDefinitionImpl.literal(Enum<?> e)
 | 
 Expression | 
QueryDefinition.literal(Enum<?> e)
Create an Expression corresponding to an enum.  | 
 Expression | 
AbstractDomainObject.literal(Enum<?> e)
 | 
 Expression | 
QueryDefinitionImpl.literal(Number n)
 | 
 Expression | 
QueryDefinition.literal(Number n)
Create an Expression corresponding to a numeric value.  | 
 Expression | 
AbstractDomainObject.literal(Number n)
 | 
 Expression | 
QueryDefinitionImpl.literal(String s)
 | 
 Expression | 
QueryDefinition.literal(String s)
Create an Expression corresponding to a String value.  | 
 Expression | 
AbstractDomainObject.literal(String s)
 | 
 Expression | 
Expression.locate(Expression str)
Locate a string contained within the string corresponding to the expression on which the method was invoked.  | 
 Expression | 
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 | 
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 | 
Expression.locate(String str)
Locate a string contained within the string corresponding to the expression on which the method was invoked.  | 
 Expression | 
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 | 
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 | 
Expression.lower()
Convert string to lowercase.  | 
 Expression | 
Expression.minus()
Unary minus.  | 
 Expression | 
Expression.minus(Expression expr)
Subtraction.  | 
 Expression | 
Expression.minus(Number num)
Subtraction.  | 
 Expression | 
Expression.mod(Expression expr)
Modulo operation.  | 
 Expression | 
Expression.mod(int num)
Modulo operation.  | 
 Expression | 
QueryDefinitionImpl.nullif(Calendar arg1,
       Calendar arg2)
 | 
 Expression | 
QueryDefinition.nullif(Calendar arg1,
       Calendar arg2)
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.  | 
 Expression | 
AbstractDomainObject.nullif(Calendar arg1,
       Calendar arg2)
 | 
 Expression | 
QueryDefinitionImpl.nullif(Class arg1,
       Class arg2)
 | 
 Expression | 
QueryDefinition.nullif(Class arg1,
       Class arg2)
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.  | 
 Expression | 
AbstractDomainObject.nullif(Class arg1,
       Class arg2)
 | 
 Expression | 
QueryDefinitionImpl.nullif(Date arg1,
       Date arg2)
 | 
 Expression | 
QueryDefinition.nullif(Date arg1,
       Date arg2)
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.  | 
 Expression | 
AbstractDomainObject.nullif(Date arg1,
       Date arg2)
 | 
 Expression | 
QueryDefinitionImpl.nullif(Enum<?> arg1,
       Enum<?> arg2)
 | 
 Expression | 
QueryDefinition.nullif(Enum<?> arg1,
       Enum<?> arg2)
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.  | 
 Expression | 
AbstractDomainObject.nullif(Enum<?> arg1,
       Enum<?> arg2)
 | 
 Expression | 
QueryDefinitionImpl.nullif(Expression exp1,
       Expression exp2)
 | 
 Expression | 
QueryDefinition.nullif(Expression exp1,
       Expression exp2)
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.  | 
 Expression | 
AbstractDomainObject.nullif(Expression exp1,
       Expression exp2)
 | 
 Expression | 
QueryDefinitionImpl.nullif(Number arg1,
       Number arg2)
 | 
 Expression | 
QueryDefinition.nullif(Number arg1,
       Number arg2)
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.  | 
 Expression | 
AbstractDomainObject.nullif(Number arg1,
       Number arg2)
 | 
 Expression | 
QueryDefinitionImpl.nullif(String arg1,
       String arg2)
 | 
 Expression | 
QueryDefinition.nullif(String arg1,
       String arg2)
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.  | 
 Expression | 
AbstractDomainObject.nullif(String arg1,
       String arg2)
 | 
 Expression | 
QueryDefinitionImpl.nullLiteral()
 | 
 Expression | 
QueryDefinition.nullLiteral()
Create an Expression corresponding to a null value.  | 
 Expression | 
AbstractDomainObject.nullLiteral()
 | 
 Expression | 
QueryDefinitionImpl.param(String name)
 | 
 Expression | 
QueryDefinition.param(String name)
Specify use of a parameter of the given name.  | 
 Expression | 
AbstractDomainObject.param(String name)
 | 
 Expression | 
Expression.plus(Expression expr)
Addition.  | 
 Expression | 
Expression.plus(Number num)
Addition.  | 
 Expression | 
PathExpression.size()
Return an expression that corresponds to the number of elements association or element collection corresponding to the path expression.  | 
 Expression | 
Expression.sqrt()
Square root.  | 
 Expression | 
Expression.substring(Expression start)
Extract a substring starting at specified position through to the end of the string.  | 
 Expression | 
Expression.substring(Expression start,
          Expression len)
Extract a substring.  | 
 Expression | 
Expression.substring(Expression start,
          int len)
Extract a substring.  | 
 Expression | 
Expression.substring(int start)
Extract a substring starting at specified position through to the end of the string.  | 
 Expression | 
Expression.substring(int start,
          Expression len)
Extract a substring.  | 
 Expression | 
Expression.substring(int start,
          int len)
Extract a substring.  | 
 Expression | 
Expression.times(Expression expr)
Multiplication.  | 
 Expression | 
Expression.times(Number num)
Multiplication.  | 
 Expression | 
Expression.trim()
Trim leading and trailing blanks.  | 
 Expression | 
Expression.trim(char c)
Trim leading and trailing occurrences of character from the string.  | 
 Expression | 
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 | 
Expression.trim(Expression expr)
Trim leading and trailing occurrences of character specified by the expression argument from the string.  | 
 Expression | 
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 | 
Expression.trim(TrimSpec spec)
Trim leading, trailing blanks (or both) as specified by trim spec.  | 
 Expression | 
PathExpression.type()
Return an expression that corresponds to the type of the entity.  | 
 Expression | 
Expression.upper()
Convert string to uppercase.  | 
| Methods in org.apache.openjpa.persistence.query with parameters of type Expression | |
|---|---|
 Expression | 
QueryDefinitionImpl.coalesce(Expression... exp)
 | 
 Expression | 
QueryDefinition.coalesce(Expression... exp)
coalesce This is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.  | 
 Expression | 
AbstractDomainObject.coalesce(Expression... exp)
 | 
 Expression | 
Expression.concat(Expression... str)
Concatenate a string with other string(s).  | 
 Expression | 
Expression.dividedBy(Expression expr)
Division.  | 
 Expression | 
CaseExpressionImpl.elseCase(Expression arg)
 | 
 Expression | 
CaseExpression.elseCase(Expression arg)
Add else to a case expression.  | 
 Predicate | 
Expression.in(Expression... params)
Create a predicate for testing whether the expression value is a member of the argument list.  | 
 Expression | 
Expression.locate(Expression str)
Locate a string contained within the string corresponding to the expression on which the method was invoked.  | 
 Expression | 
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 | 
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 | 
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 | 
Expression.minus(Expression expr)
Subtraction.  | 
 Expression | 
Expression.mod(Expression expr)
Modulo operation.  | 
 Expression | 
QueryDefinitionImpl.nullif(Expression exp1,
       Expression exp2)
 | 
 Expression | 
QueryDefinition.nullif(Expression exp1,
       Expression exp2)
nullif This is equivalent to a case expression that tests whether its arguments are equal, returning null if they are and the value of the first expression if they are not.  | 
 Expression | 
AbstractDomainObject.nullif(Expression exp1,
       Expression exp2)
 | 
 Expression | 
Expression.plus(Expression expr)
Addition.  | 
 CaseExpression | 
QueryDefinitionImpl.simpleCase(Expression caseOperand)
 | 
 CaseExpression | 
QueryDefinition.simpleCase(Expression caseOperand)
Create a simple case expression with the given case operand.  | 
 CaseExpression | 
AbstractDomainObject.simpleCase(Expression caseOperand)
 | 
 Expression | 
Expression.substring(Expression start)
Extract a substring starting at specified position through to the end of the string.  | 
 Expression | 
Expression.substring(Expression start,
          Expression len)
Extract a substring.  | 
 Expression | 
Expression.substring(Expression start,
          int len)
Extract a substring.  | 
 Expression | 
Expression.substring(int start,
          Expression len)
Extract a substring.  | 
 CaseExpression | 
CaseExpressionImpl.then(Expression then)
 | 
 CaseExpression | 
CaseExpression.then(Expression then)
Add a then clause to a general or simple case expression.  | 
 Expression | 
Expression.times(Expression expr)
Multiplication.  | 
 Expression | 
Expression.trim(Expression expr)
Trim leading and trailing occurrences of character specified by the expression argument from the string.  | 
 Expression | 
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.  | 
 CaseExpression | 
CaseExpressionImpl.when(Expression when)
 | 
 CaseExpression | 
CaseExpression.when(Expression when)
Add a when clause to a simple case expression.  | 
  | 
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||