final String mName = "readPrimaryKey";
logger.finest(mName, "Looking for primary keys of " + pTable + "=" + pTable.getTable().getQName());
ResultSet rs = pData.getPrimaryKeys(pTable.getCatalogName(),
pTable.getSchemaName(),
pTable.getTableName());
Index primaryKey = null;
boolean isRsClosed = false;
try {
while (rs.next()) {
if (primaryKey == null) {
primaryKey = pTable.getTable().newPrimaryKey();
}
String columnName = rs.getString(4);
logger.finest(mName, "Found column " + columnName);
primaryKey.addColumn(columnName);
}
isRsClosed = true;
rs.close();
} finally {