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
  • Constructor Details

    • QueryParameter

      public QueryParameter(@NonNull @NonNull String name)
      Default constructor.
      Parameters:
      name - The parameter name
  • Method Details

    • getName

      @NonNull public @NonNull String getName()
      Specified by:
      getName in interface io.micronaut.core.naming.Named
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • of

      @NonNull public static @NonNull QueryParameter of(@NonNull @NonNull String name)
      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 interface BindingParameter
      Parameters:
      bindingContext - The binding context
      Returns:
      The query binding