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 java.lang.Object implements QueryParameterBinding
DelegatingQueryParameterBinding
. Intended for overriding some of theQueryParameterBinding
's properties.- Since:
- 3.8.0
- Author:
- Denis Stepanov
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DelegatingQueryParameterBinding(QueryParameterBinding delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataType
getDataType()
java.lang.String
getName()
java.lang.String[]
getParameterBindingPath()
java.lang.Class<?>
getParameterConverterClass()
int
getParameterIndex()
QueryParameterBinding
getPreviousPopulatedValueParameter()
java.lang.String[]
getPropertyPath()
java.lang.String
getRequiredName()
java.lang.String[]
getRequiredPropertyPath()
java.lang.Object
getValue()
The constant runtime value for the parameter.boolean
isAutoPopulated()
boolean
isExpandable()
boolean
isRequiresPreviousPopulatedValue()
-
-
-
Constructor Detail
-
DelegatingQueryParameterBinding
protected DelegatingQueryParameterBinding(QueryParameterBinding delegate)
-
-
Method Detail
-
getName
@Nullable public java.lang.String getName()
- Specified by:
getName
in interfaceQueryParameterBinding
- Returns:
- The name of the parameter
-
getRequiredName
@NonNull public java.lang.String getRequiredName()
- Specified by:
getRequiredName
in interfaceQueryParameterBinding
- Returns:
- The required name of the parameter or throws exception
-
getDataType
public DataType getDataType()
- Specified by:
getDataType
in interfaceQueryParameterBinding
- Returns:
- The data type
-
getParameterConverterClass
public java.lang.Class<?> getParameterConverterClass()
- Specified by:
getParameterConverterClass
in interfaceQueryParameterBinding
- Returns:
- The parameter converter class
-
getParameterIndex
public int getParameterIndex()
- Specified by:
getParameterIndex
in interfaceQueryParameterBinding
- Returns:
- The parameter index
-
getParameterBindingPath
public java.lang.String[] getParameterBindingPath()
- Specified by:
getParameterBindingPath
in interfaceQueryParameterBinding
- Returns:
- The parameter binding property path.
-
getPropertyPath
public java.lang.String[] getPropertyPath()
- Specified by:
getPropertyPath
in interfaceQueryParameterBinding
- Returns:
- The property path.
-
getRequiredPropertyPath
public java.lang.String[] getRequiredPropertyPath()
- Specified by:
getRequiredPropertyPath
in interfaceQueryParameterBinding
- Returns:
- The required property path or throws and exception.
-
isAutoPopulated
public boolean isAutoPopulated()
- Specified by:
isAutoPopulated
in interfaceQueryParameterBinding
- Returns:
- if property is auto-populated
-
isRequiresPreviousPopulatedValue
public boolean isRequiresPreviousPopulatedValue()
- Specified by:
isRequiresPreviousPopulatedValue
in interfaceQueryParameterBinding
- Returns:
- if property is auto-populated and binding requires previous value to be set.
-
getPreviousPopulatedValueParameter
public QueryParameterBinding getPreviousPopulatedValueParameter()
- Specified by:
getPreviousPopulatedValueParameter
in 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:
isExpandable
in interfaceQueryParameterBinding
- Returns:
- Is expandable parameter
-
getValue
public java.lang.Object getValue()
Description copied from interface:QueryParameterBinding
The constant runtime value for the parameter.- Specified by:
getValue
in interfaceQueryParameterBinding
- Returns:
- the value or null
-
-