Revision c9fda605
Added by Andreas Müller almost 16 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/berlinModel/BerlinModelReferenceIO.java | ||
---|---|---|
482 | 482 |
success = false; |
483 | 483 |
return success; |
484 | 484 |
} |
485 |
|
|
485 |
//change conceptRef uuid |
|
486 |
ReferenceBase sec = referenceStore.get(bmiConfig.getSourceSecId()); |
|
487 |
if (sec == null){ |
|
488 |
sec = nomRefStore.get(bmiConfig.getSourceSecId()); |
|
489 |
} |
|
490 |
if (sec != null){ |
|
491 |
sec.setUuid(bmiConfig.getSecUuid()); |
|
492 |
logger.info("SecUuid changed to: " + bmiConfig.getSecUuid()); |
|
493 |
} |
|
486 | 494 |
} // end resultSet |
487 | 495 |
//save and store in map |
488 | 496 |
logger.info("Save nomenclatural references (" + nomRefCount + ")"); |
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/ImportConfiguratorBase.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.cdm.io.common; |
11 | 11 |
|
12 |
import java.util.UUID; |
|
13 |
|
|
12 | 14 |
import org.apache.log4j.Logger; |
13 | 15 |
|
14 | 16 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
... | ... | |
57 | 59 |
//Nomenclatural Code |
58 | 60 |
private NomenclaturalCode nomenclaturalCode = null; |
59 | 61 |
|
62 |
//uuid of concept reference |
|
63 |
private UUID secUuid = UUID.randomUUID(); |
|
64 |
private int sourceSecId = -1; |
|
65 |
|
|
60 | 66 |
private Object source; |
61 | 67 |
protected ReferenceBase sourceReference; |
62 | 68 |
private ICdmDataSource destination; |
... | ... | |
362 | 368 |
} |
363 | 369 |
|
364 | 370 |
|
371 |
/** |
|
372 |
* @return the secUuid |
|
373 |
*/ |
|
374 |
public UUID getSecUuid() { |
|
375 |
return secUuid; |
|
376 |
} |
|
365 | 377 |
|
366 | 378 |
|
379 |
/** |
|
380 |
* @param secUuid the secUuid to set |
|
381 |
*/ |
|
382 |
public void setSecUuid(UUID secUuid) { |
|
383 |
this.secUuid = secUuid; |
|
384 |
} |
|
367 | 385 |
|
386 |
/** |
|
387 |
* @return the sourceSecId |
|
388 |
*/ |
|
389 |
public int getSourceSecId() { |
|
390 |
return sourceSecId; |
|
391 |
} |
|
392 |
|
|
393 |
/** |
|
394 |
* @param sourceSecId the sourceSecId to set |
|
395 |
*/ |
|
396 |
public void setSourceSecId(int sourceSecId) { |
|
397 |
this.sourceSecId = sourceSecId; |
|
398 |
} |
|
368 | 399 |
|
369 | 400 |
} |
Also available in: Unified diff