Map<String, Collection<String>> constraintMap = new HashMap<String, Collection<String>>();
DatabaseMetaData metadata = conn.getMetaData();
for (String name : includeTables) {
DbEntity entity = map.getDbEntity(name);
if (entity == null) {
continue;
}
boolean status = entity.getDataMap() != null
&& entity.getDataMap().isQuotingSQLIdentifiers();
QuotingStrategy strategy = getAdapter().getQuotingStrategy(status);
// Get all constraints for the table
ResultSet rs = metadata.getExportedKeys(entity.getCatalog(), entity
.getSchema(), entity.getName());
try {
while (rs.next()) {
String fk = rs.getString("FK_NAME");
String fkTable = rs.getString("FKTABLE_NAME");