if ((element = lookupCache(cacheManager).get(DbUtils.hashCodeCacheKeyFor(id))) != null) {
log.debug("Cache hit on map for LibraryQC " + id);
return (LibraryQC)element.getObjectValue();
}
}
LibraryQC s = dataObjectFactory.getLibraryQC();
s.setId(rs.getLong("qcId"));
s.setQcCreator(rs.getString("qcUserName"));
s.setQcDate(rs.getDate("qcDate"));
s.setResults(rs.getDouble("results"));
s.setInsertSize(rs.getInt("insertSize"));
try {
s.setQcType(getLibraryQcTypeById(rs.getLong("qcMethod")));
if (!isLazy()) {
s.setLibrary(libraryDAO.get(rs.getLong("library_libraryId")));
}
}
catch (IOException e) {
e.printStackTrace();
}