InsertCommandImpl cmd = new InsertCommandImpl(statement.toString(),
(String[]) generatedKeys.toArray(new String[0]));
Iterator params = parameters.iterator();
for (int idx = 1; params.hasNext(); idx++) {
Property property = (Property) params.next();
ParameterImpl p = new ParameterImpl();
p.setName(property.getName());
p.setType(property.getType());
p.setConverter(getConverter(table.getConverter(property.getName())));
p.setIndex(idx);
cmd.addParameter(p);
}
if (this.logger.isDebugEnabled()) {
this.logger.debug(statement.toString());