Interface MongoParameterAccessor
- All Superinterfaces:
Iterable<Object>,ParameterAccessor
- All Known Implementing Classes:
ConvertingParameterAccessor,MongoParametersParameterAccessor
Mongo-specific
ParameterAccessor exposing a maximum distance parameter.- Author:
- Oliver Gierke, Christoph Strobl, Thomas Darimont, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescription@Nullable CollationReturns theCollationto be used for the query.Returns aDistanceto be applied to Mongo geo queries.@Nullable TextCriteriaReturns theTextCriteriato be used for full text query.@Nullable PointReturns thePointto use for a geo-near query.@Nullable UpdateDefinitionReturns theUpdateto be used for an update execution.Object @Nullable []Returns the raw parameter values of the underlying query method.Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.springframework.data.repository.query.ParameterAccessor
findDynamicProjection, getBindableValue, getLimit, getPageable, getScore, getScoreRange, getScrollPosition, getSort, getVector, hasBindableNullValue, iterator
-
Method Details
-
getDistanceRange
Returns aDistanceto be applied to Mongo geo queries.- Returns:
- the maximum distance to apply to the geo query or null if there's no
Distanceparameter at all or the given value for it was null.
-
getGeoNearLocation
@Nullable Point getGeoNearLocation()Returns thePointto use for a geo-near query.- Returns:
-
getFullText
@Nullable TextCriteria getFullText()Returns theTextCriteriato be used for full text query.- Returns:
- null if not set.
- Since:
- 1.6
-
getCollation
@Nullable Collation getCollation()Returns theCollationto be used for the query.- Returns:
- null if not set.
- Since:
- 2.2
-
getValues
Object @Nullable [] getValues()Returns the raw parameter values of the underlying query method.- Returns:
- Since:
- 1.8
-
getUpdate
@Nullable UpdateDefinition getUpdate()Returns theUpdateto be used for an update execution.- Returns:
- null if not present.
- Since:
- 3.4
-