else
{
pkIdentifier = idFactory.newIdentifier(IdentifierType.COLUMN, pkName);
}
PrimaryKey pk = (PrimaryKey) primaryKeysByName.get(pkIdentifier);
if (pk == null)
{
pk = new PrimaryKey(this);
pk.setName(pkIdentifier.getIdentifierName());
primaryKeysByName.put(pkIdentifier, pk);
}
int keySeq = (((Short)pkInfo.getProperty("key_seq")).shortValue()) - 1;
String colName = (String)pkInfo.getProperty("column_name");
DatastoreIdentifier colIdentifier = idFactory.newIdentifier(IdentifierType.COLUMN, colName);
Column col = columnsByName.get(colIdentifier);
if (col == null)
{
throw new UnexpectedColumnException(this.toString(), colIdentifier.getIdentifierName(), this.getSchemaName(), this.getCatalogName());
}
pk.setDatastoreField(keySeq, col);
}
}
return primaryKeysByName;
}