Interface PreparedOperation<T>

Type Parameters:
T - underlying operation source
All Superinterfaces:
QueryOperation, Supplier<String>

public interface PreparedOperation<T> extends QueryOperation
Extension to QueryOperation for a prepared SQL query Supplier with bound parameters. Contains parameter bindings that can be bound to a BindTarget.

Can be executed with DatabaseClient.

Since:
5.3
Author:
Mark Paluch
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Apply bindings to the supplied BindTarget.
    Get the underlying query source.

    Methods inherited from interface org.springframework.r2dbc.core.QueryOperation

    get, toQuery
  • Method Details

    • getSource

      T getSource()
      Get the underlying query source.
      Returns:
      the query source, such as a statement/criteria object
    • bindTo

      void bindTo(BindTarget target)
      Apply bindings to the supplied BindTarget.
      Parameters:
      target - the target to apply bindings to