}
else
{
pkName = idFactory.newIdentifier(IdentifierFactory.COLUMN, s);
}
PrimaryKey pk = (PrimaryKey) primaryKeysByName.get(pkName);
if (pk == null)
{
pk = new PrimaryKey(this);
pk.setName(pkName.getIdentifier());
primaryKeysByName.put(pkName, pk);
}
int keySeq = rs.getInt(5) - 1;
DatastoreIdentifier colName = idFactory.newIdentifier(IdentifierFactory.COLUMN, rs.getString(4));
Column col = (Column) columnsByName.get(colName);
if (col == null)
{
throw new UnexpectedColumnException(this.toString(), colName.getIdentifier(), this.getSchemaName(), this.getCatalogName());
}
pk.setDatastoreField(keySeq, col);
}
}
finally
{
if (rs.getStatement() != null)