public Record(Row row) {
   if (row.getTable() != table)
     throw new ClassCastException(
         "Attempting to assign row from table "
             + row.getTable().getName()
             + " to "
             + this.getClass().getName()
             + " (expecting a row from table "
             + table.getName()
             + ").");
   this.row = row;
   this.values = row.getColumnValues();
 }