private Cost getFromRowSet(final ResultSet set) {
try {
final Stat stat = Stat.valueOf(set.getString(STAT));
final int impact = set.getInt(IMPACT);
return new Cost(stat, impact);
} catch (final SQLException ex) {
Logger.getLogger(ChangeStatutControl.class.getName()).log(Level.SEVERE, null, ex);
return null;
}
}