void Table::setPrimaryKey(string colName) { Column *theCol = findColumn(colName); if(theCol == NULL) { throw DatabaseException(20, colName + " does not exist."); } theCol->setPrimary(true); }