if ((element = lookupCache(cacheManager).get(DbUtils.hashCodeCacheKeyFor(id))) != null) {
log.debug("Cache hit on map for SampleQC " + id);
return (SampleQC)element.getObjectValue();
}
}
SampleQC s = dataObjectFactory.getSampleQC();
s.setId(id);
s.setQcCreator(rs.getString("qcUserName"));
s.setQcDate(rs.getDate("qcDate"));
s.setResults(rs.getDouble("results"));
try {
s.setQcType(getSampleQcTypeById(rs.getLong("qcMethod")));
if (!isLazy()) {
s.setSample(sampleDAO.get(rs.getLong("sample_sampleId")));
}
}
catch (IOException e) {
e.printStackTrace();
}