Package io.micronaut.data.model.runtime
Interface QueryParameterBinding
- All Known Implementing Classes:
DelegatingQueryParameterBinding
,StoredQueryParameter
public interface QueryParameterBinding
The query parameter binding.
- Since:
- 3.2
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable DataType
default @Nullable JsonDataType
default @Nullable String
getName()
default @Nullable String[]
default @Nullable Class<?>
default int
default @Nullable QueryParameterBinding
default @Nullable String[]
default @NonNull String
default @NonNull String[]
default @Nullable Object
getValue()
The constant runtime value for the parameter.default boolean
default boolean
default boolean
default boolean
-
Method Details
-
getName
- Returns:
- The name of the parameter
-
getRequiredName
- Returns:
- The required name of the parameter or throws exception
-
getDataType
- Returns:
- The data type
-
getJsonDataType
- Returns:
- The JSON representation type if data type is JSON, default
JsonDataType.DEFAULT
-
getParameterConverterClass
- Returns:
- The parameter converter class
-
getParameterIndex
default int getParameterIndex()- Returns:
- The parameter index
-
getParameterBindingPath
- Returns:
- The parameter binding property path.
-
getPropertyPath
- Returns:
- The property path.
-
getRequiredPropertyPath
- Returns:
- The required property path or throws and exception.
-
isAutoPopulated
default boolean isAutoPopulated()- Returns:
- if property is auto-populated
-
isRequiresPreviousPopulatedValue
default boolean isRequiresPreviousPopulatedValue()- Returns:
- if property is auto-populated and binding requires previous value to be set.
-
getPreviousPopulatedValueParameter
- Returns:
- The previous value of the auto-populated property for cases when the property is mapped to the method parameter.
-
isExpandable
default boolean isExpandable()- Returns:
- Is expandable parameter
-
getValue
The constant runtime value for the parameter.- Returns:
- the value or null
-
isExpression
default boolean isExpression()- Returns:
- Is expression value
- Since:
- 4.5.0
-