|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.persistence.query.AbstractDomainObject
public abstract class AbstractDomainObject
Domain Object is a path expression over which query is evaluated. Domain object acts as a proxy for a QueryDefinition via delegation.
Field Summary | |
---|---|
protected PathOperator |
_operator
|
protected QueryDefinitionImpl |
_owner
|
protected org.apache.openjpa.persistence.query.AbstractPath |
_parent
|
protected Object |
_part2
|
static String |
CLOSE_BRACE
|
static String |
COMMA
|
static String |
EMPTY
|
static String |
OPEN_BRACE
|
static String |
SPACE
|
Constructor Summary | |
---|---|
protected |
AbstractDomainObject(QueryDefinitionImpl owner,
org.apache.openjpa.persistence.query.AbstractPath parent,
PathOperator op,
Object part2)
|
Method Summary | |
---|---|
Expression |
abs()
Absolute value. |
DomainObject |
addRoot(Class cls)
Adding a root adds a root domain to the owning query. |
DomainObject |
addSubqueryRoot(PathExpression path)
Adding a query root adds a subquery to the owning query. |
Subquery |
all()
Derives this path as ALL(subquery) to its owning query. |
Subquery |
any()
Adds this path as ANY(subquery) to its owning query. |
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. |
Aggregate |
avg()
Specify that the avg operation is to be applied. |
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). |
Aggregate |
count()
Specify that the count operation is to be applied. |
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. |
SelectItem |
entry()
Derives by ENTRY() operation on this path. |
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()
Adds this path as EXISTS(subquery) to its owning query. |
CaseExpression |
generalCase()
Create an empty general case expression. |
PathExpression |
get(String attr)
Derives a path from this path by navigating through the given field. |
String |
getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the hint to be used while creating alias. |
Object |
getLastSegment()
Gets the last segment of this path. |
PathOperator |
getOperator()
Gets operator that derived this receiver from its parent. |
org.apache.openjpa.persistence.query.AbstractPath |
getParent()
Gets the parent from which this receiver has been derived. |
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. |
Expression |
index()
Derives by INDEX() operation on this path. |
Predicate |
isEmpty()
Add a restriction that the path expression must correspond to an association or element collection that is empty (has no elements). |
Predicate |
isNull()
Create a predicate for testing whether the value of the expression is null. |
DomainObject |
join(String attr)
Derives a path from this path by joining the given field. |
FetchJoinObject |
joinFetch(String attr)
Derives a path from this path by fetch joining the given field. |
PathExpression |
key()
Derives by KEY() operation on this path. |
DomainObject |
leftJoin(String attr)
Derives a path from this path by outer joining the given field. |
FetchJoinObject |
leftJoinFetch(String attr)
Derives a path from this path by fetch joining the given field. |
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. |
Aggregate |
max()
Specify that the max operation is to be applied. |
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. |
Aggregate |
min()
Specify that the min operation is to be applied. |
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> selectItemList)
Specify the objects / values to be returned. |
QueryDefinition |
select(SelectItem... selectItems)
Specify the objects / values to be returned. |
QueryDefinition |
selectDistinct(List<SelectItem> selectItemList)
Specify the objects / values to be returned. |
QueryDefinition |
selectDistinct(SelectItem... selectItems)
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. |
Expression |
size()
Return an expression that corresponds to the number of elements association or element collection corresponding to the path expression. |
Subquery |
some()
Adds this path as SOME(subquery) to its owning query. |
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. |
Aggregate |
sum()
Specify that the sum operation is to be applied. |
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 |
type()
Return an expression that corresponds to the type of the entity. |
Expression |
upper()
Convert string to uppercase. |
PathExpression |
value()
Derives a path by VALUE() operation on this path. |
QueryDefinition |
where(Predicate predicate)
Modifies the query definition to restrict the result of the query according to the specified predicate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.persistence.query.PathExpression |
---|
avg, count, isEmpty, max, min, size, sum, type |
Methods inherited from interface org.apache.openjpa.persistence.query.Expression |
---|
abs, 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, upper |
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 |
Methods inherited from interface org.apache.openjpa.persistence.query.Visitable |
---|
asExpression, asJoinable, asProjection |
Field Detail |
---|
protected final org.apache.openjpa.persistence.query.AbstractPath _parent
protected final Object _part2
protected final PathOperator _operator
protected final QueryDefinitionImpl _owner
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
Constructor Detail |
---|
protected AbstractDomainObject(QueryDefinitionImpl owner, org.apache.openjpa.persistence.query.AbstractPath parent, PathOperator op, Object part2)
Method Detail |
---|
public DomainObject addRoot(Class cls)
addRoot
in interface QueryDefinition
cls
- -
an entity class
public DomainObject addSubqueryRoot(PathExpression path)
addSubqueryRoot
in interface QueryDefinition
path
- -
path expression corresponding to the domain object used to
derive the subquery root.
public PathExpression get(String attr)
get
in interface PathExpression
attr
- -
name of the referenced attribute
public DomainObject join(String attr)
join
in interface DomainObject
attr
- -
name of the attribute that references the target of the
join
public DomainObject leftJoin(String attr)
leftJoin
in interface DomainObject
attr
- -
name of the attribute that references the target of the
join
public FetchJoinObject joinFetch(String attr)
joinFetch
in interface DomainObject
attr
- -
name of the attribute that references the target of the
join
public FetchJoinObject leftJoinFetch(String attr)
leftJoinFetch
in interface DomainObject
attr
- -
name of the attribute that references the target of the
join
public PathExpression key()
key
in interface DomainObject
public SelectItem entry()
entry
in interface DomainObject
public Expression index()
index
in interface DomainObject
public PathExpression value()
value
in interface DomainObject
public Subquery all()
all
in interface QueryDefinition
public Subquery any()
any
in interface QueryDefinition
public Subquery some()
some
in interface QueryDefinition
public Predicate exists()
exists
in interface QueryDefinition
public Expression coalesce(Expression... exp)
QueryDefinition
coalesce
in interface QueryDefinition
exp
- -
expressions to be used for testing against null
public Expression coalesce(String... exp)
QueryDefinition
coalesce
in interface QueryDefinition
exp
- -
expressions to be used for testing against null
public Expression coalesce(Date... exp)
QueryDefinition
coalesce
in interface QueryDefinition
exp
- -
expressions to be used for testing against null
public Expression coalesce(Calendar... exp)
QueryDefinition
coalesce
in interface QueryDefinition
exp
- -
expressions to be used for testing against null
public Expression currentDate()
QueryDefinition
currentDate
in interface QueryDefinition
public Expression currentTime()
QueryDefinition
currentTime
in interface QueryDefinition
public Expression currentTimestamp()
QueryDefinition
currentTimestamp
in interface QueryDefinition
public CaseExpression generalCase()
QueryDefinition
generalCase
in interface QueryDefinition
public QueryDefinition groupBy(PathExpression... pathExprs)
QueryDefinition
groupBy
in interface QueryDefinition
public QueryDefinition groupBy(List<PathExpression> pathExprList)
QueryDefinition
groupBy
in interface QueryDefinition
public QueryDefinition having(Predicate predicate)
QueryDefinition
having
in interface QueryDefinition
public Expression literal(String s)
QueryDefinition
literal
in interface QueryDefinition
s
- -
string value
public Expression literal(Number n)
QueryDefinition
literal
in interface QueryDefinition
n
- -
numeric value
public Expression literal(boolean b)
QueryDefinition
literal
in interface QueryDefinition
b
- -
boolean value
public Expression literal(Calendar c)
QueryDefinition
literal
in interface QueryDefinition
c
- -
Calendar value
public Expression literal(Date d)
QueryDefinition
literal
in interface QueryDefinition
d
- -
Date value
public Expression literal(char c)
QueryDefinition
literal
in interface QueryDefinition
public Expression literal(Class cls)
QueryDefinition
literal
in interface QueryDefinition
cls
- -
entity class
public Expression literal(Enum<?> e)
QueryDefinition
literal
in interface QueryDefinition
e
- -
enum
public SelectItem newInstance(Class cls, SelectItem... args)
QueryDefinition
newInstance
in interface QueryDefinition
cls
- -
a class with the correponding constructorargs
- -
select items that correspond to result types that are valid
as arguments to the constructorpublic Expression nullLiteral()
QueryDefinition
nullLiteral
in interface QueryDefinition
public Expression nullif(Expression exp1, Expression exp2)
QueryDefinition
nullif
in interface QueryDefinition
public Expression nullif(Number arg1, Number arg2)
QueryDefinition
nullif
in interface QueryDefinition
public Expression nullif(String arg1, String arg2)
QueryDefinition
nullif
in interface QueryDefinition
arg2
- 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)
QueryDefinition
nullif
in interface QueryDefinition
public Expression nullif(Calendar arg1, Calendar arg2)
QueryDefinition
nullif
in interface QueryDefinition
public Expression nullif(Class arg1, Class arg2)
QueryDefinition
nullif
in interface QueryDefinition
public Expression nullif(Enum<?> arg1, Enum<?> arg2)
QueryDefinition
nullif
in interface QueryDefinition
public QueryDefinition orderBy(OrderByItem... orderByItems)
QueryDefinition
orderBy
in interface QueryDefinition
orderByItems
- -
one or more OrderByItem instances
public QueryDefinition orderBy(List<OrderByItem> orderByItemList)
QueryDefinition
orderBy
in interface QueryDefinition
orderByItemList
- -
a list containing one or more OrderByItem
instances
public Expression param(String name)
QueryDefinition
param
in interface QueryDefinition
public Predicate predicate(boolean b)
QueryDefinition
predicate
in interface QueryDefinition
b
- boolean value
public QueryDefinition select(SelectItem... selectItems)
QueryDefinition
select
in interface QueryDefinition
selectItems
- -
one or more SelectItem instances
public QueryDefinition select(List<SelectItem> selectItemList)
QueryDefinition
select
in interface QueryDefinition
selectItemList
- -
a list containing one or more SelectItem instances
public QueryDefinition selectDistinct(SelectItem... selectItems)
QueryDefinition
selectDistinct
in interface QueryDefinition
selectItems
- -
one or more SelectItem instances
public QueryDefinition selectDistinct(List<SelectItem> selectItemList)
QueryDefinition
selectDistinct
in interface QueryDefinition
selectItemList
- -
a list containing one or more SelectItem instances
public CaseExpression simpleCase(Expression caseOperand)
QueryDefinition
simpleCase
in interface QueryDefinition
caseOperand
- -
expression used for testing against the when scalar
expressions
public CaseExpression simpleCase(Number caseOperand)
QueryDefinition
simpleCase
in interface QueryDefinition
caseOperand
- -
numeric value used for testing against the when scalar
expressions
public CaseExpression simpleCase(String caseOperand)
QueryDefinition
simpleCase
in interface QueryDefinition
caseOperand
- -
value used for testing against the when scalar
expressions
public CaseExpression simpleCase(Date caseOperand)
QueryDefinition
simpleCase
in interface QueryDefinition
caseOperand
- -
value used for testing against the when scalar
expressions
public CaseExpression simpleCase(Calendar caseOperand)
QueryDefinition
simpleCase
in interface QueryDefinition
caseOperand
- -
value used for testing against the when scalar
expressions
public CaseExpression simpleCase(Class caseOperand)
QueryDefinition
simpleCase
in interface QueryDefinition
caseOperand
- -
value used for testing against the when scalar
expressions
public CaseExpression simpleCase(Enum<?> caseOperand)
QueryDefinition
simpleCase
in interface QueryDefinition
caseOperand
- -
value used for testing against the when scalar
expressions
public QueryDefinition where(Predicate predicate)
QueryDefinition
where
in interface QueryDefinition
predicate
- -
a simple or compound conditional predicate
public org.apache.openjpa.persistence.query.AbstractPath getParent()
public PathOperator getOperator()
public Object getLastSegment()
public Aggregate avg()
PathExpression
avg
in interface PathExpression
public Aggregate count()
PathExpression
count
in interface PathExpression
public Predicate isEmpty()
PathExpression
isEmpty
in interface PathExpression
public Aggregate max()
PathExpression
max
in interface PathExpression
public Aggregate min()
PathExpression
min
in interface PathExpression
public Expression size()
PathExpression
size
in interface PathExpression
public Aggregate sum()
PathExpression
sum
in interface PathExpression
public Expression type()
PathExpression
type
in interface PathExpression
public Expression abs()
Expression
abs
in interface Expression
public Expression concat(String... str)
Expression
concat
in interface Expression
str
- -
string(s)
public Expression concat(Expression... exprs)
Expression
concat
in interface Expression
exprs
- -
expression(s) corresponding to string(s)
public Expression dividedBy(Number num)
Expression
dividedBy
in interface Expression
num
- -
divisor
public Expression dividedBy(Expression expr)
Expression
dividedBy
in interface Expression
expr
- -
expression corresponding to the divisor
public Predicate in(String... strings)
Expression
in
in interface Expression
public Predicate in(Number... nums)
Expression
in
in interface Expression
public Predicate in(Enum<?>... enums)
Expression
in
in interface Expression
public Predicate in(Class... classes)
Expression
in
in interface Expression
public Predicate in(Expression... params)
Expression
in
in interface Expression
public Predicate in(Subquery subquery)
Expression
in
in interface Expression
public Predicate isNull()
Expression
isNull
in interface Expression
public Expression length()
Expression
length
in interface Expression
public Expression locate(String str)
Expression
locate
in interface Expression
str
- -
string to be located
public Expression locate(Expression expr)
Expression
locate
in interface Expression
expr
- -
expression corresponding to the string to be located
public Expression locate(String str, int position)
Expression
locate
in interface Expression
str
- -
string to be locatedposition
- -
position at which to start the search
public Expression locate(String str, Expression position)
Expression
locate
in interface Expression
str
- -
string to be locatedposition
- -
expression corresponding to position at which to start
the search
public Expression locate(Expression str, int position)
Expression
locate
in interface Expression
str
- -
expression corresponding to the string to be locatedposition
- -
position at which to start the search
public Expression locate(Expression str, Expression position)
Expression
locate
in interface Expression
str
- -
expression corresponding to the string to be locatedposition
- -
expression corresponding to position at which to start
the search
public Expression lower()
Expression
lower
in interface Expression
public Predicate member(PathExpression arg)
Expression
member
in interface Expression
arg
- -
a path expression that specifies a collection-valued
association or an element collection
public Expression minus()
Expression
minus
in interface Expression
public Expression minus(Number num)
Expression
minus
in interface Expression
num
- -
subtrahend
public Expression minus(Expression expr)
Expression
minus
in interface Expression
expr
- -
expression corresponding to subtrahend
public Expression mod(int num)
Expression
mod
in interface Expression
num
- -
integer divisor
public Expression mod(Expression expr)
Expression
mod
in interface Expression
expr
- -
expression corresponding to integer divisor
public Expression plus(Number num)
Expression
plus
in interface Expression
num
- -
number to be added
public Expression plus(Expression expr)
Expression
plus
in interface Expression
expr
- -
expression corresponding to number to be added
public Expression sqrt()
Expression
sqrt
in interface Expression
public Expression substring(int start)
Expression
substring
in interface Expression
start
- -
start position (1 indicates first position)
public Expression substring(Expression start)
Expression
substring
in interface Expression
start
- -
expression denoting start position (1 indicates first
position)
public Expression substring(int start, int len)
Expression
substring
in interface Expression
start
- -
start position (1 indicates first position)len
- -
length of the substring to be returned
public Expression substring(int start, Expression len)
Expression
substring
in interface Expression
start
- -
start position (1 indicates first position)len
- -
expression denoting length of the substring to return
public Expression substring(Expression start, int len)
Expression
substring
in interface Expression
start
- -
expression denoting start position (1 indicates first
position)len
- -
length of the substring to return
public Expression substring(Expression start, Expression len)
Expression
substring
in interface Expression
start
- -
expression denoting start position (1 indicates first
position)len
- -
expression denoting length of the substring to return
public Expression times(Number num)
Expression
times
in interface Expression
num
- -
multiplier
public Expression times(Expression expr)
Expression
times
in interface Expression
expr
- -
expression corresponding to the multiplier
public Expression trim()
Expression
trim
in interface Expression
public Expression trim(TrimSpec spec)
Expression
trim
in interface Expression
spec
- -
trim specification
public Expression trim(char c)
Expression
trim
in interface Expression
c
- -
character to be trimmed
public Expression trim(char c, TrimSpec spec)
Expression
trim
in interface Expression
c
- -
character to be trimmedspec
- -
trim specification
public Expression trim(Expression expr)
Expression
trim
in interface Expression
expr
- -
expression corresponding to the character to be trimmed
public Expression trim(Expression expr, TrimSpec spec)
Expression
trim
in interface Expression
expr
- -
expression corresponding to the character to be trimmedspec
- -
trim specification
public Expression upper()
Expression
upper
in interface Expression
public OrderByItem asc()
SelectItem
asc
in interface SelectItem
public OrderByItem desc()
SelectItem
desc
in interface SelectItem
public Predicate between(PredicateOperand arg1, PredicateOperand arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
PredicateOperand instance or parameterarg2
- -
PredicateOperand instance or parameter
public Predicate between(PredicateOperand arg1, Number arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
PredicateOperand instance or parameterarg2
- -
numeric
public Predicate between(Number arg1, PredicateOperand arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
numericarg2
- -
PredicateOperand instance or parameter
public Predicate between(Number arg1, Number arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
numericarg2
- -
numeric
public Predicate between(PredicateOperand arg1, String arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
PredicateOperand instance or parameterarg2
- -
string
public Predicate between(String arg1, PredicateOperand arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
stringarg2
- -
PredicateOperand instance or parameter
public Predicate between(String arg1, String arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
stringarg2
- -
string
public Predicate between(PredicateOperand arg1, Date arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
PredicateOperand instance or parameterarg2
- -
date
public Predicate between(Date arg1, PredicateOperand arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
datearg2
- -
PredicateOperand instance or parameter
public Predicate between(Date arg1, Date arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
datearg2
- -
date
public Predicate between(PredicateOperand arg1, Calendar arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
PredicateOperand instance or parameterarg2
- -
calendar
public Predicate between(Calendar arg1, PredicateOperand arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
calendararg2
- -
PredicateOperand instance or parameter
public Predicate between(Calendar arg1, Calendar arg2)
PredicateOperand
between
in interface PredicateOperand
arg1
- -
calendararg2
- -
calendar
public Predicate equal(PredicateOperand arg)
PredicateOperand
equal
in interface PredicateOperand
arg
- -
PredicateOperand instance or parameter
public Predicate equal(Class cls)
PredicateOperand
equal
in interface PredicateOperand
cls
- -
entity class
public Predicate equal(Number arg)
PredicateOperand
equal
in interface PredicateOperand
arg
- -
numeric
public Predicate equal(String arg)
PredicateOperand
equal
in interface PredicateOperand
arg
- -
string value
public Predicate equal(boolean arg)
PredicateOperand
equal
in interface PredicateOperand
arg
- -
boolean value
public Predicate equal(Date arg)
PredicateOperand
equal
in interface PredicateOperand
arg
- -
date
public Predicate equal(Calendar arg)
PredicateOperand
equal
in interface PredicateOperand
arg
- -
calendar
public Predicate equal(Enum<?> e)
PredicateOperand
equal
in interface PredicateOperand
e
- -
enum
public Predicate greaterEqual(PredicateOperand arg)
PredicateOperand
greaterEqual
in interface PredicateOperand
arg
- -
PredicateOperand instance or parameter
public Predicate greaterEqual(Number arg)
PredicateOperand
greaterEqual
in interface PredicateOperand
arg
- -
numeric
public Predicate greaterEqual(String arg)
PredicateOperand
greaterEqual
in interface PredicateOperand
arg
- -
string
public Predicate greaterEqual(Date arg)
PredicateOperand
greaterEqual
in interface PredicateOperand
arg
- -
date
public Predicate greaterEqual(Calendar arg)
PredicateOperand
greaterEqual
in interface PredicateOperand
arg
- -
calendar
public Predicate greaterThan(PredicateOperand arg)
PredicateOperand
greaterThan
in interface PredicateOperand
arg
- -
PredicateOperand instance or parameter
public Predicate greaterThan(Number arg)
PredicateOperand
greaterThan
in interface PredicateOperand
arg
- -
numeric
public Predicate greaterThan(String arg)
PredicateOperand
greaterThan
in interface PredicateOperand
arg
- -
string
public Predicate greaterThan(Date arg)
PredicateOperand
greaterThan
in interface PredicateOperand
arg
- -
date
public Predicate greaterThan(Calendar arg)
PredicateOperand
greaterThan
in interface PredicateOperand
arg
- -
calendar
public Predicate lessEqual(PredicateOperand arg)
PredicateOperand
lessEqual
in interface PredicateOperand
arg
- -
PredicateOperand instance or parameter
public Predicate lessEqual(Number arg)
PredicateOperand
lessEqual
in interface PredicateOperand
arg
- -
numeric
public Predicate lessEqual(String arg)
PredicateOperand
lessEqual
in interface PredicateOperand
arg
- -
string
public Predicate lessEqual(Date arg)
PredicateOperand
lessEqual
in interface PredicateOperand
arg
- -
date
public Predicate lessEqual(Calendar arg)
PredicateOperand
lessEqual
in interface PredicateOperand
arg
- -
calendar
public Predicate lessThan(PredicateOperand arg)
PredicateOperand
lessThan
in interface PredicateOperand
arg
- -
PredicateOperand instance or parameter
public Predicate lessThan(Number arg)
PredicateOperand
lessThan
in interface PredicateOperand
arg
- -
numeric
public Predicate lessThan(String arg)
PredicateOperand
lessThan
in interface PredicateOperand
arg
- -
string
public Predicate lessThan(Date arg)
PredicateOperand
lessThan
in interface PredicateOperand
arg
- -
date
public Predicate lessThan(Calendar arg)
PredicateOperand
lessThan
in interface PredicateOperand
arg
- -
calendar
public Predicate like(PredicateOperand pattern)
PredicateOperand
like
in interface PredicateOperand
public Predicate like(PredicateOperand pattern, PredicateOperand escChar)
PredicateOperand
like
in interface PredicateOperand
public Predicate like(PredicateOperand pattern, char escapeChar)
PredicateOperand
like
in interface PredicateOperand
public Predicate like(String pattern)
PredicateOperand
like
in interface PredicateOperand
public Predicate like(String pattern, PredicateOperand escapeChar)
PredicateOperand
like
in interface PredicateOperand
public Predicate like(String pattern, char escChar)
PredicateOperand
like
in interface PredicateOperand
public Predicate notEqual(PredicateOperand arg)
PredicateOperand
notEqual
in interface PredicateOperand
arg
- -
PredicateOperand instance or parameter
public Predicate notEqual(Class cls)
PredicateOperand
notEqual
in interface PredicateOperand
cls
- -
entity class
public Predicate notEqual(Number arg)
PredicateOperand
notEqual
in interface PredicateOperand
arg
- -
numberic value
public Predicate notEqual(String arg)
PredicateOperand
notEqual
in interface PredicateOperand
arg
- -
string value
public Predicate notEqual(boolean arg)
PredicateOperand
notEqual
in interface PredicateOperand
arg
- -
boolean value
public Predicate notEqual(Date arg)
PredicateOperand
notEqual
in interface PredicateOperand
arg
- -
date
public Predicate notEqual(Calendar arg)
PredicateOperand
notEqual
in interface PredicateOperand
arg
- -
calendar
public Predicate notEqual(Enum<?> e)
PredicateOperand
notEqual
in interface PredicateOperand
e
- -
enum
public String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
getAliasHint
in interface Visitable
public String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asExpression
in interface Visitable
public String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asProjection
in interface Visitable
public String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asJoinable
in interface Visitable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |