|
EclipseLink 2.0.0_ 2.0.0.v20090626-r4569 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of the returned selection item.public interface Subquery<T>
The interface Subquery defines functionality that is specific to subqueries. A subquery has an expression as its selection item.
| Method Summary | ||
|---|---|---|
|
correlate(CollectionJoin<X,Y> parentCollection)
Correlates a join to a Collection-valued association or element collection in the enclosing query to a join object of the subquery and returns the subquery join object. |
|
|
correlate(Join<X,Y> parentJoin)
Correlates a join object of the enclosing query to a join object of the subquery and returns the subquery join object. |
|
|
correlate(ListJoin<X,Y> parentList)
Correlates a join to a List-valued association or element collection in the enclosing query to a join object of the subquery and returns the subquery join object. |
|
|
correlate(MapJoin<X,K,V> parentMap)
Correlates a join to a Map-valued association or element collection in the enclosing query to a join object of the subquery and returns the subquery join object. |
|
|
correlate(Root<Y> parentRoot)
Correlates a root of the enclosing query to a root of the subquery and returns the subquery root. |
|
|
correlate(SetJoin<X,Y> parentSet)
Correlates a join to a Set-valued association or element collection in the enclosing query to a join object of the subquery and returns the subquery join object. |
|
Subquery<T> |
distinct(boolean distinct)
Specify whether duplicate query results will be eliminated. |
|
java.util.Set<Join<?,?>> |
getJoins()
Return the joins that have been made from 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> |
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 in the query 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, 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 |
|---|
setAlias |
| Methods inherited from interface javax.persistence.TupleElement |
|---|
getAlias, getJavaType |
| Method Detail |
|---|
AbstractQuery<?> getParent()
Subquery<T> select(Expression<T> expression)
expression - expression specifying the item that is returned in the query
result
Subquery<T> where(Expression<java.lang.Boolean> restriction)
where in interface AbstractQuery<T>restriction - a simple or compound boolean expression
Subquery<T> where(Predicate... restrictions)
where in interface AbstractQuery<T>restrictions - zero or more restriction predicates
Subquery<T> groupBy(Expression<?>... grouping)
groupBy in interface AbstractQuery<T>grouping - zero or more grouping expressions
Subquery<T> having(Expression<java.lang.Boolean> restriction)
having in interface AbstractQuery<T>restriction - a simple or compound boolean expression
Subquery<T> having(Predicate... restrictions)
having in interface AbstractQuery<T>restrictions - zero or more restriction predicates
Subquery<T> distinct(boolean distinct)
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
Expression<T> getSelection()
getSelection in interface AbstractQuery<T><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 target of the containing query
<X,Y> CollectionJoin<X,Y> correlate(CollectionJoin<X,Y> parentCollection)
parentCollection - join target of the containing query
<X,Y> SetJoin<X,Y> correlate(SetJoin<X,Y> parentSet)
parentSet - join target of the containing query
<X,Y> ListJoin<X,Y> correlate(ListJoin<X,Y> parentList)
parentList - join target of the containing query
<X,K,V> MapJoin<X,K,V> correlate(MapJoin<X,K,V> parentMap)
parentMap - join target of the containing query
java.util.Set<Join<?,?>> getJoins()
|
EclipseLink 2.0.0_ 2.0.0.v20090626-r4569 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||