Class ParameterMetadataProvider

java.lang.Object
org.springframework.data.relational.repository.query.ParameterMetadataProvider
All Implemented Interfaces:
Iterable<org.springframework.data.relational.repository.query.ParameterMetadata>

public class ParameterMetadataProvider extends Object implements Iterable<org.springframework.data.relational.repository.query.ParameterMetadata>
Helper class to allow easy creation of ParameterMetadatas.
Since:
2.0
Author:
Roman Chigvintsev, Mark Paluch
  • Constructor Details

  • Method Details

    • iterator

      public Iterator<org.springframework.data.relational.repository.query.ParameterMetadata> iterator()
      Specified by:
      iterator in interface Iterable<org.springframework.data.relational.repository.query.ParameterMetadata>
    • next

      public org.springframework.data.relational.repository.query.ParameterMetadata next(Part part)
      Creates new instance of ParameterMetadata for the given Part and next Parameter.
    • prepareParameterValue

      protected @Nullable Object prepareParameterValue(@Nullable Object value, Class<?> valueType, Part.Type partType)
      Prepares parameter value before it's actually bound to the query.
      Parameters:
      value - must not be null
      Returns:
      prepared query parameter value