public class QueryDefinitionImpl extends Object implements QueryDefinition, Expression
| Modifier and Type | Field and Description |
|---|---|
protected static Localizer |
_loc |
static String |
CLOSE_BRACE |
static String |
COMMA |
static String |
EMPTY |
static String |
OPEN_BRACE |
static String |
SPACE |
| Modifier | Constructor and Description |
|---|---|
protected |
QueryDefinitionImpl(QueryBuilderImpl builder) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
abs()
Absolute value.
|
protected <T extends AbstractDomainObject> |
addDomain(T path) |
DomainObject |
addRoot(Class cls)
Root domain object has no parent, no path but a non-null Class.
|
DomainObject |
addSubqueryRoot(PathExpression path)
Add a root derived from a domain object of the containing query
definition to a query definition used as a subquery.
|
Subquery |
all()
Use the query definition object in a subquery in an all expression.
|
Subquery |
any()
Use the query definition object in a subquery in an any expression.
|
OrderByItem |
asc()
Return an OrderByItem referencing the SelectItem and specifying ascending
ordering.
|
String |
asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
Get a JPQL fragment as used in WHERE clause.
|
String |
asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the string representation in FROM clause.
|
String |
asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the string representation in SELECT projection.
|
Predicate |
between(Calendar arg1,
Calendar arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(Calendar arg1,
PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(Date arg1,
Date arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(Date arg1,
PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(Number arg1,
Number arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(Number arg1,
PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(PredicateOperand arg1,
Calendar arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(PredicateOperand arg1,
Date arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(PredicateOperand arg1,
Number arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(PredicateOperand arg1,
PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(PredicateOperand arg1,
String arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(String arg1,
PredicateOperand arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Predicate |
between(String arg1,
String arg2)
Create a predicate for testing whether the PredicateOperand lies between
(inclusive) the two arguments.
|
Expression |
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 |
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 |
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 |
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 |
concat(Expression... exprs)
Concatenate a string with other string(s).
|
Expression |
concat(String... str)
Concatenate a string with other string(s).
|
Expression |
currentDate()
Create an Expression corresponding to the current date on the database
server at the time of query execution.
|
Expression |
currentTime()
Create an Expression corresponding to the current time on the database
server at the time of query execution.
|
Expression |
currentTimestamp()
Create an Expression corresponding to the current timestamp on the
database server at the time of query execution.
|
OrderByItem |
desc()
Return an OrderByItem referencing the SelectItem and specifying
descending ordering.
|
Expression |
dividedBy(Expression expr)
Division.
|
Expression |
dividedBy(Number num)
Division.
|
Predicate |
equal(boolean arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
equal(Calendar arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
equal(Class cls)
Create a predicate for testing equality with the specified argument.
|
Predicate |
equal(Date arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
equal(Enum<?> e)
Create a predicate for testing equality with the specified argument.
|
Predicate |
equal(Number arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
equal(PredicateOperand arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
equal(String arg)
Create a predicate for testing equality with the specified argument.
|
Predicate |
exists()
Use the query definition instance as a subquery in an exists predicate.
|
void |
fillBuffer(String header,
StringBuilder buffer,
org.apache.openjpa.persistence.query.AliasContext ctx,
List list,
org.apache.openjpa.persistence.query.QueryDefinitionImpl.Visit visit) |
void |
fillBuffer(String header,
StringBuilder buffer,
org.apache.openjpa.persistence.query.AliasContext ctx,
Predicate p) |
CaseExpression |
generalCase()
Create an empty general case expression.
|
String |
getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the hint to be used while creating alias.
|
Predicate |
greaterEqual(Calendar arg)
Create a predicate for testing whether the PredicateOperand is greater
than or equal to the argument.
|
Predicate |
greaterEqual(Date arg)
Create a predicate for testing whether the PredicateOperand is greater
than or equal to the argument.
|
Predicate |
greaterEqual(Number arg)
Create a predicate for testing whether the PredicateOperand is greater
than or equal to the argument.
|
Predicate |
greaterEqual(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is greater
than or equal to the argument.
|
Predicate |
greaterEqual(String arg)
Create a predicate for testing whether the PredicateOperand is greater
than or equal to the argument.
|
Predicate |
greaterThan(Calendar arg)
Create a predicate for testing whether the PredicateOperand is greater
than the argument.
|
Predicate |
greaterThan(Date arg)
Create a predicate for testing whether the PredicateOperand is greater
than the argument.
|
Predicate |
greaterThan(Number arg)
Create a predicate for testing whether the PredicateOperand is greater
than the argument.
|
Predicate |
greaterThan(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is greater
than the argument.
|
Predicate |
greaterThan(String arg)
Create a predicate for testing whether the PredicateOperand is greater
than the argument.
|
QueryDefinition |
groupBy(List<PathExpression> pathExprList)
Specify the items that are used to form groups over the query results.
|
QueryDefinition |
groupBy(PathExpression... pathExprs)
Specify the items that are used to form groups over the query results.
|
QueryDefinition |
having(Predicate predicate)
Specify the restrictions over the groups of a query.
|
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.
|
Predicate |
lessEqual(Calendar arg)
Create a predicate for testing whether the PredicateOperand is less than
or equal to the argument.
|
Predicate |
lessEqual(Date arg)
Create a predicate for testing whether the PredicateOperand is less than
or equal to the argument.
|
Predicate |
lessEqual(Number arg)
Create a predicate for testing whether the PredicateOperand is less than
or equal to the argument.
|
Predicate |
lessEqual(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is less than
or equal to the argument.
|
Predicate |
lessEqual(String arg)
Create a predicate for testing whether the PredicateOperand is less than
or equal to the argument.
|
Predicate |
lessThan(Calendar arg)
Create a predicate for testing whether the PredicateOperand is less than
the argument.
|
Predicate |
lessThan(Date arg)
Create a predicate for testing whether the PredicateOperand is less than
the argument.
|
Predicate |
lessThan(Number arg)
Create a predicate for testing whether the PredicateOperand is less than
the argument.
|
Predicate |
lessThan(PredicateOperand arg)
Create a predicate for testing whether the PredicateOperand is less than
the argument.
|
Predicate |
lessThan(String arg)
Create a predicate for testing whether the PredicateOperand is less than
the argument.
|
Predicate |
like(PredicateOperand pattern)
Create a predicate for testing whether the PredicateOperand satisfies the
given pattern.
|
Predicate |
like(PredicateOperand pattern,
char escapeChar)
Create a predicate for testing whether the PredicateOperand satisfies the
given pattern.
|
Predicate |
like(PredicateOperand pattern,
PredicateOperand escChar)
Create a predicate for testing whether the PredicateOperand satisfies the
given pattern.
|
Predicate |
like(String pattern)
Create a predicate for testing whether the PredicateOperand satisfies
the given pattern.
|
Predicate |
like(String pattern,
char escChar)
Create a predicate for testing whether the PredicateOperand satisfies
the given pattern.
|
Predicate |
like(String pattern,
PredicateOperand escapeChar)
Create a predicate for testing whether the PredicateOperand satisfies
the given pattern.
|
Expression |
literal(boolean b)
Create an Expression corresponding to a boolean value.
|
Expression |
literal(Calendar c)
Create an Expression corresponding to a Calendar value.
|
Expression |
literal(char c)
Create an Expression corresponding to a character value.
|
Expression |
literal(Class cls)
Create an Expression corresponding to an entity class.
|
Expression |
literal(Date d)
Create an Expression corresponding to a Date value.
|
Expression |
literal(Enum<?> e)
Create an Expression corresponding to an enum.
|
Expression |
literal(Number n)
Create an Expression corresponding to a numeric value.
|
Expression |
literal(String s)
Create an Expression corresponding to a String value.
|
Expression |
locate(Expression expr)
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.
|
SelectItem |
newInstance(Class cls,
SelectItem... args)
Specify that a constructor for the given class is to be applied to the
corresponding query results after the query is executed.
|
Predicate |
notEqual(boolean arg)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
notEqual(Calendar arg)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
notEqual(Class cls)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
notEqual(Date arg)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
notEqual(Enum<?> e)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
notEqual(Number arg)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
notEqual(PredicateOperand arg)
Create a predicate for testing inequality with the specified argument.
|
Predicate |
notEqual(String arg)
Create a predicate for testing inequality with the specified argument.
|
Expression |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
nullLiteral()
Create an Expression corresponding to a null value.
|
QueryDefinition |
orderBy(List<OrderByItem> orderByItemList)
Specify the items of the select list that are used in ordering the query
results.
|
QueryDefinition |
orderBy(OrderByItem... orderByItems)
Specify the items of the select list that are used in ordering the query
results.
|
Expression |
param(String name)
Specify use of a parameter of the given name.
|
Expression |
plus(Expression expr)
Addition.
|
Expression |
plus(Number num)
Addition.
|
Predicate |
predicate(boolean b)
Create a predicate value from the given boolean.
|
QueryDefinition |
select(List<SelectItem> items)
Specify the objects / values to be returned.
|
QueryDefinition |
select(SelectItem... items)
Specify the objects / values to be returned.
|
QueryDefinition |
selectDistinct(List<SelectItem> items)
Specify the objects / values to be returned.
|
QueryDefinition |
selectDistinct(SelectItem... items)
Specify the objects / values to be returned.
|
CaseExpression |
simpleCase(Calendar caseOperand)
Create a simple case expression with the given case operand.
|
CaseExpression |
simpleCase(Class caseOperand)
Create a simple case expression with the given case operand.
|
CaseExpression |
simpleCase(Date caseOperand)
Create a simple case expression with the given case operand.
|
CaseExpression |
simpleCase(Enum<?> caseOperand)
Create a simple case expression with the given case operand.
|
CaseExpression |
simpleCase(Expression caseOperand)
Create a simple case expression with the given case operand.
|
CaseExpression |
simpleCase(Number caseOperand)
Create a simple case expression with the given case operand.
|
CaseExpression |
simpleCase(String caseOperand)
Create a simple case expression with the given case operand.
|
Subquery |
some()
Use the query definition object in a subquery in a some expression.
|
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.
|
QueryDefinition |
where(Predicate predicate)
Modifies the query definition to restrict the result of the query
according to the specified predicate.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbetween, 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, notEqualabs, concat, concat, dividedBy, dividedBy, in, in, in, in, in, in, isNull, length, locate, locate, locate, locate, locate, locate, lower, member, minus, minus, minus, mod, mod, plus, plus, sqrt, substring, substring, substring, substring, substring, substring, times, times, trim, trim, trim, trim, trim, trim, upperasc, descasJoinableprotected static Localizer _loc
public static final String SPACE
public static final String OPEN_BRACE
public static final String CLOSE_BRACE
public static final String COMMA
public static final String EMPTY
protected QueryDefinitionImpl(QueryBuilderImpl builder)
builder - public DomainObject addRoot(Class cls)
addRoot in interface QueryDefinitioncls - -
an entity classpublic DomainObject addSubqueryRoot(PathExpression path)
QueryDefinitionaddSubqueryRoot in interface QueryDefinitionpath - -
path expression corresponding to the domain object used to
derive the subquery root.protected <T extends AbstractDomainObject> T addDomain(T path)
public Subquery all()
QueryDefinitionall in interface QueryDefinitionpublic Subquery any()
QueryDefinitionany in interface QueryDefinitionpublic Expression coalesce(Expression... exp)
QueryDefinitioncoalesce in interface QueryDefinitionexp - -
expressions to be used for testing against nullpublic Expression coalesce(String... exp)
QueryDefinitioncoalesce in interface QueryDefinitionexp - -
expressions to be used for testing against nullpublic Expression coalesce(Date... exp)
QueryDefinitioncoalesce in interface QueryDefinitionexp - -
expressions to be used for testing against nullpublic Expression coalesce(Calendar... exp)
QueryDefinitioncoalesce in interface QueryDefinitionexp - -
expressions to be used for testing against nullpublic Expression currentDate()
QueryDefinitioncurrentDate in interface QueryDefinitionpublic Expression currentTime()
QueryDefinitioncurrentTime in interface QueryDefinitionpublic Expression currentTimestamp()
QueryDefinitioncurrentTimestamp in interface QueryDefinitionpublic Predicate exists()
QueryDefinitionexists in interface QueryDefinitionpublic CaseExpression generalCase()
QueryDefinitiongeneralCase in interface QueryDefinitionpublic QueryDefinition groupBy(PathExpression... pathExprs)
QueryDefinitiongroupBy in interface QueryDefinitionpublic QueryDefinition groupBy(List<PathExpression> pathExprList)
QueryDefinitiongroupBy in interface QueryDefinitionpublic QueryDefinition having(Predicate predicate)
QueryDefinitionhaving in interface QueryDefinitionpublic Expression literal(String s)
QueryDefinitionliteral in interface QueryDefinitions - -
string valuepublic Expression literal(Number n)
QueryDefinitionliteral in interface QueryDefinitionn - -
numeric valuepublic Expression literal(boolean b)
QueryDefinitionliteral in interface QueryDefinitionb - -
boolean valuepublic Expression literal(Calendar c)
QueryDefinitionliteral in interface QueryDefinitionc - -
Calendar valuepublic Expression literal(Date d)
QueryDefinitionliteral in interface QueryDefinitiond - -
Date valuepublic Expression literal(char c)
QueryDefinitionliteral in interface QueryDefinitionpublic Expression literal(Class cls)
QueryDefinitionliteral in interface QueryDefinitioncls - -
entity classpublic Expression literal(Enum<?> e)
QueryDefinitionliteral in interface QueryDefinitione - -
enumpublic Expression nullLiteral()
QueryDefinitionnullLiteral in interface QueryDefinitionpublic SelectItem newInstance(Class cls, SelectItem... args)
QueryDefinitionnewInstance in interface QueryDefinitioncls - -
a class with the correponding constructorargs - -
select items that correspond to result types that are valid
as arguments to the constructorpublic Expression nullif(Expression exp1, Expression exp2)
QueryDefinitionnullif in interface QueryDefinitionpublic Expression nullif(Number arg1, Number arg2)
QueryDefinitionnullif in interface QueryDefinitionpublic Expression nullif(String arg1, String arg2)
QueryDefinitionnullif in interface QueryDefinitionarg2 - Criteria API Java Persistence 2.0, Public Review Draft
Criteria API Interfaces 10/31/08 158 JSR-317 Public Review
Draft Sun Microsystems, Inc.public Expression nullif(Date arg1, Date arg2)
QueryDefinitionnullif in interface QueryDefinitionpublic Expression nullif(Calendar arg1, Calendar arg2)
QueryDefinitionnullif in interface QueryDefinitionpublic Expression nullif(Class arg1, Class arg2)
QueryDefinitionnullif in interface QueryDefinitionpublic Expression nullif(Enum<?> arg1, Enum<?> arg2)
QueryDefinitionnullif in interface QueryDefinitionpublic QueryDefinition orderBy(OrderByItem... orderByItems)
QueryDefinitionorderBy in interface QueryDefinitionorderByItems - -
one or more OrderByItem instancespublic QueryDefinition orderBy(List<OrderByItem> orderByItemList)
QueryDefinitionorderBy in interface QueryDefinitionorderByItemList - -
a list containing one or more OrderByItem
instancespublic Expression param(String name)
QueryDefinitionparam in interface QueryDefinitionpublic Predicate predicate(boolean b)
QueryDefinitionpredicate in interface QueryDefinitionb - boolean valuepublic QueryDefinition select(SelectItem... items)
QueryDefinitionselect in interface QueryDefinitionitems - -
one or more SelectItem instancespublic QueryDefinition select(List<SelectItem> items)
QueryDefinitionselect in interface QueryDefinitionitems - -
a list containing one or more SelectItem instancespublic QueryDefinition selectDistinct(SelectItem... items)
QueryDefinitionselectDistinct in interface QueryDefinitionitems - -
one or more SelectItem instancespublic QueryDefinition selectDistinct(List<SelectItem> items)
QueryDefinitionselectDistinct in interface QueryDefinitionitems - -
a list containing one or more SelectItem instancespublic CaseExpression simpleCase(Expression caseOperand)
QueryDefinitionsimpleCase in interface QueryDefinitioncaseOperand - -
expression used for testing against the when scalar
expressionspublic CaseExpression simpleCase(Number caseOperand)
QueryDefinitionsimpleCase in interface QueryDefinitioncaseOperand - -
numeric value used for testing against the when scalar
expressionspublic CaseExpression simpleCase(String caseOperand)
QueryDefinitionsimpleCase in interface QueryDefinitioncaseOperand - -
value used for testing against the when scalar
expressionspublic CaseExpression simpleCase(Date caseOperand)
QueryDefinitionsimpleCase in interface QueryDefinitioncaseOperand - -
value used for testing against the when scalar
expressionspublic CaseExpression simpleCase(Calendar caseOperand)
QueryDefinitionsimpleCase in interface QueryDefinitioncaseOperand - -
value used for testing against the when scalar
expressionspublic CaseExpression simpleCase(Class caseOperand)
QueryDefinitionsimpleCase in interface QueryDefinitioncaseOperand - -
value used for testing against the when scalar
expressionspublic CaseExpression simpleCase(Enum<?> caseOperand)
QueryDefinitionsimpleCase in interface QueryDefinitioncaseOperand - -
value used for testing against the when scalar
expressionspublic Subquery some()
QueryDefinitionsome in interface QueryDefinitionpublic QueryDefinition where(Predicate predicate)
QueryDefinitionwhere in interface QueryDefinitionpredicate - -
a simple or compound conditional predicatepublic String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
VisitableasExpression in interface Visitablepublic String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
VisitableasProjection in interface Visitablepublic void fillBuffer(String header, StringBuilder buffer, org.apache.openjpa.persistence.query.AliasContext ctx, List list, org.apache.openjpa.persistence.query.QueryDefinitionImpl.Visit visit)
public void fillBuffer(String header, StringBuilder buffer, org.apache.openjpa.persistence.query.AliasContext ctx, Predicate p)
public Expression abs()
Expressionabs in interface Expressionpublic Expression concat(String... str)
Expressionconcat in interface Expressionstr - -
string(s)public Expression concat(Expression... exprs)
Expressionconcat in interface Expressionexprs - -
expression(s) corresponding to string(s)public Expression dividedBy(Number num)
ExpressiondividedBy in interface Expressionnum - -
divisorpublic Expression dividedBy(Expression expr)
ExpressiondividedBy in interface Expressionexpr - -
expression corresponding to the divisorpublic Predicate in(String... strings)
Expressionin in interface Expressionpublic Predicate in(Number... nums)
Expressionin in interface Expressionpublic Predicate in(Enum<?>... enums)
Expressionin in interface Expressionpublic Predicate in(Class... classes)
Expressionin in interface Expressionpublic Predicate in(Expression... params)
Expressionin in interface Expressionpublic Predicate in(Subquery subquery)
Expressionin in interface Expressionpublic Predicate isNull()
ExpressionisNull in interface Expressionpublic Expression length()
Expressionlength in interface Expressionpublic Expression locate(String str)
Expressionlocate in interface Expressionstr - -
string to be locatedpublic Expression locate(Expression expr)
Expressionlocate in interface Expressionexpr - -
expression corresponding to the string to be locatedpublic Expression locate(String str, int position)
Expressionlocate in interface Expressionstr - -
string to be locatedposition - -
position at which to start the searchpublic Expression locate(String str, Expression position)
Expressionlocate in interface Expressionstr - -
string to be locatedposition - -
expression corresponding to position at which to start
the searchpublic Expression locate(Expression str, int position)
Expressionlocate in interface Expressionstr - -
expression corresponding to the string to be locatedposition - -
position at which to start the searchpublic Expression locate(Expression str, Expression position)
Expressionlocate in interface Expressionstr - -
expression corresponding to the string to be locatedposition - -
expression corresponding to position at which to start
the searchpublic Expression lower()
Expressionlower in interface Expressionpublic Predicate member(PathExpression arg)
Expressionmember in interface Expressionarg - -
a path expression that specifies a collection-valued
association or an element collectionpublic Expression minus()
Expressionminus in interface Expressionpublic Expression minus(Number num)
Expressionminus in interface Expressionnum - -
subtrahendpublic Expression minus(Expression expr)
Expressionminus in interface Expressionexpr - -
expression corresponding to subtrahendpublic Expression mod(int num)
Expressionmod in interface Expressionnum - -
integer divisorpublic Expression mod(Expression expr)
Expressionmod in interface Expressionexpr - -
expression corresponding to integer divisorpublic Expression plus(Number num)
Expressionplus in interface Expressionnum - -
number to be addedpublic Expression plus(Expression expr)
Expressionplus in interface Expressionexpr - -
expression corresponding to number to be addedpublic Expression sqrt()
Expressionsqrt in interface Expressionpublic Expression substring(int start)
Expressionsubstring in interface Expressionstart - -
start position (1 indicates first position)public Expression substring(Expression start)
Expressionsubstring in interface Expressionstart - -
expression denoting start position (1 indicates first
position)public Expression substring(int start, int len)
Expressionsubstring in interface Expressionstart - -
start position (1 indicates first position)len - -
length of the substring to be returnedpublic Expression substring(int start, Expression len)
Expressionsubstring in interface Expressionstart - -
start position (1 indicates first position)len - -
expression denoting length of the substring to returnpublic Expression substring(Expression start, int len)
Expressionsubstring in interface Expressionstart - -
expression denoting start position (1 indicates first
position)len - -
length of the substring to returnpublic Expression substring(Expression start, Expression len)
Expressionsubstring in interface Expressionstart - -
expression denoting start position (1 indicates first
position)len - -
expression denoting length of the substring to returnpublic Expression times(Number num)
Expressiontimes in interface Expressionnum - -
multiplierpublic Expression times(Expression expr)
Expressiontimes in interface Expressionexpr - -
expression corresponding to the multiplierpublic Expression trim()
Expressiontrim in interface Expressionpublic Expression trim(TrimSpec spec)
Expressiontrim in interface Expressionspec - -
trim specificationpublic Expression trim(char c)
Expressiontrim in interface Expressionc - -
character to be trimmedpublic Expression trim(char c, TrimSpec spec)
Expressiontrim in interface Expressionc - -
character to be trimmedspec - -
trim specificationpublic Expression trim(Expression expr)
Expressiontrim in interface Expressionexpr - -
expression corresponding to the character to be trimmedpublic Expression trim(Expression expr, TrimSpec spec)
Expressiontrim in interface Expressionexpr - -
expression corresponding to the character to be trimmedspec - -
trim specificationpublic Expression upper()
Expressionupper in interface Expressionpublic OrderByItem asc()
SelectItemasc in interface SelectItempublic OrderByItem desc()
SelectItemdesc in interface SelectItempublic Predicate between(PredicateOperand arg1, PredicateOperand arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
PredicateOperand instance or parameterarg2 - -
PredicateOperand instance or parameterpublic Predicate between(PredicateOperand arg1, Number arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
PredicateOperand instance or parameterarg2 - -
numericpublic Predicate between(Number arg1, PredicateOperand arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
numericarg2 - -
PredicateOperand instance or parameterpublic Predicate between(Number arg1, Number arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
numericarg2 - -
numericpublic Predicate between(PredicateOperand arg1, String arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
PredicateOperand instance or parameterarg2 - -
stringpublic Predicate between(String arg1, PredicateOperand arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
stringarg2 - -
PredicateOperand instance or parameterpublic Predicate between(String arg1, String arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
stringarg2 - -
stringpublic Predicate between(PredicateOperand arg1, Date arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
PredicateOperand instance or parameterarg2 - -
datepublic Predicate between(Date arg1, PredicateOperand arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
datearg2 - -
PredicateOperand instance or parameterpublic Predicate between(Date arg1, Date arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
datearg2 - -
datepublic Predicate between(PredicateOperand arg1, Calendar arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
PredicateOperand instance or parameterarg2 - -
calendarpublic Predicate between(Calendar arg1, PredicateOperand arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
calendararg2 - -
PredicateOperand instance or parameterpublic Predicate between(Calendar arg1, Calendar arg2)
PredicateOperandbetween in interface PredicateOperandarg1 - -
calendararg2 - -
calendarpublic Predicate equal(PredicateOperand arg)
PredicateOperandequal in interface PredicateOperandarg - -
PredicateOperand instance or parameterpublic Predicate equal(Class cls)
PredicateOperandequal in interface PredicateOperandcls - -
entity classpublic Predicate equal(Number arg)
PredicateOperandequal in interface PredicateOperandarg - -
numericpublic Predicate equal(String arg)
PredicateOperandequal in interface PredicateOperandarg - -
string valuepublic Predicate equal(boolean arg)
PredicateOperandequal in interface PredicateOperandarg - -
boolean valuepublic Predicate equal(Date arg)
PredicateOperandequal in interface PredicateOperandarg - -
datepublic Predicate equal(Calendar arg)
PredicateOperandequal in interface PredicateOperandarg - -
calendarpublic Predicate equal(Enum<?> e)
PredicateOperandequal in interface PredicateOperande - -
enumpublic Predicate greaterEqual(PredicateOperand arg)
PredicateOperandgreaterEqual in interface PredicateOperandarg - -
PredicateOperand instance or parameterpublic Predicate greaterEqual(Number arg)
PredicateOperandgreaterEqual in interface PredicateOperandarg - -
numericpublic Predicate greaterEqual(String arg)
PredicateOperandgreaterEqual in interface PredicateOperandarg - -
stringpublic Predicate greaterEqual(Date arg)
PredicateOperandgreaterEqual in interface PredicateOperandarg - -
datepublic Predicate greaterEqual(Calendar arg)
PredicateOperandgreaterEqual in interface PredicateOperandarg - -
calendarpublic Predicate greaterThan(PredicateOperand arg)
PredicateOperandgreaterThan in interface PredicateOperandarg - -
PredicateOperand instance or parameterpublic Predicate greaterThan(Number arg)
PredicateOperandgreaterThan in interface PredicateOperandarg - -
numericpublic Predicate greaterThan(String arg)
PredicateOperandgreaterThan in interface PredicateOperandarg - -
stringpublic Predicate greaterThan(Date arg)
PredicateOperandgreaterThan in interface PredicateOperandarg - -
datepublic Predicate greaterThan(Calendar arg)
PredicateOperandgreaterThan in interface PredicateOperandarg - -
calendarpublic Predicate lessEqual(PredicateOperand arg)
PredicateOperandlessEqual in interface PredicateOperandarg - -
PredicateOperand instance or parameterpublic Predicate lessEqual(Number arg)
PredicateOperandlessEqual in interface PredicateOperandarg - -
numericpublic Predicate lessEqual(String arg)
PredicateOperandlessEqual in interface PredicateOperandarg - -
stringpublic Predicate lessEqual(Date arg)
PredicateOperandlessEqual in interface PredicateOperandarg - -
datepublic Predicate lessEqual(Calendar arg)
PredicateOperandlessEqual in interface PredicateOperandarg - -
calendarpublic Predicate lessThan(PredicateOperand arg)
PredicateOperandlessThan in interface PredicateOperandarg - -
PredicateOperand instance or parameterpublic Predicate lessThan(Number arg)
PredicateOperandlessThan in interface PredicateOperandarg - -
numericpublic Predicate lessThan(String arg)
PredicateOperandlessThan in interface PredicateOperandarg - -
stringpublic Predicate lessThan(Date arg)
PredicateOperandlessThan in interface PredicateOperandarg - -
datepublic Predicate lessThan(Calendar arg)
PredicateOperandlessThan in interface PredicateOperandarg - -
calendarpublic Predicate like(PredicateOperand pattern)
PredicateOperandlike in interface PredicateOperandpublic Predicate like(PredicateOperand pattern, PredicateOperand escChar)
PredicateOperandlike in interface PredicateOperandpublic Predicate like(PredicateOperand pattern, char escapeChar)
PredicateOperandlike in interface PredicateOperandpublic Predicate like(String pattern)
PredicateOperandlike in interface PredicateOperandpublic Predicate like(String pattern, PredicateOperand escapeChar)
PredicateOperandlike in interface PredicateOperandpublic Predicate like(String pattern, char escChar)
PredicateOperandlike in interface PredicateOperandpublic Predicate notEqual(PredicateOperand arg)
PredicateOperandnotEqual in interface PredicateOperandarg - -
PredicateOperand instance or parameterpublic Predicate notEqual(Class cls)
PredicateOperandnotEqual in interface PredicateOperandcls - -
entity classpublic Predicate notEqual(Number arg)
PredicateOperandnotEqual in interface PredicateOperandarg - -
numberic valuepublic Predicate notEqual(String arg)
PredicateOperandnotEqual in interface PredicateOperandarg - -
string valuepublic Predicate notEqual(boolean arg)
PredicateOperandnotEqual in interface PredicateOperandarg - -
boolean valuepublic Predicate notEqual(Date arg)
PredicateOperandnotEqual in interface PredicateOperandarg - -
datepublic Predicate notEqual(Calendar arg)
PredicateOperandnotEqual in interface PredicateOperandarg - -
calendarpublic Predicate notEqual(Enum<?> e)
PredicateOperandnotEqual in interface PredicateOperande - -
enumpublic String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
VisitablegetAliasHint in interface Visitablepublic String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
VisitableasJoinable in interface VisitableCopyright © 2006–2022 Apache Software Foundation. All rights reserved.