com.mysema.query.collections.impl
Class AbstractColQuery<SubType extends AbstractColQuery<SubType>>
java.lang.Object
com.mysema.query.QueryBase<SubType>
com.mysema.query.support.ProjectableQuery<SubType>
com.mysema.query.collections.impl.AbstractColQuery<SubType>
- All Implemented Interfaces:
- Projectable
- Direct Known Subclasses:
- ColQueryImpl
public abstract class AbstractColQuery<SubType extends AbstractColQuery<SubType>>
- extends ProjectableQuery<SubType>
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
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 |
AbstractColQuery
public AbstractColQuery(QueryMetadata metadata,
EvaluatorFactory evaluatorFactory)
count
public long count()
- Description copied from interface:
Projectable
- return the amount of matched rows
from
public <A> SubType from(Path<A> entity,
Iterable<? extends A> col)
handleFromWhereMultiSource
protected Iterator<?> handleFromWhereMultiSource(List<Expr<?>> sources)
throws Exception
- Throws:
Exception
handleFromWhereSingleSource
protected Iterator<?> handleFromWhereSingleSource(List<Expr<?>> sources)
throws Exception
- Throws:
Exception
handleOrderBy
protected Iterator<?> handleOrderBy(List<Expr<?>> sources,
Iterator<?> it)
throws Exception
- Throws:
Exception
handleSelect
protected <RT> Iterator<RT> handleSelect(Iterator<?> it,
List<Expr<?>> sources,
Expr<RT> projection)
throws Exception
- Throws:
Exception
iterate
public Iterator<Object[]> iterate(Expr<?>[] args)
- Description copied from interface:
Projectable
- iterate over the results for the given projection
- Returns:
iterate
public <RT> Iterator<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.