return deleteCommand;
}
private UpdateCommandImpl getUpdateCommand(DataObject changedObject) {
Table table = mapping.getTableByTypeName(changedObject.getType().getName());
if (table == null) {
if (changedObject.getType().getProperty("ID") != null) {
mapping.addPrimaryKey(changedObject.getType().getName() + ".ID");
table = mapping.getTableByTypeName(changedObject.getType().getName());
} else {
throw new RuntimeException("Table " + changedObject.getType().getName()
+ " was changed in the DataGraph but is not present in the Config");
}
}
Update update = table.getUpdate();
if (update == null) {
updateCommand = UpdateGenerator.INSTANCE.getUpdateCommand(mapping, changedObject, table);
} else {
TableWrapper t = new TableWrapper(table);
if (t.getCollisionColumn() != null) {