Interface BindableParametersStoredQuery.Binder
- Enclosing interface:
- BindableParametersStoredQuery<E,
R>
public static interface BindableParametersStoredQuery.Binder
Parameters binder.
-
Method Summary
Modifier and TypeMethodDescriptionautoPopulateRuntimeProperty
(RuntimePersistentProperty<?> persistentProperty, Object previousValue) Auto populate property value.void
bindMany
(QueryParameterBinding binding, Collection<Object> values) Bind multiple values.void
bindOne
(QueryParameterBinding binding, Object value) Bind the value.Convert value using the converter class.convert
(Object value, RuntimePersistentProperty<?> property) Convert value according to the property definition.default int
-
Method Details
-
autoPopulateRuntimeProperty
@NonNull Object autoPopulateRuntimeProperty(@NonNull RuntimePersistentProperty<?> persistentProperty, @Nullable Object previousValue) Auto populate property value.- Parameters:
persistentProperty
- The propertypreviousValue
- The previous value- Returns:
- The populated value
-
convert
Convert value according to the property definition.- Parameters:
value
- The valueproperty
- The property- Returns:
- The converted value
-
convert
@Nullable Object convert(@Nullable Class<?> converterClass, @Nullable Object value, @Nullable io.micronaut.core.type.Argument<?> argument) Convert value using the converter class.- Parameters:
converterClass
- The converterClassvalue
- The valueargument
- The argument- Returns:
- The converted value
-
bindOne
Bind the value.- Parameters:
binding
- The bindingvalue
- The value
-
bindMany
Bind multiple values.- Parameters:
binding
- The bindingvalues
- The values
-
currentIndex
default int currentIndex()- Returns:
- current index
-