Top Description Methods
org.springframework.r2dbc.core

pack-priv Interface BindParameterSource

Known Direct Implementers
org.springframework.r2dbc.core.MapBindParameterSource
Imports
io.r2dbc.spi.Parameter

Interface that defines common functionality for objects that can offer parameter values for named bind parameters, serving as argument for NamedParameterExpander operations.

This interface allows for the specification of the type in addition to parameter values. All parameter values and types are identified by specifying the name of the parameter.

Intended to wrap various implementations like a java.util.Map with a consistent interface.

Author
Mark Paluch
Since
5.3
See Also
MapBindParameterSource

Method Summary

Modifier and TypeMethod and Description
public Iterable<String>

Returns:

an iterator over the parameter names
getParameterNames
()

Return the parameter names of the underlying parameter source.

public Parameter

Returns:

the specified parameter
getValue
(String
the name of the parameter
paramName
)

Return the parameter for the requested named parameter.

public boolean

Returns:

true if there is a value defined; false otherwise
hasValue
(String
the name of the parameter
paramName
)

Determine whether there is a value for the specified named parameter.

Method Detail

getParameterNamesback to summary
public Iterable<String> getParameterNames()

Return the parameter names of the underlying parameter source.

Returns:Iterable<String>

an iterator over the parameter names

getValueback to summary
public Parameter getValue(String paramName) throws IllegalArgumentException

Return the parameter for the requested named parameter.

Parameters
paramName:String

the name of the parameter

Returns:Parameter

the specified parameter

Exceptions
IllegalArgumentException:
if there is no value for the requested parameter
hasValueback to summary
public boolean hasValue(String paramName)

Determine whether there is a value for the specified named parameter.

Parameters
paramName:String

the name of the parameter

Returns:boolean

true if there is a value defined; false otherwise