ChangeSummary summary = changedObject.getDataGraph().getChangeSummary();
Iterator i = getChangedFields(mapping, summary, changedObject).iterator();
while (i.hasNext()) {
Property attr = (Property) i.next();
Column c = t.getColumnByPropertyName(attr.getName());
if ((c != null) && (c.isCollision() || c.isPrimaryKey())) {
// get rid of comma if OCC or PK is last field
if (!i.hasNext()) {
statement
.delete(statement.length() - 2, statement.length());
}
} else {
parameters.add(attr);
statement.append(c == null ? attr.getName() : c.getName());
statement.append(" = ?");
if (i.hasNext())
statement.append(", ");
}
}