if (col == null) {
continue;
}
if (!dataSet.containsKey(col.columnName())) {
isInconsistent = true;
throw new DatabaseAccessException("Cannot apply data to " + getClass().getSimpleName() + ". Column name mismatches! (" + col.columnName() + " does not exist) - " + dataSet.keySet().toString());
}
field.set(this, dataSet.get(col.columnName()));
columnFields++;
}
// If the columnFields is not the size of the dataSet,
// There is either excess data or data that has not been put in the AccessObject.
// This causes inconsistency and therefore must throw an exception
if (columnFields != dataSet.size()) {
isInconsistent = true;
throw new DatabaseAccessException("Supplied Data set cannot be applied to this DataAccess(" + getClass().getSimpleName() + "). Column count mismatches!");
}
}