Class ParameterAdapter

java.lang.Object
org.springframework.data.r2dbc.mapping.ParameterAdapter
All Implemented Interfaces:
io.r2dbc.spi.Parameter

public class ParameterAdapter extends Object implements io.r2dbc.spi.Parameter
Adapter for a Parameter to an Parameter.
Since:
4.1
Author:
Christoph Strobl
  • Constructor Details

    • ParameterAdapter

      public ParameterAdapter(@Nullable Parameter delegate)
  • Method Details

    • wrap

      public static io.r2dbc.spi.Parameter wrap(Parameter parameter)
      Wraps a Parameter into an Parameter.
      Parameters:
      parameter -
      Returns:
      new instance of ParameterAdapter.
    • getType

      public io.r2dbc.spi.Type getType()
      Specified by:
      getType in interface io.r2dbc.spi.Parameter
    • getValue

      public @Nullable Object getValue()
      Specified by:
      getValue in interface io.r2dbc.spi.Parameter
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object