public class DerbyDatabase extends AbstractDatabase {
@Override
protected void loadPrimaryKeys(DefaultRelations relations) throws SQLException {
for (Record record : fetchKeys("P")) {
SchemaDefinition schema = getSchema(record.getValue(Sysschemas.SCHEMANAME));
String key = record.getValue(Sysconstraints.CONSTRAINTNAME);
String tableName = record.getValue(Systables.TABLENAME);
String descriptor = record.getValueAsString(Sysconglomerates.DESCRIPTOR);
TableDefinition table = getTable(schema, tableName);