public class DefaultQueryEngine extends java.lang.Object implements QueryEngine
QueryEngine
interfaceConstructor and Description |
---|
DefaultQueryEngine(DefaultEvaluatorFactory evaluatorFactory) |
Modifier and Type | Method and Description |
---|---|
long |
count(QueryMetadata metadata,
java.util.Map<Expression<?>,java.lang.Iterable<?>> iterables)
Evaluate the given query and return the count of matched rows
|
boolean |
exists(QueryMetadata metadata,
java.util.Map<Expression<?>,java.lang.Iterable<?>> iterables) |
static QueryEngine |
getDefault() |
<T> java.util.List<T> |
list(QueryMetadata metadata,
java.util.Map<Expression<?>,java.lang.Iterable<?>> iterables,
Expression<T> projection)
Evaluate the given query and return the projection as a list
|
public DefaultQueryEngine(DefaultEvaluatorFactory evaluatorFactory)
public static QueryEngine getDefault()
public long count(QueryMetadata metadata, java.util.Map<Expression<?>,java.lang.Iterable<?>> iterables)
QueryEngine
count
in interface QueryEngine
public boolean exists(QueryMetadata metadata, java.util.Map<Expression<?>,java.lang.Iterable<?>> iterables)
exists
in interface QueryEngine
public <T> java.util.List<T> list(QueryMetadata metadata, java.util.Map<Expression<?>,java.lang.Iterable<?>> iterables, Expression<T> projection)
QueryEngine
list
in interface QueryEngine
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.