|
|
Combine BeanPropertySqlParameterSource and MapSqlParameterSource?
Is there a (simple) way to combine BeanPropertySqlParameterSource and MapSqlParameterSource?
For example:
Code:
BeanPropertySqlParameterSource inParams;
inParams = new BeanPropertySqlParameterSource(someDTO);
simpleJdbcCallProdecure.execute(inParams);
// I want to add one more paramter:
MapSqlParameterSource anotherParam = new MapSqlParameterSource(quot;argument_xquot;, 42);
Is there a class that implements SqlParameterSource and reads the values from two quot;internalquot; SqlParameterSource objects?
Like this:
Code:
SqlParameterSource combined = new XXX(inParams, anotherParam);
?
Regards,
David
Well, I wrote one myself... |
|