|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mysema.query.support.QueryBase<Q> com.mysema.query.support.ProjectableQuery<Q> com.mysema.query.collections.AbstractColQuery<Q>
public abstract class AbstractColQuery<Q extends AbstractColQuery<Q>>
AbstractColQuery provides a base class for Collection query implementations. Extend it like this
public class MyType extends AbstractColQuery<MyType>{ ... }
ColQuery
Field Summary |
---|
Fields inherited from class com.mysema.query.support.QueryBase |
---|
queryMixin |
Constructor Summary | |
---|---|
AbstractColQuery(QueryMetadata metadata,
QueryEngine queryEngine)
|
Method Summary | ||
---|---|---|
|
bind(Path<A> entity,
Iterable<? extends A> col)
|
|
long |
count()
return the amount of matched rows |
|
boolean |
exists()
|
|
|
from(Path<A> entity,
Iterable<? extends A> col)
|
|
abstract QueryMetadata |
getMetadata()
|
|
protected QueryEngine |
getQueryEngine()
|
|
|
innerJoin(CollectionExpression<?,P> target,
Path<P> alias)
|
|
|
innerJoin(MapExpression<?,P> target,
Path<P> alias)
|
|
com.mysema.commons.lang.CloseableIterator<Object[]> |
iterate(Expression<?>[] args)
iterate over the results for the given projection |
|
|
iterate(Expression<RT> projection)
iterate over the results for the given projection |
|
List<Object[]> |
list(Expression<?>[] args)
list the results for the given projection An empty list is returned for no results. |
|
|
list(Expression<RT> projection)
list the results for the given projection An empty list is returned for no results. |
|
|
listResults(Expression<RT> projection)
list the results for the given projection |
|
Object[] |
uniqueResult(Expression<?>[] args)
return a unique result for the given projection or null if no result is found |
|
|
uniqueResult(Expression<RT> expr)
return a unique result for the given projection or null if no result is found |
Methods inherited from class com.mysema.query.support.ProjectableQuery |
---|
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, notExists, singleResult, singleResult, singleResult, transform, uniqueResult, uniqueResult |
Methods inherited from class com.mysema.query.support.QueryBase |
---|
distinct, equals, groupBy, hashCode, having, limit, offset, orderBy, restrict, set, toString, where |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractColQuery(QueryMetadata metadata, QueryEngine queryEngine)
Method Detail |
---|
public long count()
Projectable
public boolean exists()
public <A> Q from(Path<A> entity, Iterable<? extends A> col)
public <A> Q bind(Path<A> entity, Iterable<? extends A> col)
public abstract QueryMetadata getMetadata()
protected QueryEngine getQueryEngine()
public <P> Q innerJoin(CollectionExpression<?,P> target, Path<P> alias)
public <P> Q innerJoin(MapExpression<?,P> target, Path<P> alias)
public com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expression<?>[] args)
Projectable
public <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expression<RT> projection)
Projectable
RT
- generic type of the Iterator
public List<Object[]> list(Expression<?>[] args)
Projectable
list
in interface Projectable
list
in class ProjectableQuery<Q extends AbstractColQuery<Q>>
public <RT> List<RT> list(Expression<RT> projection)
Projectable
list
in interface Projectable
list
in class ProjectableQuery<Q extends AbstractColQuery<Q>>
RT
- generic type of the List
public <RT> SearchResults<RT> listResults(Expression<RT> projection)
Projectable
public Object[] uniqueResult(Expression<?>[] args)
Projectable
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
public <RT> RT uniqueResult(Expression<RT> expr)
Projectable
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
RT
- return type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |