public class QueryEngine<S extends Storable> extends StandardQueryFactory<S> implements QueryExecutorFactory<S>
Constructor and Description |
---|
QueryEngine(java.lang.Class<S> type,
RepositoryAccess access) |
Modifier and Type | Method and Description |
---|---|
protected StandardQuery<S> |
createQuery(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints)
Implement this method to return query implementations.
|
QueryExecutor<S> |
executor(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints)
Returns an executor that handles the given query specification.
|
clearExecutors, getStorableType, query, query, query, query, query, query, query, resetExecutors, setExecutors
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStorableType
public QueryEngine(java.lang.Class<S> type, RepositoryAccess access)
public QueryExecutor<S> executor(Filter<S> filter, OrderingList<S> ordering, QueryHints hints) throws RepositoryException
QueryExecutorFactory
executor
in interface QueryExecutorFactory<S extends Storable>
filter
- optional filterordering
- optional order-by propertieshints
- optional query hintsRepositoryException
protected StandardQuery<S> createQuery(Filter<S> filter, FilterValues<S> values, OrderingList<S> ordering, QueryHints hints)
StandardQueryFactory
createQuery
in class StandardQueryFactory<S extends Storable>
filter
- optional filter object, defaults to open filter if nullvalues
- optional values object, defaults to filter initial valuesordering
- optional order-by propertieshints
- optional hintsCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.