Interface BindableParametersStoredQuery.Binder

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.lang.Object autoPopulateRuntimeProperty​(io.micronaut.data.model.runtime.RuntimePersistentProperty<?> persistentProperty, java.lang.Object previousValue)
      Auto populate property value.
      void bindMany​(io.micronaut.data.model.runtime.QueryParameterBinding binding, java.util.Collection<java.lang.Object> values)
      Bind multiple values.
      void bindOne​(io.micronaut.data.model.runtime.QueryParameterBinding binding, java.lang.Object value)
      Bind the value.
      java.lang.Object convert​(java.lang.Class<?> converterClass, java.lang.Object value, io.micronaut.core.type.Argument<?> argument)
      Convert value using the converter class.
      java.lang.Object convert​(java.lang.Object value, io.micronaut.data.model.runtime.RuntimePersistentProperty<?> property)
      Convert value according to the property definition.
      default int currentIndex()  
    • Method Detail

      • autoPopulateRuntimeProperty

        @NonNull
        java.lang.Object autoPopulateRuntimeProperty​(@NonNull
                                                     io.micronaut.data.model.runtime.RuntimePersistentProperty<?> persistentProperty,
                                                     @Nullable
                                                     java.lang.Object previousValue)
        Auto populate property value.
        Parameters:
        persistentProperty - The property
        previousValue - The previous value
        Returns:
        The populated value
      • convert

        @Nullable
        java.lang.Object convert​(@Nullable
                                 java.lang.Object value,
                                 @Nullable
                                 io.micronaut.data.model.runtime.RuntimePersistentProperty<?> property)
        Convert value according to the property definition.
        Parameters:
        value - The value
        property - The property
        Returns:
        The converted value
      • convert

        @Nullable
        java.lang.Object convert​(@Nullable
                                 java.lang.Class<?> converterClass,
                                 @Nullable
                                 java.lang.Object value,
                                 @Nullable
                                 io.micronaut.core.type.Argument<?> argument)
        Convert value using the converter class.
        Parameters:
        converterClass - The converterClass
        value - The value
        argument - The argument
        Returns:
        The converted value
      • bindOne

        void bindOne​(@NonNull
                     io.micronaut.data.model.runtime.QueryParameterBinding binding,
                     @Nullable
                     java.lang.Object value)
        Bind the value.
        Parameters:
        binding - The binding
        value - The value
      • bindMany

        void bindMany​(@NonNull
                      io.micronaut.data.model.runtime.QueryParameterBinding binding,
                      @NonNull
                      java.util.Collection<java.lang.Object> values)
        Bind multiple values.
        Parameters:
        binding - The binding
        values - The values
      • currentIndex

        default int currentIndex()
        Returns:
        current index