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
static QueryEngine DEFAULT
           
 
Constructor Summary
DefaultQueryEngine(DefaultEvaluatorFactory evaluatorFactory)
           
 
Method Summary
 long count(QueryMetadata metadata, Map<Expression<?>,Iterable<?>> iterables)
          Evaluate the given query and return the count of matched rows
 boolean exists(QueryMetadata metadata, Map<Expression<?>,Iterable<?>> iterables)
           
<T> List<T>
list(QueryMetadata metadata, Map<Expression<?>,Iterable<?>> iterables, Expression<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
 

Field Detail

DEFAULT

public static final QueryEngine DEFAULT
Constructor Detail

DefaultQueryEngine

public DefaultQueryEngine(DefaultEvaluatorFactory evaluatorFactory)
Method Detail

count

public long count(QueryMetadata metadata,
                  Map<Expression<?>,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:

exists

public boolean exists(QueryMetadata metadata,
                      Map<Expression<?>,Iterable<?>> iterables)
Specified by:
exists in interface QueryEngine
Returns:

list

public <T> List<T> list(QueryMetadata metadata,
                        Map<Expression<?>,Iterable<?>> iterables,
                        Expression<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-2012 Mysema Ltd. All Rights Reserved.