public ConversationalTransientEntityCacher(Object sessionOwner) {
super(sessionOwner);
}
- private CdmBase load(CdmEntityIdentifier cei, boolean update) {
- return CdmApplicationState.getCommonService().findWithUpdate(cei.getCdmClass(), cei.getId());
+ private CdmBase load(CdmEntityIdentifier cei) {
+ return CdmApplicationState.getCommonService().find(cei.getCdmClass(), cei.getId());
}
public UpdateResult load(UpdateResult result, boolean update) {
// remote load cdm identifiers of objects which already exist
// in the cache
- for(CdmEntityIdentifier cei : updatedCdmIds) {
+ for(CdmEntityIdentifier id : updatedCdmIds) {
@SuppressWarnings({ "rawtypes", "unchecked" })
- CdmEntityCacheKey<?> cacheKey = new CdmEntityCacheKey(cei.getCdmClass(), cei.getId());
+ CdmEntityCacheKey<?> cacheKey = new CdmEntityCacheKey(id.getCdmClass(), id.getId());
if(exists(cacheKey)) {
- reloadedObjects.add(load(cei, update));
+ reloadedObjects.add(load(id));
}
}
updatedObjects.clear();