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

public Class MutableBindings

extends Bindings
Class Inheritance
Imports
java.util.LinkedHashMap, io.r2dbc.spi.Statement, org.springframework.util.Assert

Mutable extension to Bindings for Value and null bindings for a Statement using BindMarkers.
Author
Mark Paluch
Since
5.3

Field Summary

Modifier and TypeField and Description
private final BindMarkers

Constructor Summary

AccessConstructor and Description
public
MutableBindings(BindMarkers
the BindMarkers to wrap
markers
)

Create new MutableBindings.

Method Summary

Modifier and TypeMethod and Description
public MutableBindings
bind(BindMarker
the BindMarker to bind to
marker
,
Object
the value to bind
value
)

Bind a value to BindMarker.

public BindMarker
bind(Object
the value to bind
value
)

Bind a value and return the related BindMarker.

public MutableBindings
bindNull(BindMarker
the BindMarker to bind to
marker
,
Class<?>
the value type
valueType
)

Bind a NULL value to BindMarker.

public BindMarker
bindNull(Class<?>
the value type
valueType
)

Bind a NULL value and return the related BindMarker.

public BindMarker

Returns:

the next BindMarker
nextMarker
()

Obtain the next BindMarker.

public BindMarker

Returns:

the next BindMarker
nextMarker
(String
name hint
hint
)

Obtain the next BindMarker with a name hint.

Inherited from org.springframework.r2dbc.core.binding.Bindings:
andapplyemptyforEachgetBindingsiteratormergespliterator

Field Detail

markersback to summary
private final BindMarkers markers

Constructor Detail

MutableBindingsback to summary
public MutableBindings(BindMarkers markers)

Create new MutableBindings.

Parameters
markers:BindMarkers

the BindMarkers to wrap

Method Detail

bindback to summary
public MutableBindings bind(BindMarker marker, Object value)

Bind a value to BindMarker.

Parameters
marker:BindMarker

the BindMarker to bind to

value:Object

the value to bind

bindback to summary
public BindMarker bind(Object value)

Bind a value and return the related BindMarker. Increments BindMarkers state.

Parameters
value:Object

the value to bind

bindNullback to summary
public MutableBindings bindNull(BindMarker marker, Class<?> valueType)

Bind a NULL value to BindMarker.

Parameters
marker:BindMarker

the BindMarker to bind to

valueType:Class<?>

the value type

bindNullback to summary
public BindMarker bindNull(Class<?> valueType)

Bind a NULL value and return the related BindMarker. Increments BindMarkers state.

Parameters
valueType:Class<?>

the value type

nextMarkerback to summary
public BindMarker nextMarker()

Obtain the next BindMarker. Increments BindMarkers state

Returns:BindMarker

the next BindMarker

nextMarkerback to summary
public BindMarker nextMarker(String hint)

Obtain the next BindMarker with a name hint. Increments BindMarkers state.

Parameters
hint:String

name hint

Returns:BindMarker

the next BindMarker