public class DefaultQueryEngine extends Object implements QueryEngine
QueryEngine
interfaceConstructor and Description |
---|
DefaultQueryEngine(DefaultEvaluatorFactory evaluatorFactory) |
Modifier and Type | Method and Description |
---|---|
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) |
static QueryEngine |
getDefault() |
<T> List<T> |
list(QueryMetadata metadata,
Map<Expression<?>,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, Map<Expression<?>,Iterable<?>> iterables)
QueryEngine
count
in interface QueryEngine
public boolean exists(QueryMetadata metadata, Map<Expression<?>,Iterable<?>> iterables)
exists
in interface QueryEngine
public <T> List<T> list(QueryMetadata metadata, Map<Expression<?>,Iterable<?>> iterables, Expression<T> projection)
QueryEngine
list
in interface QueryEngine
Copyright © 2007–2015 Mysema Ltd. All rights reserved.