| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.jdbc.core.namedparam.SqlParameterSourceUtils
public class SqlParameterSourceUtils
Class that provides helper methods for the use of SqlParameterSource
 with SimpleJdbc classes.
SimpleJdbcTemplate| Constructor Summary | |
|---|---|
| SqlParameterSourceUtils() | |
| Method Summary | |
|---|---|
| static SqlParameterSource[] | createBatch(Map[] valueMaps)Create an array of MapSqlParameterSource objects populated with data from the values passed in. | 
| static SqlParameterSource[] | createBatch(Object[] beans)Create an array of BeanPropertySqlParameterSource objects populated with data from the values passed in. | 
| static Map | extractCaseInsensitiveParameterNames(SqlParameterSource parameterSource)Create a Map of case insensitive parameter names together with the original name. | 
| static Object | getTypedValue(SqlParameterSource source,
              String parameterName)Create a wrapped value if parameter has type information, plain object if not. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SqlParameterSourceUtils()
| Method Detail | 
|---|
public static SqlParameterSource[] createBatch(Map[] valueMaps)
valueMaps - array of Maps containing the values to be used
public static SqlParameterSource[] createBatch(Object[] beans)
beans - object array of beans containing the values to be used
public static Object getTypedValue(SqlParameterSource source,
                                   String parameterName)
source - the source of paramer values and type informationparameterName - the name of the parameter
public static Map extractCaseInsensitiveParameterNames(SqlParameterSource parameterSource)
parameterSource - the source of paramer names
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||