Changeset 22648
- Timestamp:
- 02/09/10 11:48:05 (17 months ago)
- 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 237 237 srcObj.getFieldProxy(fieldName); 238 238 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 } 239 248 if (idMap.get(sourceTarget.getId()) == null) { 240 249 sourceTarget = ((ProxyReference) sourceTarget).getObject(); -
branches/mnw21/pathquery_refactor/intermine/integrate/main/src/org/intermine/objectstore/fastcollections/ObjectStoreFastCollectionsForTranslatorImpl.java
r22597 r22648 336 336 : froms.entrySet()) { 337 337 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 //} 338 345 Map<String, Object> collectionsToPopulate = fromEntry.getValue(); 339 346 for (Map.Entry<String, Object> collectionEntry … … 354 361 objToAdd = new ProxyReference(os, idToAdd, 355 362 InterMineObject.class); 363 //LOG.warn("Did not fetch object with ID " + idToAdd 364 // + " for " + objDescription 365 // + " for collection " + collectionName); 356 366 } else { 357 367 ObjectStoreTranslatingImpl osti = … … 377 387 throw new ObjectStoreException(message); 378 388 } 389 //} else { 390 //LOG.warn("Fetched object with ID " + idToAdd 391 // + " for " + objDescription 392 // + " for collection " + collectionName); 379 393 } 380 394 substituteCollection.add(objToAdd); … … 388 402 if (objToAdd != null) { 389 403 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); 390 411 } 391 412 }
Note: See TracChangeset
for help on using the changeset viewer.
