Top Description Methods
org.springframework.r2dbc.core.binding

public Interface BindMarkers

Known Direct Implementers
org.springframework.r2dbc.core.binding.IndexedBindMarkers, org.springframework.r2dbc.core.binding.NamedBindMarkers, org.springframework.r2dbc.core.binding.AnonymousBindMarkers
Annotations
@FunctionalInterface

Bind markers represent placeholders in SQL queries for substitution for an actual parameter. Using bind markers allows creating safe queries so query strings are not required to contain escaped values but rather the driver encodes parameter in the appropriate representation.

BindMarkers is stateful and can be only used for a single binding pass of one or more parameters. It maintains bind indexes/bind parameter names.

Author
Mark Paluch
Since
5.3
See Also
BindMarker, BindMarkersFactory, io.r2dbc.spi.Statement#bind

Method Summary

Modifier and TypeMethod and Description
public BindMarker
next()

Create a new BindMarker.

public default BindMarker

Returns:

a new BindMarker
next
(String
an optional name hint that can be used as part of the bind marker
hint
)

Create a new BindMarker that accepts a hint.

Method Detail

nextback to summary
public BindMarker next()

Create a new BindMarker.

nextback to summary
public default BindMarker next(String hint)

Create a new BindMarker that accepts a hint. Implementations are allowed to consider/ignore/filter the name hint to create more expressive bind markers.

Parameters
hint:String

an optional name hint that can be used as part of the bind marker

Returns:BindMarker

a new BindMarker