public interface ParameterAccessor extends Iterable<Object>
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
findDynamicProjection()
Returns the dynamic projection type to be used when executing the query or null if none is defined.
|
Object |
getBindableValue(int index)
Returns the bindable value with the given index.
|
Optional<Class<?>> |
getDynamicProjection()
Deprecated.
use
findDynamicProjection() instead. |
Pageable |
getPageable()
Returns the
Pageable of the parameters, if available. |
Sort |
getSort()
Returns the sort instance to be used for query creation.
|
boolean |
hasBindableNullValue()
Returns whether one of the bindable parameter values is null.
|
Iterator<Object> |
iterator()
Returns an iterator over all bindable parameters.
|
forEach, spliteratorPageable getPageable()
Pageable of the parameters, if available. Returns null otherwise.Sort getSort()
Sort parameter if available or the
Sort contained in a Pageable if available. Returns null if no Sort can be found.@Deprecated Optional<Class<?>> getDynamicProjection()
findDynamicProjection() instead.@Nullable Class<?> findDynamicProjection()
Object getBindableValue(int index)
Pageable and Sort values are
skipped without noticed in the index. For a method signature taking String, Pageable ,
String, #getBindableParameter(1) would return the second String value.index - boolean hasBindableNullValue()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.