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 Summary
Modifier and TypeMethodDescriptioncreate()Create new context.Mark the property as expandable.@Nullable PersistentPropertyPathintgetIndex()The position of the parameter in the query.@Nullable StringgetName()@Nullable PersistentPropertyPath@Nullable PersistentPropertyPathincomingMethodParameterProperty(@Nullable PersistentPropertyPath propertyPath) The property that represents incoming method parameter property.index(int index) The index of the parameter in the query.booleanThe name of the parameter in the query.outgoingQueryParameterProperty(@Nullable PersistentPropertyPath propertyPath) The property that represents outgoing query parameter property.parameterBindingPath(@Nullable PersistentPropertyPath propertyPath) The binding path of the parameter.
-
Method Details
-
create
Create new context.- Returns:
- new binding context
-
index
The index of the parameter in the query.- Parameters:
index- The index- Returns:
- this context
-
name
The name of the parameter in the query.- Parameters:
name- The name- Returns:
- this context
-
incomingMethodParameterProperty
BindingParameter.BindingContext incomingMethodParameterProperty(@Nullable PersistentPropertyPath propertyPath) The property that represents incoming method parameter property.- Parameters:
propertyPath- The property path- Returns:
- this context
-
outgoingQueryParameterProperty
BindingParameter.BindingContext outgoingQueryParameterProperty(@Nullable PersistentPropertyPath propertyPath) The property that represents outgoing query parameter property.- Parameters:
propertyPath- The property path- Returns:
- this context
-
parameterBindingPath
The binding path of the parameter. Parameter value needs to be resolved before it can be set.- Parameters:
propertyPath- The property path- Returns:
- this context
-
expandable
BindingParameter.BindingContext expandable()Mark the property as expandable.- Returns:
- this context
-
getIndex
int getIndex()The position of the parameter in the query.- Returns:
- The index
-
getName
@Nullable String getName()- Returns:
- The name
-
getIncomingMethodParameterProperty
@Nullable PersistentPropertyPath getIncomingMethodParameterProperty()- Returns:
- The incomingMethodParameterProperty
-
getOutgoingQueryParameterProperty
@Nullable PersistentPropertyPath getOutgoingQueryParameterProperty()- Returns:
- The outgoingQueryParameterProperty
-
getParameterBindingPath
@Nullable PersistentPropertyPath getParameterBindingPath()- Returns:
- The parameter binding path
-
isExpandable
boolean isExpandable()- Returns:
- Is expandable
-