mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-15 00:22:11 +00:00
DATAES-616 - Fix implementations of ParameterAccessor interface.
Original PR: #297
This commit is contained in:
parent
63172b8a69
commit
085dd9ad95
@ -25,6 +25,7 @@ import org.springframework.lang.Nullable;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Christoph Strobl
|
* @author Christoph Strobl
|
||||||
|
* @author Peter-Josef Meisch
|
||||||
* @since 3.2
|
* @since 3.2
|
||||||
*/
|
*/
|
||||||
public class ConvertingParameterAccessor implements ElasticsearchParameterAccessor {
|
public class ConvertingParameterAccessor implements ElasticsearchParameterAccessor {
|
||||||
@ -58,6 +59,11 @@ public class ConvertingParameterAccessor implements ElasticsearchParameterAccess
|
|||||||
return delegate.getDynamicProjection();
|
return delegate.getDynamicProjection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Class<?> findDynamicProjection() {
|
||||||
|
return delegate.findDynamicProjection();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object getBindableValue(int index) {
|
public Object getBindableValue(int index) {
|
||||||
return getConvertedValue(delegate.getBindableValue(index));
|
return getConvertedValue(delegate.getBindableValue(index));
|
||||||
|
@ -27,7 +27,7 @@ import org.springframework.data.repository.query.ParameterAccessor;
|
|||||||
* Simple {@link ParameterAccessor} that returns the given parameters unfiltered.
|
* Simple {@link ParameterAccessor} that returns the given parameters unfiltered.
|
||||||
*
|
*
|
||||||
* @author Christoph Strobl
|
* @author Christoph Strobl
|
||||||
* @currentRead Fool's Fate - Robin Hobb
|
* @author Peter-Josef Meisch
|
||||||
*/
|
*/
|
||||||
class StubParameterAccessor implements ElasticsearchParameterAccessor {
|
class StubParameterAccessor implements ElasticsearchParameterAccessor {
|
||||||
|
|
||||||
@ -95,4 +95,9 @@ class StubParameterAccessor implements ElasticsearchParameterAccessor {
|
|||||||
public Optional<Class<?>> getDynamicProjection() {
|
public Optional<Class<?>> getDynamicProjection() {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Class<?> findDynamicProjection() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user