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
|
|
38
|
/* Highest taxon index in the FauEu database */
|
39
|
// private int highestTaxonIndex = 305755;
|
40
|
/* Max number of taxa to be saved with one service call */
|
41
|
// private int limit = 20000;
|
42
|
|
43
|
|
44
|
// /**
|
45
|
// * @return the limit
|
46
|
// */
|
47
|
// public int getLimit() {
|
48
|
// return limit;
|
49
|
// }
|
50
|
//
|
51
|
// /**
|
52
|
// * @param limit the limit to set
|
53
|
// */
|
54
|
// public void setLimit(int limit) {
|
55
|
// this.limit = limit;
|
56
|
// }
|
57
|
|
58
|
|
59
|
/**
|
60
|
* @return the fauEuTaxonMap
|
61
|
*/
|
62
|
public Map<Integer, FaunaEuropaeaTaxon> getFauEuTaxonMap() {
|
63
|
return fauEuTaxonMap;
|
64
|
}
|
65
|
|
66
|
/**
|
67
|
* @param fauEuTaxonMap the fauEuTaxonMap to set
|
68
|
*/
|
69
|
public void setFauEuTaxonMap(Map<Integer, FaunaEuropaeaTaxon> fauEuTaxonMap) {
|
70
|
this.fauEuTaxonMap = fauEuTaxonMap;
|
71
|
}
|
72
|
|
73
|
/**
|
74
|
* @return the childParentMap
|
75
|
*/
|
76
|
public Map<UUID, UUID> getChildParentMap() {
|
77
|
return childParentMap;
|
78
|
}
|
79
|
|
80
|
/**
|
81
|
* @param childParentMap the childParentMap to set
|
82
|
*/
|
83
|
public void setChildParentMap(Map<UUID, UUID> childParentMap) {
|
84
|
this.childParentMap = childParentMap;
|
85
|
}
|
86
|
|
87
|
}
|