}
// All referencing foreign keys must be in the same schema
for(ForeignKey foreignKey : table.getReferencedForeignKeys()) {
final TableName referencingName = foreignKey.getReferencingTable().getName();
if(!referencingName.getSchemaName().equals(schemaName)) {
throw new ForeignKeyPreventsDropTableException(table.getName(), foreignKey.getConstraintName().getTableName(), referencingName);
}
}
}
for (SQLJJar jar : schema.getSQLJJars().values()) {
for (Routine routine : jar.getRoutines()) {