}
}
public class LazyEmPCRDilutionMapper implements RowMapper<emPCRDilution> {
public emPCRDilution mapRow(ResultSet rs, int rowNum) throws SQLException {
emPCRDilution pcrDilution = dataObjectFactory.getEmPCRDilution();
pcrDilution.setId(rs.getLong("dilutionId"));
pcrDilution.setName(rs.getString("name"));
pcrDilution.setConcentration(rs.getDouble("concentration"));
pcrDilution.setIdentificationBarcode(rs.getString("identificationBarcode"));
pcrDilution.setCreationDate(rs.getDate("creationDate"));
pcrDilution.setDilutionCreator(rs.getString("dilutionUserName"));
//pcrDilution.setLastUpdated(rs.getTimestamp("lastUpdated"));
try {
pcrDilution.setSecurityProfile(securityProfileDAO.get(rs.getLong("securityProfile_profileId")));
pcrDilution.setEmPCR(emPcrDAO.lazyGet(rs.getLong("emPCR_pcrId")));
}
catch (IOException e) {
log.error("Cannot map from database to emPCRDilution: ", e);
e.printStackTrace();
}