Package io.micronaut.data.model.query
Class QueryParameter
java.lang.Object
io.micronaut.data.model.query.QueryParameter
- All Implemented Interfaces:
io.micronaut.core.naming.Named
,BindingParameter
public class QueryParameter
extends Object
implements io.micronaut.core.naming.Named, BindingParameter
A parameter to a query.
- Since:
- 1.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.data.model.query.BindingParameter
BindingParameter.BindingContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbind
(BindingParameter.BindingContext bindingContext) Bind the parameter.boolean
@NonNull String
getName()
int
hashCode()
static @NonNull QueryParameter
Creates a new query parameter for the given name.
-
Constructor Details
-
QueryParameter
Default constructor.- Parameters:
name
- The parameter name
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
-
equals
-
hashCode
public int hashCode() -
of
Creates a new query parameter for the given name.- Parameters:
name
- The name- Returns:
- The parameter
-
bind
Description copied from interface:BindingParameter
Bind the parameter.- Specified by:
bind
in interfaceBindingParameter
- Parameters:
bindingContext
- The binding context- Returns:
- The query binding
-