cleanup
[cdmlib-apps.git] / app-import / src / main / java / eu / etaxonomy / cdm / io / mexico / MexicoEfloraImportState.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.cdm.io.mexico;
11
12 import java.util.HashMap;
13 import java.util.Map;
14 import java.util.UUID;
15
16 import org.apache.log4j.Logger;
17
18 import eu.etaxonomy.cdm.io.common.DbImportStateBase;
19 import eu.etaxonomy.cdm.model.description.Feature;
20 import eu.etaxonomy.cdm.model.description.State;
21 import eu.etaxonomy.cdm.model.location.NamedArea;
22 import eu.etaxonomy.cdm.model.term.DefinedTermBase;
23
24 /**
25 * State for Mexico Eflora import.
26 *
27 * @author a.mueller
28 * @date 29.01.2022
29 *
30 */
31 public class MexicoEfloraImportState
32 extends DbImportStateBase<MexicoEfloraImportConfigurator, MexicoEfloraImportState>{
33
34 @SuppressWarnings("unused")
35 private static final Logger logger = Logger.getLogger(MexicoEfloraImportState.class);
36
37 private Map<String, DefinedTermBase> dbCdmDefTermMap = new HashMap<>();
38
39 private Map<Integer,Feature> featureMap = new HashMap<>();
40 private Map<Integer,State> stateMap = new HashMap<>();
41 private Map<Integer,NamedArea> areaMap = new HashMap<>();
42
43 private Map<Integer,UUID> referenceUuidMap = new HashMap<>();
44 private Map<Integer,String> refDetailMap = new HashMap<>();
45
46 private Map<String,UUID> commonNameMap = new HashMap<>();
47 private Map<String,UUID> distributionMap = new HashMap<>();
48
49
50 public MexicoEfloraImportState(MexicoEfloraImportConfigurator config) {
51 super(config);
52 }
53
54 public Map<String, DefinedTermBase> getDbCdmDefinedTermMap(){
55 return this.dbCdmDefTermMap;
56 }
57
58 public void putDefinedTermToMap(String tableName, String id, DefinedTermBase term){
59 this.dbCdmDefTermMap.put(tableName + "_" + id, term);
60 }
61
62 public void putDefinedTermToMap(String tableName, int id, DefinedTermBase term){
63 putDefinedTermToMap(tableName, String.valueOf(id), term);
64 }
65
66 public Map<Integer,Feature> getFeatureMap() {
67 return featureMap;
68 }
69
70 public Map<Integer,State> getStateMap() {
71 return stateMap;
72 }
73
74 public Map<Integer,NamedArea> getAreaMap() {
75 return areaMap;
76 }
77
78 public Map<Integer,UUID> getReferenceUuidMap() {
79 return referenceUuidMap;
80 }
81 public Map<Integer,String> getRefDetailMap() {
82 return refDetailMap;
83 }
84
85 public Map<String,UUID> getCommonNameMap() {
86 return commonNameMap;
87 }
88 public Map<String,UUID> getDistributionMap() {
89 return distributionMap;
90 }
91
92
93
94 }