}
final List<ODocument> records = new ArrayList<ODocument>();
for (OIndex<?> unique : uniqueIndexes) {
int keyFiledSeq = 1;
for (String keyFieldName : unique.getDefinition().getFields()) {
<BUG>ODocument doc = new ODocument();
doc.field("TABLE_CAT", catalog);
doc.field("TABLE_SCHEM", catalog);
doc.field("TABLE_NAME", table);
doc.field("COLUMN_NAME", keyFieldName);
doc.field("KEY_SEQ", Integer.valueOf(keyFiledSeq), OType.INTEGER);
doc.field("PK_NAME", unique.getName());
keyFiledSeq++;</BUG>
records.add(doc);

}
}
}
return new OrientJdbcResultSet(new OrientJdbcStatement(connection), records, ResultSet.TYPE_FORWARD_ONLY,
ResultSet.CONCUR_READ_ONLY, ResultSet.HOLD_CURSORS_OVER_COMMIT);
}
