public abstract class AbstractCollQuery<Q extends AbstractCollQuery<Q>> extends ProjectableQuery<Q> implements SimpleQuery<Q>
public class MyType extends AbstractColQuery<MyType> {
   ...
 }
 CollQueryMDC_PARAMETERS, MDC_QUERY, queryMixin| Constructor and Description | 
|---|
AbstractCollQuery(QueryMetadata metadata,
                 QueryEngine queryEngine)  | 
| Modifier and Type | Method and Description | 
|---|---|
<A> Q | 
bind(Path<A> entity,
    Iterable<? extends A> col)
Bind the given collection to an already existing query source 
 | 
long | 
count()
return the amount of matched rows 
 | 
boolean | 
exists()  | 
<A> Q | 
from(Path<A> entity,
    Iterable<? extends A> col)
Add a query source 
 | 
abstract QueryMetadata | 
getMetadata()  | 
protected QueryEngine | 
getQueryEngine()  | 
Q | 
groupBy(Expression<?>... o)
Add grouping/aggregation expressions 
 | 
Q | 
groupBy(Expression<?> e)
Add a single grouping expression 
 | 
Q | 
having(Predicate... e)
Add filters for aggregation 
 | 
Q | 
having(Predicate e)
Add a single filter for aggregation 
 | 
<P> Q | 
innerJoin(MapExpression<?,P> target,
         Path<P> alias)
Define an inner join from the Map typed path to the alias 
 | 
<P> Q | 
innerJoin(Path<? extends Collection<P>> target,
         Path<P> alias)
Define an inner join from the Collection typed path to the alias 
 | 
com.mysema.commons.lang.CloseableIterator<Tuple> | 
iterate(Expression<?>... args)
iterate over the results for the given projection 
 | 
<RT> com.mysema.commons.lang.CloseableIterator<RT> | 
iterate(Expression<RT> projection)
iterate over the results for the given projection 
 | 
<P> Q | 
leftJoin(MapExpression<?,P> target,
        Path<P> alias)
Define a left join from the Map typed path to the alias 
 | 
<P> Q | 
leftJoin(Path<? extends Collection<P>> target,
        Path<P> alias)
Define a left join from the Collection typed path to the alias 
 | 
List<Tuple> | 
list(Expression<?>... args)
list the results for the given projection
 
 An empty list is returned for no results. 
 | 
<RT> List<RT> | 
list(Expression<RT> projection)
list the results for the given projection
 
 An empty list is returned for no results. 
 | 
SearchResults<Tuple> | 
listResults(Expression<?>... args)
list the results for the given projection 
 | 
<RT> SearchResults<RT> | 
listResults(Expression<RT> projection)
list the results for the given projection 
 | 
Tuple | 
uniqueResult(Expression<?>... args)
return a unique result for the given projection or null if no result is found 
 | 
<RT> RT | 
uniqueResult(Expression<RT> expr)
return a unique result for the given projection or null if no result is found 
 | 
map, notExists, singleResult, singleResult, transform, uniqueResultdistinct, equals, hashCode, limit, offset, orderBy, orderBy, restrict, set, toString, where, whereclone, finalize, getClass, notify, notifyAll, wait, wait, waitdistinct, limit, offset, orderBy, restrict, setwherepublic AbstractCollQuery(QueryMetadata metadata, QueryEngine queryEngine)
public long count()
Projectablecount in interface Projectablepublic boolean exists()
exists in interface Projectablepublic <A> Q from(Path<A> entity, Iterable<? extends A> col)
A - entity - Path for the sourcecol - content of the sourcepublic <A> Q bind(Path<A> entity, Iterable<? extends A> col)
A - entity - Path for the sourcecol - content of the sourcepublic Q groupBy(Expression<?> e)
QueryBasegroupBy in class QueryBase<Q extends AbstractCollQuery<Q>>public Q groupBy(Expression<?>... o)
QueryBasegroupBy in class QueryBase<Q extends AbstractCollQuery<Q>>public Q having(Predicate e)
QueryBasehaving in class QueryBase<Q extends AbstractCollQuery<Q>>public Q having(Predicate... e)
QueryBasehaving in class QueryBase<Q extends AbstractCollQuery<Q>>public abstract QueryMetadata getMetadata()
protected QueryEngine getQueryEngine()
public <P> Q innerJoin(Path<? extends Collection<P>> target, Path<P> alias)
P - target - alias - public <P> Q innerJoin(MapExpression<?,P> target, Path<P> alias)
P - target - alias - public <P> Q leftJoin(Path<? extends Collection<P>> target, Path<P> alias)
P - target - alias - public <P> Q leftJoin(MapExpression<?,P> target, Path<P> alias)
P - target - alias - public com.mysema.commons.lang.CloseableIterator<Tuple> iterate(Expression<?>... args)
Projectableiterate in interface Projectablepublic <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expression<RT> projection)
Projectableiterate in interface ProjectableRT - generic type of the Iteratorpublic List<Tuple> list(Expression<?>... args)
Projectablelist in interface Projectablelist in class ProjectableQuery<Q extends AbstractCollQuery<Q>>public <RT> List<RT> list(Expression<RT> projection)
Projectablelist in interface Projectablelist in class ProjectableQuery<Q extends AbstractCollQuery<Q>>RT - generic type of the Listpublic SearchResults<Tuple> listResults(Expression<?>... args)
ProjectablelistResults in interface Projectablepublic <RT> SearchResults<RT> listResults(Expression<RT> projection)
ProjectablelistResults in interface Projectablepublic Tuple uniqueResult(Expression<?>... args)
ProjectableThere is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
uniqueResult in interface Projectablepublic <RT> RT uniqueResult(Expression<RT> expr)
ProjectableThere is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
uniqueResult in interface ProjectableRT - return typeCopyright © 2007–2015 Mysema Ltd. All rights reserved.