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

public Interface BindMarker

Known Direct Implementers
org.springframework.r2dbc.core.binding.IndexedBindMarkers.IndexedBindMarker, org.springframework.r2dbc.core.binding.NamedBindMarkers.NamedBindMarker
Imports
io.r2dbc.spi.Statement

A bind marker represents a single bindable parameter within a query. Bind markers are dialect-specific and provide a placeholder that is used in the actual query.
Author
Mark Paluch
Since
5.3
See Also
Statement#bind, BindMarkers, BindMarkersFactory

Method Summary

Modifier and TypeMethod and Description
public void
bind(BindTarget
the target to bind the value to
bindTarget
,
Object
the actual value (must not be null; use bindNull(BindTarget, Class) for null values)
value
)

Bind the given value to the Statement using the underlying binding strategy.

public void
bindNull(BindTarget
the target to bind the value to
bindTarget
,
Class<?>
the value type (must not be null)
valueType
)

Bind a null value to the Statement using the underlying binding strategy.

public String
getPlaceholder()

Return the database-specific placeholder for a given substitution.

Method Detail

bindback to summary
public void bind(BindTarget bindTarget, Object value)

Bind the given value to the Statement using the underlying binding strategy.

Parameters
bindTarget:BindTarget

the target to bind the value to

value:Object

the actual value (must not be null; use bindNull(BindTarget, Class) for null values)

See Also
Statement#bind
bindNullback to summary
public void bindNull(BindTarget bindTarget, Class<?> valueType)

Bind a null value to the Statement using the underlying binding strategy.

Parameters
bindTarget:BindTarget

the target to bind the value to

valueType:Class<?>

the value type (must not be null)

See Also
Statement#bindNull
getPlaceholderback to summary
public String getPlaceholder()

Return the database-specific placeholder for a given substitution.