com.mysema.query.collections
Class DefaultQueryEngine

java.lang.Object
  extended by com.mysema.query.collections.DefaultQueryEngine
All Implemented Interfaces:
QueryEngine

public class DefaultQueryEngine
extends Object
implements QueryEngine

Default implementation of the QueryEngine interface

Author:
tiwe

Field Summary
 
Fields inherited from interface com.mysema.query.collections.QueryEngine
DEFAULT
 
Constructor Summary
DefaultQueryEngine(DefaultEvaluatorFactory evaluatorFactory)
           
 
Method Summary
 long count(QueryMetadata metadata, Map<Expr<?>,Iterable<?>> iterables)
          Evaluate the given query and return the count of matched rows
<T> List<T>
list(QueryMetadata metadata, Map<Expr<?>,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
 

Constructor Detail

DefaultQueryEngine

public DefaultQueryEngine(DefaultEvaluatorFactory evaluatorFactory)
Method Detail

count

public long count(QueryMetadata metadata,
                  Map<Expr<?>,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> List<T> list(QueryMetadata metadata,
                        Map<Expr<?>,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.