com.mysema.query.collections
Class AbstractColQuery<Q extends AbstractColQuery<Q>>

java.lang.Object
  extended by com.mysema.query.support.QueryBase<Q>
      extended by com.mysema.query.support.ProjectableQuery<Q>
          extended by com.mysema.query.collections.AbstractColQuery<Q>
All Implemented Interfaces:
Projectable
Direct Known Subclasses:
ColQueryImpl

public abstract class AbstractColQuery<Q extends AbstractColQuery<Q>>
extends ProjectableQuery<Q>

AbstractColQuery provides a base class for Collection query implementations. Extend it like this

 public class MyType extends AbstractColQuery<MyType>{
   ...
 }
 

Version:
$Id$
Author:
tiwe
See Also:
ColQuery

Field Summary
 
Fields inherited from class com.mysema.query.support.QueryBase
queryMixin
 
Constructor Summary
AbstractColQuery(QueryMetadata metadata, ExprEvaluatorFactory evaluatorFactory)
           
 
Method Summary
 long count()
          return the amount of matched rows
<A> Q
from(Path<A> entity, Iterable<? extends A> col)
           
protected  ExprEvaluatorFactory getEvaluatorFactory()
           
 com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expr<?>[] args)
          iterate over the results for the given projection
<RT> com.mysema.commons.lang.CloseableIterator<RT>
iterate(Expr<RT> projection)
          iterate over the results for the given projection
<RT> SearchResults<RT>
listResults(Expr<RT> projection)
          list the results for the given projection
 
Methods inherited from class com.mysema.query.support.ProjectableQuery
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, list, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, uniqueResult, uniqueResult, uniqueResult
 
Methods inherited from class com.mysema.query.support.QueryBase
groupBy, having, limit, offset, orderBy, restrict, toString, where
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractColQuery

public AbstractColQuery(QueryMetadata metadata,
                        ExprEvaluatorFactory evaluatorFactory)
Method Detail

count

public long count()
Description copied from interface: Projectable
return the amount of matched rows


from

public <A> Q from(Path<A> entity,
                  Iterable<? extends A> col)

getEvaluatorFactory

protected ExprEvaluatorFactory getEvaluatorFactory()

iterate

public com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expr<?>[] args)
Description copied from interface: Projectable
iterate over the results for the given projection

Returns:

iterate

public <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expr<RT> projection)
Description copied from interface: Projectable
iterate over the results for the given projection

Type Parameters:
RT - generic type of the Iteratpr
Returns:
an Iterator over the projection

listResults

public <RT> SearchResults<RT> listResults(Expr<RT> projection)
Description copied from interface: Projectable
list the results for the given projection

Returns:


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.