Changeset 22648


Ignore:
Timestamp:
02/09/10 11:48:05 (17 months ago)
Author:
mnw21
Message:

More attempts to debug dataloader

Location:
branches/mnw21/pathquery_refactor/intermine/integrate/main/src/org/intermine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/mnw21/pathquery_refactor/intermine/integrate/main/src/org/intermine/dataloader/IntegrationWriterAbstractImpl.java

    r22349 r22648  
    237237                                srcObj.getFieldProxy(fieldName); 
    238238                            if (sourceTarget instanceof ProxyReference) { 
     239                                if (type == SOURCE) { 
     240                                    if (srcObj instanceof InterMineObject) { 
     241                                        LOG.error("Having to fetch reference " + fieldName 
     242                                                + " for object with ID " 
     243                                                + ((InterMineObject) srcObj).getId() 
     244                                                + " referencing object with ID " 
     245                                                + sourceTarget.getId()); 
     246                                    } 
     247                                } 
    239248                                if (idMap.get(sourceTarget.getId()) == null) { 
    240249                                    sourceTarget = ((ProxyReference) sourceTarget).getObject(); 
  • branches/mnw21/pathquery_refactor/intermine/integrate/main/src/org/intermine/objectstore/fastcollections/ObjectStoreFastCollectionsForTranslatorImpl.java

    r22597 r22648  
    336336                                : froms.entrySet()) { 
    337337                            FastPathObject objToPopulate = fromEntry.getKey(); 
     338                            //String objDescription; 
     339                            //if (objToPopulate instanceof InterMineObject) { 
     340                            //    objDescription = "object with ID " 
     341                            //        + ((InterMineObject) objToPopulate).getId(); 
     342                            //} else { 
     343                            //    objDescription = "FastPathObject"; 
     344                            //} 
    338345                            Map<String, Object> collectionsToPopulate = fromEntry.getValue(); 
    339346                            for (Map.Entry<String, Object> collectionEntry 
     
    354361                                                objToAdd = new ProxyReference(os, idToAdd, 
    355362                                                        InterMineObject.class); 
     363                                                //LOG.warn("Did not fetch object with ID " + idToAdd 
     364                                                //        + " for " + objDescription 
     365                                                //        + " for collection " + collectionName); 
    356366                                            } else { 
    357367                                                ObjectStoreTranslatingImpl osti = 
     
    377387                                                throw new ObjectStoreException(message); 
    378388                                            } 
     389                                        //} else { 
     390                                            //LOG.warn("Fetched object with ID " + idToAdd 
     391                                            //        + " for " + objDescription 
     392                                            //        + " for collection " + collectionName); 
    379393                                        } 
    380394                                        substituteCollection.add(objToAdd); 
     
    388402                                    if (objToAdd != null) { 
    389403                                        objToPopulate.setFieldValue(collectionName, objToAdd); 
     404                                        //LOG.warn("Fetched object with ID " + id + " for " 
     405                                        //        + objDescription + " for reference " 
     406                                        //        + collectionName); 
     407                                    //} else { 
     408                                        //LOG.warn("Did not fetch object with ID " + id + " for " 
     409                                        //        + objDescription + " for reference " 
     410                                        //        + collectionName); 
    390411                                    } 
    391412                                } 
Note: See TracChangeset for help on using the changeset viewer.