Record Class AdditionalParameterBinding
java.lang.Object
java.lang.Record
io.micronaut.data.model.query.builder.AdditionalParameterBinding
- Record Components:
bindingContext- The binding contextname- The property name
- All Implemented Interfaces:
QueryParameterBinding
@Internal
public record AdditionalParameterBinding(BindingParameter.BindingContext bindingContext, String name)
extends Record
implements QueryParameterBinding
The
QueryParameterBinding of the additional parameter.- Since:
- 4.9.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionAdditionalParameterBinding(BindingParameter.BindingContext bindingContext, String name) Creates an instance of aAdditionalParameterBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebindingContextrecord component.final booleanIndicates whether some other object is "equal to" this one.getKey()getName()final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface QueryParameterBinding
getConverterClassName, getParameterBindingPath, getParameterIndex, getPropertyPath, getRole, getTableAlias, getValue, isAutoPopulated, isExpandable, isExpression, isRequiresPreviousPopulatedValue
-
Constructor Details
-
AdditionalParameterBinding
Creates an instance of aAdditionalParameterBindingrecord class.- Parameters:
bindingContext- the value for thebindingContextrecord componentname- the value for thenamerecord component
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceQueryParameterBinding- Returns:
- The parameter name.
-
getKey
- Specified by:
getKeyin interfaceQueryParameterBinding- Returns:
- The key represents the placeholder value in the query (usually it's ?).
-
getDataType
- Specified by:
getDataTypein interfaceQueryParameterBinding- Returns:
- The data type
-
getJsonDataType
- Specified by:
getJsonDataTypein interfaceQueryParameterBinding- Returns:
- The json representation data type if getDataType is
DataType.JSONand is annotated withJsonRepresentationannotation
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
bindingContext
Returns the value of thebindingContextrecord component.- Returns:
- the value of the
bindingContextrecord component
-
name
-