Class ConvertingParameterAccessor

java.lang.Object
org.springframework.data.mongodb.repository.query.ConvertingParameterAccessor
All Implemented Interfaces:
Iterable<Object>, MongoParameterAccessor, org.springframework.data.repository.query.ParameterAccessor

public class ConvertingParameterAccessor extends Object implements MongoParameterAccessor
Custom ParameterAccessor that uses a MongoWriter to serialize parameters into Mongo format.
Author:
Oliver Gierke, Christoph Strobl, Thomas Darimont, Mark Paluch
  • Constructor Details

  • Method Details

    • iterator

      Specified by:
      iterator in interface Iterable<Object>
      Specified by:
      iterator in interface org.springframework.data.repository.query.ParameterAccessor
    • getScrollPosition

      public org.springframework.data.domain.ScrollPosition getScrollPosition()
      Specified by:
      getScrollPosition in interface org.springframework.data.repository.query.ParameterAccessor
    • getPageable

      public org.springframework.data.domain.Pageable getPageable()
      Specified by:
      getPageable in interface org.springframework.data.repository.query.ParameterAccessor
    • getSort

      public org.springframework.data.domain.Sort getSort()
      Specified by:
      getSort in interface org.springframework.data.repository.query.ParameterAccessor
    • findDynamicProjection

      public Class<?> findDynamicProjection()
      Specified by:
      findDynamicProjection in interface org.springframework.data.repository.query.ParameterAccessor
    • getBindableValue

      public Object getBindableValue(int index)
      Specified by:
      getBindableValue in interface org.springframework.data.repository.query.ParameterAccessor
    • getDistanceRange

      public org.springframework.data.domain.Range<org.springframework.data.geo.Distance> getDistanceRange()
      Description copied from interface: MongoParameterAccessor
      Returns a Distance to be applied to Mongo geo queries.
      Specified by:
      getDistanceRange in interface MongoParameterAccessor
      Returns:
      the maximum distance to apply to the geo query or null if there's no Distance parameter at all or the given value for it was null.
    • getGeoNearLocation

      public org.springframework.data.geo.Point getGeoNearLocation()
      Description copied from interface: MongoParameterAccessor
      Returns the Point to use for a geo-near query.
      Specified by:
      getGeoNearLocation in interface MongoParameterAccessor
      Returns:
    • getFullText

      public TextCriteria getFullText()
      Description copied from interface: MongoParameterAccessor
      Returns the TextCriteria to be used for full text query.
      Specified by:
      getFullText in interface MongoParameterAccessor
      Returns:
      null if not set.
    • getCollation

      public Collation getCollation()
      Description copied from interface: MongoParameterAccessor
      Returns the Collation to be used for the query.
      Specified by:
      getCollation in interface MongoParameterAccessor
      Returns:
      null if not set.
    • getUpdate

      public UpdateDefinition getUpdate()
      Description copied from interface: MongoParameterAccessor
      Returns the Update to be used for an update execution.
      Specified by:
      getUpdate in interface MongoParameterAccessor
      Returns:
      null if not present.
    • hasBindableNullValue

      public boolean hasBindableNullValue()
      Specified by:
      hasBindableNullValue in interface org.springframework.data.repository.query.ParameterAccessor
    • getValues

      public Object[] getValues()
      Description copied from interface: MongoParameterAccessor
      Returns the raw parameter values of the underlying query method.
      Specified by:
      getValues in interface MongoParameterAccessor
      Returns: