public class QueryFactory<Result,Parameters>
extends java.lang.Object
Constructor and Description |
---|
QueryFactory() |
Modifier and Type | Method and Description |
---|---|
Query<Result> |
createQuery(Parameters parameters) |
Query<Result> |
createUniqueResultsQuery(Parameters parameters) |
Query<Result> |
createUniqueResultsQuery(Parameters parameters,
<any> hashingStrategy) |
<T> Query<Result> |
createUniqueResultsQuery(Parameters parameters,
<any> hashingStrategy,
Function<? super Result,? extends T> mapper) |
protected java.util.List<QueryExecutor<Result,Parameters>> |
getExecutors() |
boolean |
hasAnyExecutors() |
void |
registerExecutor(QueryExecutor<Result,Parameters> executor) |
void |
unregisterExecutor(QueryExecutor<Result,Parameters> executor) |
public void registerExecutor(QueryExecutor<Result,Parameters> executor)
public void unregisterExecutor(QueryExecutor<Result,Parameters> executor)
public final Query<Result> createQuery(Parameters parameters)
protected java.util.List<QueryExecutor<Result,Parameters>> getExecutors()
public boolean hasAnyExecutors()
public final Query<Result> createUniqueResultsQuery(Parameters parameters)
parameters
- of the searchpublic final Query<Result> createUniqueResultsQuery(Parameters parameters, <any> hashingStrategy)
parameters
- of the searchhashingStrategy
- strategy to factor resultspublic final <T> Query<Result> createUniqueResultsQuery(Parameters parameters, <any> hashingStrategy, Function<? super Result,? extends T> mapper)
parameters
- of the searchhashingStrategy
- strategy to factor resultsmapper
- function that maps results to their mapping counterparts.