if ((element = lookupCache(cacheManager).get(DbUtils.hashCodeCacheKeyFor(id))) != null) {
log.debug("Cache hit on map for SequencerPoolPartition " + id);
return (SequencerPoolPartition)element.getObjectValue();
}
}
SequencerPoolPartition l = dataObjectFactory.getSequencerPoolPartition();
l.setId(id);
l.setPartitionNumber(rs.getInt("partitionNumber"));
try {
l.setSecurityProfile(securityProfileDAO.get(rs.getLong("securityProfile_profileId")));
l.setPool(poolDAO.get(rs.getLong("pool_poolId")));
if (!isLazy()) {
l.setSequencerPartitionContainer(sequencerPartitionContainerDAO.getSequencerPartitionContainerByPartitionId(id));
}
}
catch (IOException e1) {
e1.printStackTrace();
}