com.mysema.query.collections
Class DefaultQueryEngine
java.lang.Object
com.mysema.query.collections.DefaultQueryEngine
- All Implemented Interfaces:
- QueryEngine
public class DefaultQueryEngine
- extends java.lang.Object
- implements QueryEngine
Default implementation of the QueryEngine interface
- Author:
- tiwe
Method Summary |
long |
count(QueryMetadata metadata,
java.util.Map<Expr<?>,java.lang.Iterable<?>> iterables)
Evaluate the given query and return the count of matched rows |
|
list(QueryMetadata metadata,
java.util.Map<Expr<?>,java.lang.Iterable<?>> iterables,
Expr<T> projection)
Evaluate the given query and return the projection as a list |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultQueryEngine
public DefaultQueryEngine(DefaultEvaluatorFactory evaluatorFactory)
count
public long count(QueryMetadata metadata,
java.util.Map<Expr<?>,java.lang.Iterable<?>> iterables)
- Description copied from interface:
QueryEngine
- Evaluate the given query and return the count of matched rows
- Specified by:
count
in interface QueryEngine
- Returns:
list
public <T> java.util.List<T> list(QueryMetadata metadata,
java.util.Map<Expr<?>,java.lang.Iterable<?>> iterables,
Expr<T> projection)
- Description copied from interface:
QueryEngine
- Evaluate the given query and return the projection as a list
- Specified by:
list
in interface QueryEngine
- Returns:
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.