Revision c385a1b7
Added by Andreas Müller almost 6 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelImportBase.java | ||
---|---|---|
34 | 34 |
import eu.etaxonomy.cdm.model.location.Country; |
35 | 35 |
import eu.etaxonomy.cdm.model.location.NamedArea; |
36 | 36 |
import eu.etaxonomy.cdm.model.location.NamedAreaType; |
37 |
import eu.etaxonomy.cdm.model.name.Rank; |
|
38 |
import eu.etaxonomy.cdm.model.name.TaxonNameFactory; |
|
39 | 37 |
import eu.etaxonomy.cdm.model.reference.Reference; |
40 | 38 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
41 | 39 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
... | ... | |
44 | 42 |
* @author a.mueller |
45 | 43 |
* @since 20.03.2008 |
46 | 44 |
*/ |
47 |
public abstract class BerlinModelImportBase extends DbImportBase<BerlinModelImportState, BerlinModelImportConfigurator> implements ICdmIO<BerlinModelImportState>, IPartitionedIO<BerlinModelImportState> { |
|
45 |
public abstract class BerlinModelImportBase |
|
46 |
extends DbImportBase<BerlinModelImportState, BerlinModelImportConfigurator> |
|
47 |
implements ICdmIO<BerlinModelImportState>, IPartitionedIO<BerlinModelImportState> { |
|
48 | 48 |
private static final long serialVersionUID = -4982506434258587864L; |
49 | 49 |
private static final Logger logger = Logger.getLogger(BerlinModelImportBase.class); |
50 | 50 |
|
... | ... | |
192 | 192 |
TaxonBase<?> taxonBase = taxonMap.get(String.valueOf(taxonId)); |
193 | 193 |
|
194 | 194 |
//TODO for testing |
195 |
if (taxonBase == null && ! state.getConfig().isDoTaxa()){ |
|
196 |
taxonBase = Taxon.NewInstance(TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES()), null); |
|
197 |
} |
|
195 |
// if (taxonBase == null && ! state.getConfig().isDoTaxa()){
|
|
196 |
// taxonBase = Taxon.NewInstance(TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES()), null);
|
|
197 |
// }
|
|
198 | 198 |
|
199 | 199 |
Taxon taxon; |
200 | 200 |
if ( taxonBase instanceof Taxon ) { |
... | ... | |
376 | 376 |
return getNamedArea(state, BerlinModelTransformer.uuidTerceira, "Menorca", "Euro+Med area 'Menorca'", "Bl(N)", null, null); |
377 | 377 |
} |
378 | 378 |
|
379 |
logger.warn("Area(em: '" + em + "', tdwg: '" + tdwg +"') could not be found for occurrence import");
|
|
379 |
logger.warn("Area(em: '" + em + "', tdwg: '" + tdwg +"') could not be found"); |
|
380 | 380 |
|
381 | 381 |
return null; |
382 | 382 |
} |
Also available in: Unified diff
latest changes to BgbmInstancesUpdater, E+M Import, GermanSL Import, etct