Search in sources :

Example 1 with ParameterAccessor

use of org.springframework.data.repository.query.ParameterAccessor in project spring-data-keyvalue by spring-projects.

the class KeyValuePartTreeQuery method execute.

/*
	 * (non-Javadoc)
	 * @see org.springframework.data.repository.query.RepositoryQuery#execute(java.lang.Object[])
	 */
@Override
public Object execute(Object[] parameters) {
    ParameterAccessor accessor = new ParametersParameterAccessor(getQueryMethod().getParameters(), parameters);
    KeyValueQuery<?> query = prepareQuery(parameters);
    ResultProcessor processor = queryMethod.getResultProcessor().withDynamicProjection(accessor);
    return processor.processResult(doExecute(parameters, query));
}
Also used : ParametersParameterAccessor(org.springframework.data.repository.query.ParametersParameterAccessor) ParametersParameterAccessor(org.springframework.data.repository.query.ParametersParameterAccessor) ParameterAccessor(org.springframework.data.repository.query.ParameterAccessor) ResultProcessor(org.springframework.data.repository.query.ResultProcessor)

Aggregations

ParameterAccessor (org.springframework.data.repository.query.ParameterAccessor)1 ParametersParameterAccessor (org.springframework.data.repository.query.ParametersParameterAccessor)1 ResultProcessor (org.springframework.data.repository.query.ResultProcessor)1