public class SqlParameterSourceUtils
extends java.lang.Object
SqlParameterSource
with SimpleJdbc
classes.Constructor and Description |
---|
SqlParameterSourceUtils() |
Modifier and Type | Method and Description |
---|---|
static SqlParameterSource[] |
createBatch(java.util.Map[] valueMaps)
Create an array of MapSqlParameterSource objects populated with data from the
values passed in.
|
static SqlParameterSource[] |
createBatch(java.lang.Object[] beans)
Create an array of BeanPropertySqlParameterSource objects populated with data
from the values passed in.
|
static java.util.Map |
extractCaseInsensitiveParameterNames(SqlParameterSource parameterSource)
Create a Map of case insensitive parameter names together with the original name.
|
static java.lang.Object |
getTypedValue(SqlParameterSource source,
java.lang.String parameterName)
Create a wrapped value if parameter has type information, plain object if not.
|
public static SqlParameterSource[] createBatch(java.util.Map[] valueMaps)
valueMaps
- array of Maps containing the values to be usedpublic static SqlParameterSource[] createBatch(java.lang.Object[] beans)
beans
- object array of beans containing the values to be usedpublic static java.lang.Object getTypedValue(SqlParameterSource source, java.lang.String parameterName)
source
- the source of paramer values and type informationparameterName
- the name of the parameterpublic static java.util.Map extractCaseInsensitiveParameterNames(SqlParameterSource parameterSource)
parameterSource
- the source of paramer names