Class StoredQueryParameter
- java.lang.Object
-
- io.micronaut.data.runtime.query.internal.StoredQueryParameter
-
- All Implemented Interfaces:
QueryParameterBinding
@Internal public final class StoredQueryParameter extends java.lang.Object implements QueryParameterBinding
The stored query parameter.- Since:
- 3.3
- Author:
- Denis Stepanov
-
-
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()
boolean
isAutoPopulated()
boolean
isExpandable()
boolean
isRequiresPreviousPopulatedValue()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.micronaut.data.model.runtime.QueryParameterBinding
getRequiredName, getRequiredPropertyPath, getValue
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceQueryParameterBinding
- Returns:
- The name of the parameter
-
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.
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-