1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.cdm.io.pesi.faunaEuropaea;
|
12
|
|
13
|
import java.util.HashMap;
|
14
|
import java.util.Map;
|
15
|
import java.util.UUID;
|
16
|
|
17
|
import org.apache.log4j.Logger;
|
18
|
|
19
|
import eu.etaxonomy.cdm.io.common.ImportStateBase;
|
20
|
|
21
|
/**
|
22
|
* @author a.mueller
|
23
|
* @created 11.05.2009
|
24
|
* @version 1.0
|
25
|
*/
|
26
|
public class FaunaEuropaeaImportState extends ImportStateBase<FaunaEuropaeaImportConfigurator, FaunaEuropaeaImportBase>{
|
27
|
@SuppressWarnings("unused")
|
28
|
private static final Logger logger = Logger.getLogger(FaunaEuropaeaImportState.class);
|
29
|
|
30
|
|
31
|
public FaunaEuropaeaImportState(FaunaEuropaeaImportConfigurator config) {
|
32
|
super(config);
|
33
|
}
|
34
|
|
35
|
private Map<Integer, FaunaEuropaeaTaxon> fauEuTaxonMap = new HashMap();
|
36
|
private Map<UUID, UUID> childParentMap = new HashMap();
|
37
|
private Map<Integer, UUID> agentUUIDMap = new HashMap();
|
38
|
|
39
|
/* Highest taxon index in the FauEu database */
|
40
|
// private int highestTaxonIndex = 305755;
|
41
|
/* Max number of taxa to be saved with one service call */
|
42
|
// private int limit = 20000;
|
43
|
|
44
|
|
45
|
// /**
|
46
|
// * @return the limit
|
47
|
// */
|
48
|
// public int getLimit() {
|
49
|
// return limit;
|
50
|
// }
|
51
|
//
|
52
|
// /**
|
53
|
// * @param limit the limit to set
|
54
|
// */
|
55
|
// public void setLimit(int limit) {
|
56
|
// this.limit = limit;
|
57
|
// }
|
58
|
|
59
|
|
60
|
/**
|
61
|
* @return the fauEuTaxonMap
|
62
|
*/
|
63
|
public Map<Integer, FaunaEuropaeaTaxon> getFauEuTaxonMap() {
|
64
|
return fauEuTaxonMap;
|
65
|
}
|
66
|
|
67
|
/**
|
68
|
* @param fauEuTaxonMap the fauEuTaxonMap to set
|
69
|
*/
|
70
|
public void setFauEuTaxonMap(Map<Integer, FaunaEuropaeaTaxon> fauEuTaxonMap) {
|
71
|
this.fauEuTaxonMap = fauEuTaxonMap;
|
72
|
}
|
73
|
|
74
|
/**
|
75
|
* @return the childParentMap
|
76
|
*/
|
77
|
public Map<UUID, UUID> getChildParentMap() {
|
78
|
return childParentMap;
|
79
|
}
|
80
|
|
81
|
/**
|
82
|
* @param childParentMap the childParentMap to set
|
83
|
*/
|
84
|
public void setChildParentMap(Map<UUID, UUID> childParentMap) {
|
85
|
this.childParentMap = childParentMap;
|
86
|
}
|
87
|
|
88
|
/**
|
89
|
* @return the agentMap
|
90
|
*/
|
91
|
public Map<Integer, UUID> getAgentMap() {
|
92
|
return agentUUIDMap;
|
93
|
}
|
94
|
/**
|
95
|
* @return the agentMap
|
96
|
*/
|
97
|
public void setAgentMap(Map<Integer, UUID> agentUUIDMap) {
|
98
|
this.agentUUIDMap = agentUUIDMap;
|
99
|
}
|
100
|
}
|