| 
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of the selection item.public interface Subquery<T>
The Subquery interface defines functionality that is 
 specific to subqueries.
 A subquery has an expression as its selection item.
| Method Summary | ||
|---|---|---|
 | 
correlate(CollectionJoin<X,Y> parentCollection)
Create a subquery collection join object correlated to a collection join object of the enclosing query.  | 
|
 | 
correlate(Join<X,Y> parentJoin)
Create a subquery join object correlated to a join object of the enclosing query.  | 
|
 | 
correlate(ListJoin<X,Y> parentList)
Create a subquery list join object correlated to a list join object of the enclosing query.  | 
|
 | 
correlate(MapJoin<X,K,V> parentMap)
Create a subquery map join object correlated to a map join object of the enclosing query.  | 
|
 | 
correlate(Root<Y> parentRoot)
Create a subquery root correlated to a root of the enclosing query.  | 
|
 | 
correlate(SetJoin<X,Y> parentSet)
Create a subquery set join object correlated to a set join object of the enclosing query.  | 
|
 Subquery<T> | 
distinct(boolean distinct)
Specify whether duplicate query results will be eliminated.  | 
|
 java.util.Set<Join<?,?>> | 
getCorrelatedJoins()
Return the correlated joins of the subquery.  | 
|
 AbstractQuery<?> | 
getParent()
Return the query of which this is a subquery.  | 
|
 Expression<T> | 
getSelection()
Return the selection expression.  | 
|
 Subquery<T> | 
groupBy(Expression<?>... grouping)
Specify the expressions that are used to form groups over the subquery results.  | 
|
 Subquery<T> | 
groupBy(java.util.List<Expression<?>> grouping)
Specify the expressions that are used to form groups over the subquery results.  | 
|
 Subquery<T> | 
having(Expression<java.lang.Boolean> restriction)
Specify a restriction over the groups of the subquery.  | 
|
 Subquery<T> | 
having(Predicate... restrictions)
Specify restrictions over the groups of the subquery according the conjunction of the specified restriction predicates.  | 
|
 Subquery<T> | 
select(Expression<T> expression)
Specify the item that is to be returned as the subquery result.  | 
|
 Subquery<T> | 
where(Expression<java.lang.Boolean> restriction)
Modify the subquery to restrict the result according to the specified boolean expression.  | 
|
 Subquery<T> | 
where(Predicate... restrictions)
Modify the subquery to restrict the result according to the conjunction of the specified restriction predicates.  | 
|
| Methods inherited from interface javax.persistence.criteria.AbstractQuery | 
|---|
from, from, getGroupList, getGroupRestriction, getRestriction, getResultType, getRoots, isDistinct, subquery | 
| Methods inherited from interface javax.persistence.criteria.Expression | 
|---|
as, in, in, in, in, isNotNull, isNull | 
| Methods inherited from interface javax.persistence.criteria.Selection | 
|---|
alias, getCompoundSelectionItems, isCompoundSelection | 
| Methods inherited from interface javax.persistence.TupleElement | 
|---|
getAlias, getJavaType | 
| Method Detail | 
|---|
Subquery<T> select(Expression<T> expression)
expression - expression specifying the item that
        is to be returned as the subquery result
Subquery<T> where(Expression<java.lang.Boolean> restriction)
AbstractQuery method.
where in interface AbstractQuery<T>restriction - a simple or compound boolean expression
Subquery<T> where(Predicate... restrictions)
AbstractQuery method.
where in interface AbstractQuery<T>restrictions - zero or more restriction predicates
Subquery<T> groupBy(Expression<?>... grouping)
AbstractQuery method.
groupBy in interface AbstractQuery<T>grouping - zero or more grouping expressions
Subquery<T> groupBy(java.util.List<Expression<?>> grouping)
AbstractQuery method.
groupBy in interface AbstractQuery<T>grouping - list of zero or more grouping expressions
Subquery<T> having(Expression<java.lang.Boolean> restriction)
AbstractQuery method.
having in interface AbstractQuery<T>restriction - a simple or compound boolean expression
Subquery<T> having(Predicate... restrictions)
AbstractQuery method.
having in interface AbstractQuery<T>restrictions - zero or more restriction predicates
Subquery<T> distinct(boolean distinct)
AbstractQuery method.
distinct in interface AbstractQuery<T>distinct - boolean value specifying whether duplicate
        results must be eliminated from the subquery result or
        whether they must be retained
<Y> Root<Y> correlate(Root<Y> parentRoot)
parentRoot - a root of the containing query
<X,Y> Join<X,Y> correlate(Join<X,Y> parentJoin)
parentJoin - join object of the containing query
<X,Y> CollectionJoin<X,Y> correlate(CollectionJoin<X,Y> parentCollection)
parentCollection - join object of the containing query
<X,Y> SetJoin<X,Y> correlate(SetJoin<X,Y> parentSet)
parentSet - join object of the containing query
<X,Y> ListJoin<X,Y> correlate(ListJoin<X,Y> parentList)
parentList - join object of the containing query
<X,K,V> MapJoin<X,K,V> correlate(MapJoin<X,K,V> parentMap)
parentMap - join object of the containing query
AbstractQuery<?> getParent()
Expression<T> getSelection()
getSelection in interface AbstractQuery<T>java.util.Set<Join<?,?>> getCorrelatedJoins()
  | 
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||