spring-framework / org.springframework.jdbc.core.namedparam / NamedParameterUtils / buildValueArray

buildValueArray

open static fun buildValueArray(parsedSql: ParsedSql, paramSource: SqlParameterSource, @Nullable declaredParams: MutableList<SqlParameter>): Array<Any>

Convert a Map of named parameter values to a corresponding array.

Parameters

parsedSql - the parsed SQL statement

paramSource - the source for named parameters

declaredParams - the List of declared SqlParameter objects (may be null). If specified, the parameter metadata will be built into the value array in the form of SqlParameterValue objects.

Return
the array of values

open static fun buildValueArray(sql: String, paramMap: MutableMap<String, *>): Array<Any>

Convert a Map of named parameter values to a corresponding array.

This is a shortcut version of #buildValueArray(ParsedSql, SqlParameterSource, java.util.List).

Parameters

sql - the SQL statement

paramMap - the Map of parameters

Return
the array of values