}
}
public class LibraryDilutionMapper implements RowMapper<LibraryDilution> {
public LibraryDilution mapRow(ResultSet rs, int rowNum) throws SQLException {
LibraryDilution libraryDilution = dataObjectFactory.getLibraryDilution();
libraryDilution.setId(rs.getLong("dilutionId"));
libraryDilution.setName(rs.getString("name"));
libraryDilution.setConcentration(rs.getDouble("concentration"));
libraryDilution.setIdentificationBarcode(rs.getString("identificationBarcode"));
libraryDilution.setCreationDate(rs.getDate("creationDate"));
libraryDilution.setDilutionCreator(rs.getString("dilutionUserName"));
//libraryDilution.setLastUpdated(rs.getTimestamp("lastUpdated"));
try {
libraryDilution.setSecurityProfile(securityProfileDAO.get(rs.getLong("securityProfile_profileId")));
Library library = libraryDAO.get(rs.getLong("library_libraryId"));
libraryDilution.setLibrary(library);
}
catch (IOException e1) {
e1.printStackTrace();
}
return libraryDilution;