Package io.micronaut.data.model.runtime
Class DelegatingQueryParameterBinding
java.lang.Object
io.micronaut.data.model.runtime.DelegatingQueryParameterBinding
- All Implemented Interfaces:
QueryParameterBinding
@Internal
public abstract class DelegatingQueryParameterBinding
extends Object
implements QueryParameterBinding
Delegating
QueryParameterBinding. Intended for overriding some of the QueryParameterBinding's properties.- Since:
- 3.8.0
- Author:
- Denis Stepanov
-
Constructor Details
-
DelegatingQueryParameterBinding
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceQueryParameterBinding- Returns:
- The name of the parameter
-
getRequiredName
- Specified by:
getRequiredNamein interfaceQueryParameterBinding- Returns:
- The required name of the parameter or throws exception
-
getDataType
- Specified by:
getDataTypein interfaceQueryParameterBinding- Returns:
- The data type
-
getJsonDataType
- Specified by:
getJsonDataTypein interfaceQueryParameterBinding- Returns:
- The JSON representation type if data type is JSON, default
JsonDataType.DEFAULT
-
getParameterConverterClass
- Specified by:
getParameterConverterClassin interfaceQueryParameterBinding- Returns:
- The parameter converter class
-
getParameterIndex
public int getParameterIndex()- Specified by:
getParameterIndexin interfaceQueryParameterBinding- Returns:
- The parameter index
-
getParameterBindingPath
- Specified by:
getParameterBindingPathin interfaceQueryParameterBinding- Returns:
- The parameter binding property path.
-
getPropertyPath
- Specified by:
getPropertyPathin interfaceQueryParameterBinding- Returns:
- The property path.
-
getRequiredPropertyPath
- Specified by:
getRequiredPropertyPathin interfaceQueryParameterBinding- Returns:
- The required property path or throws and exception.
-
isAutoPopulated
public boolean isAutoPopulated()- Specified by:
isAutoPopulatedin interfaceQueryParameterBinding- Returns:
- if property is auto-populated
-
isRequiresPreviousPopulatedValue
public boolean isRequiresPreviousPopulatedValue()- Specified by:
isRequiresPreviousPopulatedValuein interfaceQueryParameterBinding- Returns:
- if property is auto-populated and binding requires previous value to be set.
-
getPreviousPopulatedValueParameter
- Specified by:
getPreviousPopulatedValueParameterin interfaceQueryParameterBinding- Returns:
- The previous value of the auto-populated property for cases when the property is mapped to the method parameter.
-
isExpandable
public boolean isExpandable()- Specified by:
isExpandablein interfaceQueryParameterBinding- Returns:
- Is expandable parameter
-
getValue
Description copied from interface:QueryParameterBindingThe constant runtime value for the parameter.- Specified by:
getValuein interfaceQueryParameterBinding- Returns:
- the value or null
-