return statement.toString();
}
public DeleteCommandImpl getDeleteCommand(MappingWrapper mapping, Table t) {
TableWrapper tw = new TableWrapper(t);
DeleteCommandImpl deleteCommand = new DeleteCommandImpl(getDeleteStatement(mapping, t));
Iterator i = tw.getPrimaryKeyProperties().iterator();
for (int idx = 1; i.hasNext(); idx++) {
String property = (String) i.next();
ParameterExtendedImpl p = new ParameterExtendedImpl();
p.setName(property);
p.setColumnType(SDODataTypeHelper.columnTypeForSDOType(SDODataTypes.OBJECT));
p.setConverter(getConverter(tw.getConverter(property)));
p.setIndex(idx);
deleteCommand.addParameter(p);
}
return deleteCommand;
}