if ((element = lookupCache(cacheManager).get(DbUtils.hashCodeCacheKeyFor(id))) != null) {
log.debug("Cache hit on map for LibraryDilution " + id);
return (LibraryDilution)element.getObjectValue();
}
}
LibraryDilution libraryDilution = dataObjectFactory.getLibraryDilution();
libraryDilution.setId(id);
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")));
if (!isLazy()) {
libraryDilution.setLibrary(libraryDAO.get(rs.getLong("library_libraryId")));
}
else {
libraryDilution.setLibrary(libraryDAO.lazyGet(rs.getLong("library_libraryId")));
}
}
catch (IOException e1) {
e1.printStackTrace();
}