Package io.micronaut.data.model.query
Interface BindingParameter.BindingContext
- Enclosing interface:
- BindingParameter
public static interface BindingParameter.BindingContext
The binding context.
 
Additional properties are used to map binding parameter path. Example method `findByAuthor(author)` incoming method parameter property path would be `author` and query parameter property path `author.id`.
- 
Method SummaryModifier and TypeMethodDescriptioncreate()Create new context.@NonNull BindingParameter.BindingContextMark the property as expandable.@Nullable PersistentPropertyPathintgetIndex()The position of the parameter in the query.@Nullable StringgetName()@Nullable PersistentPropertyPath@NonNull BindingParameter.BindingContextincomingMethodParameterProperty(@Nullable PersistentPropertyPath propertyPath) The property that represents incoming method parameter property.@NonNull BindingParameter.BindingContextindex(int index) The index of the parameter in the query.boolean@NonNull BindingParameter.BindingContextThe name of the parameter in the query.@NonNull BindingParameter.BindingContextoutgoingQueryParameterProperty(@Nullable PersistentPropertyPath propertyPath) The property that represents outgoing query parameter property.
- 
Method Details- 
createCreate new context.- Returns:
- new bindign context
 
- 
indexThe index of the parameter in the query.- Parameters:
- index- The index
- Returns:
- this context
 
- 
nameThe name of the parameter in the query.- Parameters:
- name- The name
- Returns:
- this context
 
- 
incomingMethodParameterProperty@NonNull @NonNull BindingParameter.BindingContext incomingMethodParameterProperty(@Nullable @Nullable PersistentPropertyPath propertyPath) The property that represents incoming method parameter property.- Parameters:
- propertyPath- The property path
- Returns:
- this context
 
- 
outgoingQueryParameterProperty@NonNull @NonNull BindingParameter.BindingContext outgoingQueryParameterProperty(@Nullable @Nullable PersistentPropertyPath propertyPath) The property that represents outgoing query parameter property.- Parameters:
- propertyPath- The property path
- Returns:
- this context
 
- 
expandableMark the property as expandable.- Returns:
- this context
 
- 
getIndexint getIndex()The position of the parameter in the query.- Returns:
- The index
 
- 
getName- Returns:
- The name
 
- 
getIncomingMethodParameterProperty- Returns:
- The incomingMethodParameterProperty
 
- 
getOutgoingQueryParameterProperty- Returns:
- The outgoingQueryParameterProperty
 
- 
isExpandableboolean isExpandable()- Returns:
- Is expandable
 
 
-