Project

General

Profile

Revision d0242e14

IDd0242e14a9e6189eae6aa1a471b5c4a12c57358e
Parent 093450dc
Child a4939794, 59634b15, e6feb60e

Added by Andreas Kohlbecker about 2 years ago

ref #7206 removing old debug code

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/name/TaxonNameEditorPresenter.java
21 21
import com.vaadin.ui.AbstractField;
22 22

  
23 23
import eu.etaxonomy.cdm.api.service.INameService;
24
import eu.etaxonomy.cdm.cache.CdmEntityCache;
25
import eu.etaxonomy.cdm.debug.PersistentContextAnalyzer;
26 24
import eu.etaxonomy.cdm.model.agent.AgentBase;
27 25
import eu.etaxonomy.cdm.model.agent.Person;
28 26
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
......
248 246
                bean.removeNameRelationship(relation);
249 247
            }
250 248
        }
251
        // updateBasionyms.clear(); // DEBUGGING #########################
252 249
        getRepo().getSession().clear();
253 250
        for(TaxonName addBasionymName :updateBasionyms){
254 251
            if(addBasionymName != null){
255
                // if(addBasionymName.getUuid() != null){
256
                    // reload
257

  
258
                    System.err.println("====== Cache ======");
259
                    addBasionymName = getRepo().getNameService().load(addBasionymName.getUuid(), BASIONYM_INIT_STRATEGY);
260
                    PersistentContextAnalyzer pca = new PersistentContextAnalyzer((CdmEntityCache)getCache(), getRepo().getSession());
261
                    pca.setShowHashCodes(true);
262
                    pca.printEntityGraph(System.err);
263
                    pca.printCopyEntities(System.err);
264

  
265
                    System.err.println("====== Basionym ======");
266
                    PersistentContextAnalyzer basiopca = new PersistentContextAnalyzer(addBasionymName, getRepo().getSession());
267
                    basiopca.setShowHashCodes(true);
268
                    basiopca.printEntityGraph(System.err);
269

  
270
                    TaxonName cachedName = (TaxonName) getCache().getFromCache(addBasionymName);
271
                    if(cachedName != null){
272
                        System.err.println("====== Cached Basionym ======");
273
                        PersistentContextAnalyzer cahedbasiopca = new PersistentContextAnalyzer(addBasionymName, getRepo().getSession());
274
                        cahedbasiopca.setShowHashCodes(true);
275
                        cahedbasiopca.printEntityGraph(System.err);
276
                        addBasionymName = cachedName;
277
                    }
278
                // }
279 252
                bean.addBasionym(addBasionymName);
280 253
            }
281 254
        }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)