Class QueryParameter

java.lang.Object
io.micronaut.data.model.query.QueryParameter
All Implemented Interfaces:
io.micronaut.core.naming.Named, BindingParameter

@Deprecated(forRemoval=true, since="4.9") public class QueryParameter extends Object implements io.micronaut.core.naming.Named, BindingParameter
Deprecated, for removal: This API element is subject to removal in a future version.
Will switch to an internal
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

    Constructors
    Constructor
    Description
    QueryParameter(@NonNull String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Bind the parameter.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @NonNull String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static @NonNull QueryParameter
    of(@NonNull String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new query parameter for the given name.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QueryParameter

      public QueryParameter(@NonNull @NonNull String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
      Parameters:
      name - The parameter name
  • Method Details

    • getName

      @NonNull public @NonNull String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getName in interface io.micronaut.core.naming.Named
    • equals

      public boolean equals(Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class Object
    • of

      @NonNull public static @NonNull QueryParameter of(@NonNull @NonNull String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new query parameter for the given name.
      Parameters:
      name - The name
      Returns:
      The parameter
    • bind

      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: BindingParameter
      Bind the parameter.
      Specified by:
      bind in interface BindingParameter
      Parameters:
      bindingContext - The binding context
      Returns:
      The query binding