public class ConvertingParameterAccessor extends Object implements MongoParameterAccessor
ParameterAccessor that uses a MongoWriter to serialize parameters into Mongo format.| Modifier and Type | Class and Description |
|---|---|
static interface |
ConvertingParameterAccessor.PotentiallyConvertingIterator
Custom
Iterator that adds a method to access elements in a converted manner. |
| Constructor and Description |
|---|
ConvertingParameterAccessor(MongoWriter<?> writer,
MongoParameterAccessor delegate)
Creates a new
ConvertingParameterAccessor with the given MongoWriter and delegate. |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
findDynamicProjection() |
Object |
getBindableValue(int index) |
Collation |
getCollation()
Returns the
Collation to be used for the query. |
org.springframework.data.domain.Range<org.springframework.data.geo.Distance> |
getDistanceRange()
Returns a
Distance to be applied to Mongo geo queries. |
Optional<Class<?>> |
getDynamicProjection() |
TextCriteria |
getFullText()
Returns the
TextCriteria to be used for full text query. |
org.springframework.data.geo.Point |
getGeoNearLocation()
Returns the
Point to use for a geo-near query. |
org.springframework.data.domain.Pageable |
getPageable() |
org.springframework.data.domain.Sort |
getSort() |
UpdateDefinition |
getUpdate()
Returns the
Update to be used for an update execution. |
Object[] |
getValues()
Returns the raw parameter values of the underlying query method.
|
boolean |
hasBindableNullValue() |
ConvertingParameterAccessor.PotentiallyConvertingIterator |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ConvertingParameterAccessor(MongoWriter<?> writer, MongoParameterAccessor delegate)
ConvertingParameterAccessor with the given MongoWriter and delegate.writer - must not be null.delegate - must not be null.public ConvertingParameterAccessor.PotentiallyConvertingIterator iterator()
public org.springframework.data.domain.Pageable getPageable()
getPageable in interface org.springframework.data.repository.query.ParameterAccessorpublic org.springframework.data.domain.Sort getSort()
getSort in interface org.springframework.data.repository.query.ParameterAccessorpublic Optional<Class<?>> getDynamicProjection()
getDynamicProjection in interface org.springframework.data.repository.query.ParameterAccessorpublic Class<?> findDynamicProjection()
findDynamicProjection in interface org.springframework.data.repository.query.ParameterAccessorpublic Object getBindableValue(int index)
getBindableValue in interface org.springframework.data.repository.query.ParameterAccessorpublic org.springframework.data.domain.Range<org.springframework.data.geo.Distance> getDistanceRange()
MongoParameterAccessorDistance to be applied to Mongo geo queries.getDistanceRange in interface MongoParameterAccessorDistance parameter
at all or the given value for it was null.public org.springframework.data.geo.Point getGeoNearLocation()
MongoParameterAccessorPoint to use for a geo-near query.getGeoNearLocation in interface MongoParameterAccessorpublic TextCriteria getFullText()
MongoParameterAccessorTextCriteria to be used for full text query.getFullText in interface MongoParameterAccessorpublic Collation getCollation()
MongoParameterAccessorCollation to be used for the query.getCollation in interface MongoParameterAccessorpublic UpdateDefinition getUpdate()
MongoParameterAccessorUpdate to be used for an update execution.getUpdate in interface MongoParameterAccessorpublic boolean hasBindableNullValue()
hasBindableNullValue in interface org.springframework.data.repository.query.ParameterAccessorpublic Object[] getValues()
MongoParameterAccessorgetValues in interface MongoParameterAccessorCopyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.