if (shortestPath[0] != null && shortestPath[0].size() < path.size()) {
return;
}
}
DBTable sourceTable = (DBTable) sourceColumn.getDataset();
for (DBColumn column : sourceTable.getForeignKeyColumns()) {
if (column != sourceColumn) {
DBColumn fkColumn = column.getForeignKeyColumn();
buildDependencyPath(path, fkColumn, targetColumn, shortestPath);
}
}
for (DBColumn pkColumn : sourceTable.getPrimaryKeyColumns()) {
if (pkColumn != sourceColumn) {
for (DBColumn fkColumn : pkColumn.getReferencingColumns()) {
buildDependencyPath(path, fkColumn, targetColumn, shortestPath);
}
}