do {
if(!it.next()) {
return null;
}
} while (!it.isForeignKey());
ForeignKey fk = it.getTable().getReferencingForeignKey(it.getIndex().getIndexName().getName());
return new ValuesRow(rowType,
null, //constraint catalog
fk.getConstraintName().getSchemaName(),
fk.getConstraintName().getTableName(),
null, //unique_constraint catalog
fk.getReferencedIndex().getConstraintName().getSchemaName(),
fk.getReferencedIndex().getConstraintName().getTableName(),
"NONE",
fk.getUpdateAction().toSQL(),
fk.getDeleteAction().toSQL(),
++rowCounter /*hidden pk*/);
}