}
dbStruct.setHierarchicalFilters(copiedFilters);
}
private void processDbFields() {
DbFields original = dbStruct.getDbFields();
DbFields copy = new DbFields();
for (DbFields.Entry e : original.getAllEntries()) {
if (e.getType() == DbFields.UPDATE_KEYS) {
List<DatabaseColumn> updateKeys = Lists.newArrayList();
for (String part : e.getKeyFields().split(DbFields.FIELD_SEPARATOR)) {
int sep = part.lastIndexOf('.');
String tableName = part.substring(0, sep);
String columnName = part.substring(sep + 1);
DatabaseObject table = translatedObjects.get(tableName);
if (table != null) {
DatabaseColumn column = table.findColumn(columnName);
if (column != null) {
updateKeys.add(column);
}
}
}
copy.addUpdateKeys(updateKeys);
} else {
// TODO: Implement me
}
}
dbStruct.setDbFields(copy);