/** * Implementation for {@link ItemSqlParameterSourceProvider}, * creates {@link MapSqlParameterSource} from {@link FieldSet}. * * @author Michael R. Lange */ public class FieldSetSqlParameterSourceProvider implements ItemSqlParameterSourceProvider
{ /** {@inheritDoc} */ @Override public SqlParameterSource createSqlParameterSource(FieldSet item) { MapSqlParameterSource sps = new MapSqlParameterSource(); for (Entry entry : item.getProperties().entrySet()) { sps.addValue(entry.getKey().toString(), entry.getValue()); } return sps; } }