|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.repository.query.ParametersParameterAccessor
public class ParametersParameterAccessor
ParameterAccessor implementation using a Parameters instance
to find special parameters.
| Constructor Summary | |
|---|---|
ParametersParameterAccessor(Parameters parameters,
Object[] values)
Creates a new ParametersParameterAccessor. |
|
| Method Summary | |
|---|---|
Object |
getBindableValue(int index)
Returns the bindable value with the given index. |
Pageable |
getPageable()
Returns the Pageable of the parameters, if available. |
Sort |
getSort()
Returns the sort instance to be used for query creation. |
org.springframework.data.repository.query.ParametersParameterAccessor.BindableParameterIterator |
iterator()
Returns an iterator over all bindable parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParametersParameterAccessor(Parameters parameters,
Object[] values)
ParametersParameterAccessor.
parameters - values - | Method Detail |
|---|
public Pageable getPageable()
ParameterAccessorPageable of the parameters, if available. Returns
null otherwise.
getPageable in interface ParameterAccessorpublic Sort getSort()
ParameterAccessorSort parameter if available or the Sort contained in a
Pageable if available. Returns null if no Sort
can be found.
getSort in interface ParameterAccessorpublic Object getBindableValue(int index)
ParameterAccessorPageable 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.
getBindableValue in interface ParameterAccessorpublic org.springframework.data.repository.query.ParametersParameterAccessor.BindableParameterIterator iterator()
ParameterAccessorPageable or Sort will not be
included in this Iterator.
iterator in interface Iterable<Object>iterator in interface ParameterAccessor
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||