public class KeyValuePartTreeQuery extends Object implements org.springframework.data.repository.query.RepositoryQuery
RepositoryQuery implementation deriving queries from PartTree using a predefined
AbstractQueryCreator.| Modifier and Type | Class and Description |
|---|---|
static interface |
KeyValuePartTreeQuery.QueryCreatorFactory<T extends org.springframework.data.repository.query.parser.AbstractQueryCreator>
Factory class for obtaining
AbstractQueryCreator instances for a given PartTree and
ParameterAccessor. |
| Constructor and Description |
|---|
KeyValuePartTreeQuery(org.springframework.data.repository.query.QueryMethod queryMethod,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider,
KeyValueOperations keyValueOperations,
Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator)
Creates a new
KeyValuePartTreeQuery for the given QueryMethod, EvaluationContextProvider,
KeyValueOperations and query creator type. |
KeyValuePartTreeQuery(org.springframework.data.repository.query.QueryMethod queryMethod,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider,
KeyValueOperations keyValueOperations,
KeyValuePartTreeQuery.QueryCreatorFactory queryCreatorFactory)
Creates a new
KeyValuePartTreeQuery for the given QueryMethod, EvaluationContextProvider,
KeyValueOperations using the given KeyValuePartTreeQuery.QueryCreatorFactory producing the AbstractQueryCreator
in charge of altering the query. |
| Modifier and Type | Method and Description |
|---|---|
KeyValueQuery<?> |
createQuery(org.springframework.data.repository.query.ParameterAccessor accessor)
Create a
KeyValueQuery given ParameterAccessor. |
protected Object |
doExecute(Object[] parameters,
KeyValueQuery<?> query) |
Object |
execute(Object[] parameters) |
org.springframework.data.repository.query.QueryMethod |
getQueryMethod() |
protected KeyValueQuery<?> |
prepareQuery(KeyValueQuery<?> instance,
Object[] parameters) |
protected KeyValueQuery<?> |
prepareQuery(Object[] parameters) |
public KeyValuePartTreeQuery(org.springframework.data.repository.query.QueryMethod queryMethod,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider,
KeyValueOperations keyValueOperations,
Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator)
KeyValuePartTreeQuery for the given QueryMethod, EvaluationContextProvider,
KeyValueOperations and query creator type.queryMethod - must not be null.evaluationContextProvider - must not be null.keyValueOperations - must not be null.queryCreator - must not be null.public KeyValuePartTreeQuery(org.springframework.data.repository.query.QueryMethod queryMethod,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider,
KeyValueOperations keyValueOperations,
KeyValuePartTreeQuery.QueryCreatorFactory queryCreatorFactory)
KeyValuePartTreeQuery for the given QueryMethod, EvaluationContextProvider,
KeyValueOperations using the given KeyValuePartTreeQuery.QueryCreatorFactory producing the AbstractQueryCreator
in charge of altering the query.queryMethod - must not be null.evaluationContextProvider - must not be null.keyValueOperations - must not be null.queryCreatorFactory - must not be null.public Object execute(Object[] parameters)
execute in interface org.springframework.data.repository.query.RepositoryQuery@Nullable protected Object doExecute(Object[] parameters, KeyValueQuery<?> query)
parameters - query - protected KeyValueQuery<?> prepareQuery(Object[] parameters)
protected KeyValueQuery<?> prepareQuery(KeyValueQuery<?> instance, Object[] parameters)
public KeyValueQuery<?> createQuery(org.springframework.data.repository.query.ParameterAccessor accessor)
KeyValueQuery given ParameterAccessor.accessor - must not be null.KeyValueQuery.public org.springframework.data.repository.query.QueryMethod getQueryMethod()
getQueryMethod in interface org.springframework.data.repository.query.RepositoryQueryCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.