Revision 891ced88
Added by Patrick Plitzner almost 9 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/specimen/abcd206/in/Abcd206ImportState.java | ||
---|---|---|
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.specimen.abcd206.in; |
|
12 |
|
|
13 |
import java.util.ArrayList; |
|
14 |
import java.util.List; |
|
15 |
|
|
16 |
import org.apache.log4j.Logger; |
|
17 |
import org.springframework.transaction.TransactionStatus; |
|
18 |
|
|
19 |
import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration; |
|
20 |
import eu.etaxonomy.cdm.io.common.CdmImportBase; |
|
21 |
import eu.etaxonomy.cdm.io.common.ImportStateBase; |
|
22 |
import eu.etaxonomy.cdm.model.common.OriginalSourceBase; |
|
23 |
import eu.etaxonomy.cdm.model.description.TaxonDescription; |
|
24 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit; |
|
25 |
import eu.etaxonomy.cdm.model.occurrence.FieldUnit; |
|
26 |
import eu.etaxonomy.cdm.model.reference.Reference; |
|
27 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
|
28 |
|
|
29 |
/** |
|
30 |
* @author a.mueller |
|
31 |
* @created 11.05.2009 |
|
32 |
* @version 1.0 |
|
33 |
*/ |
|
34 |
public class Abcd206ImportState extends ImportStateBase<Abcd206ImportConfigurator, CdmImportBase<Abcd206ImportConfigurator,Abcd206ImportState>>{ |
|
35 |
@SuppressWarnings("unused") |
|
36 |
private static final Logger logger = Logger.getLogger(Abcd206ImportState.class); |
|
37 |
|
|
38 |
private TransactionStatus tx; |
|
39 |
|
|
40 |
private ICdmApplicationConfiguration cdmRepository; |
|
41 |
|
|
42 |
private Classification classification = null; |
|
43 |
private Classification defaultClassification = null; |
|
44 |
private Reference<?> ref = null; |
|
45 |
|
|
46 |
private Abcd206DataHolder dataHolder; |
|
47 |
private DerivedUnit derivedUnitBase; |
|
48 |
private FieldUnit fieldUnit; |
|
49 |
|
|
50 |
private List<OriginalSourceBase<?>> associationRefs = new ArrayList<OriginalSourceBase<?>>(); |
|
51 |
private boolean associationSourcesSet=false; |
|
52 |
private List<OriginalSourceBase<?>> descriptionRefs = new ArrayList<OriginalSourceBase<?>>(); |
|
53 |
private boolean descriptionSourcesSet=false; |
|
54 |
private List<OriginalSourceBase<?>> derivedUnitSources = new ArrayList<OriginalSourceBase<?>>(); |
|
55 |
private boolean derivedUnitSourcesSet=false; |
|
56 |
private boolean descriptionGroupSet = false; |
|
57 |
private TaxonDescription descriptionGroup = null; |
|
58 |
|
|
59 |
//****************** CONSTRUCTOR ***************************************************/ |
|
60 |
|
|
61 |
public Abcd206ImportState(Abcd206ImportConfigurator config) { |
|
62 |
super(config); |
|
63 |
} |
|
64 |
|
|
65 |
//************************ GETTER / SETTER *****************************************/ |
|
66 |
|
|
67 |
public TransactionStatus getTx() { |
|
68 |
return tx; |
|
69 |
} |
|
70 |
|
|
71 |
public void setTx(TransactionStatus tx) { |
|
72 |
this.tx = tx; |
|
73 |
} |
|
74 |
|
|
75 |
public ICdmApplicationConfiguration getCdmRepository() { |
|
76 |
return cdmRepository; |
|
77 |
} |
|
78 |
|
|
79 |
public void setCdmRepository(ICdmApplicationConfiguration cdmRepository) { |
|
80 |
this.cdmRepository = cdmRepository; |
|
81 |
} |
|
82 |
|
|
83 |
public Classification getClassification() { |
|
84 |
return classification; |
|
85 |
} |
|
86 |
|
|
87 |
public void setClassification(Classification classification) { |
|
88 |
this.classification = classification; |
|
89 |
} |
|
90 |
|
|
91 |
public Classification getDefaultClassification() { |
|
92 |
return defaultClassification; |
|
93 |
} |
|
94 |
|
|
95 |
public void setDefaultClassification(Classification defaultClassification) { |
|
96 |
this.defaultClassification = defaultClassification; |
|
97 |
} |
|
98 |
|
|
99 |
public Reference<?> getRef() { |
|
100 |
return ref; |
|
101 |
} |
|
102 |
|
|
103 |
public void setRef(Reference<?> ref) { |
|
104 |
this.ref = ref; |
|
105 |
} |
|
106 |
|
|
107 |
public Abcd206DataHolder getDataHolder() { |
|
108 |
return dataHolder; |
|
109 |
} |
|
110 |
|
|
111 |
public void setDataHolder(Abcd206DataHolder dataHolder) { |
|
112 |
this.dataHolder = dataHolder; |
|
113 |
} |
|
114 |
|
|
115 |
public DerivedUnit getDerivedUnitBase() { |
|
116 |
return derivedUnitBase; |
|
117 |
} |
|
118 |
|
|
119 |
public void setDerivedUnitBase(DerivedUnit derivedUnitBase) { |
|
120 |
this.derivedUnitBase = derivedUnitBase; |
|
121 |
} |
|
122 |
|
|
123 |
public FieldUnit getFieldUnit() { |
|
124 |
return fieldUnit; |
|
125 |
} |
|
126 |
|
|
127 |
public void setFieldUnit(FieldUnit fieldUnit) { |
|
128 |
this.fieldUnit = fieldUnit; |
|
129 |
} |
|
130 |
|
|
131 |
public List<OriginalSourceBase<?>> getAssociationRefs() { |
|
132 |
return associationRefs; |
|
133 |
} |
|
134 |
|
|
135 |
public void setAssociationRefs(List<OriginalSourceBase<?>> associationRefs) { |
|
136 |
this.associationRefs = associationRefs; |
|
137 |
} |
|
138 |
|
|
139 |
public boolean isAssociationSourcesSet() { |
|
140 |
return associationSourcesSet; |
|
141 |
} |
|
142 |
|
|
143 |
public void setAssociationSourcesSet(boolean associationSourcesSet) { |
|
144 |
this.associationSourcesSet = associationSourcesSet; |
|
145 |
} |
|
146 |
|
|
147 |
public List<OriginalSourceBase<?>> getDescriptionRefs() { |
|
148 |
return descriptionRefs; |
|
149 |
} |
|
150 |
|
|
151 |
public void setDescriptionRefs(List<OriginalSourceBase<?>> descriptionRefs) { |
|
152 |
this.descriptionRefs = descriptionRefs; |
|
153 |
} |
|
154 |
|
|
155 |
public boolean isDescriptionSourcesSet() { |
|
156 |
return descriptionSourcesSet; |
|
157 |
} |
|
158 |
|
|
159 |
public void setDescriptionSourcesSet(boolean descriptionSourcesSet) { |
|
160 |
this.descriptionSourcesSet = descriptionSourcesSet; |
|
161 |
} |
|
162 |
|
|
163 |
public List<OriginalSourceBase<?>> getDerivedUnitSources() { |
|
164 |
return derivedUnitSources; |
|
165 |
} |
|
166 |
|
|
167 |
public void setDerivedUnitSources(List<OriginalSourceBase<?>> derivedUnitSources) { |
|
168 |
this.derivedUnitSources = derivedUnitSources; |
|
169 |
} |
|
170 |
|
|
171 |
public boolean isDerivedUnitSourcesSet() { |
|
172 |
return derivedUnitSourcesSet; |
|
173 |
} |
|
174 |
|
|
175 |
public void setDerivedUnitSourcesSet(boolean derivedUnitSourcesSet) { |
|
176 |
this.derivedUnitSourcesSet = derivedUnitSourcesSet; |
|
177 |
} |
|
178 |
|
|
179 |
public boolean isDescriptionGroupSet() { |
|
180 |
return descriptionGroupSet; |
|
181 |
} |
|
182 |
|
|
183 |
public void setDescriptionGroupSet(boolean descriptionGroupSet) { |
|
184 |
this.descriptionGroupSet = descriptionGroupSet; |
|
185 |
} |
|
186 |
|
|
187 |
public TaxonDescription getDescriptionGroup() { |
|
188 |
return descriptionGroup; |
|
189 |
} |
|
190 |
|
|
191 |
public void setDescriptionGroup(TaxonDescription descriptionGroup) { |
|
192 |
this.descriptionGroup = descriptionGroup; |
|
193 |
} |
|
194 |
|
|
195 |
|
|
196 |
|
|
197 |
} |
|
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.specimen.abcd206.in; |
|
12 |
|
|
13 |
import java.util.ArrayList; |
|
14 |
import java.util.List; |
|
15 |
|
|
16 |
import org.apache.log4j.Logger; |
|
17 |
import org.springframework.transaction.TransactionStatus; |
|
18 |
|
|
19 |
import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration; |
|
20 |
import eu.etaxonomy.cdm.io.common.CdmImportBase; |
|
21 |
import eu.etaxonomy.cdm.io.common.ImportStateBase; |
|
22 |
import eu.etaxonomy.cdm.model.common.OriginalSourceBase; |
|
23 |
import eu.etaxonomy.cdm.model.description.TaxonDescription; |
|
24 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit; |
|
25 |
import eu.etaxonomy.cdm.model.occurrence.FieldUnit; |
|
26 |
import eu.etaxonomy.cdm.model.reference.Reference; |
|
27 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
|
28 |
|
|
29 |
/** |
|
30 |
* @author a.mueller |
|
31 |
* @created 11.05.2009 |
|
32 |
* @version 1.0 |
|
33 |
*/ |
|
34 |
public class Abcd206ImportState extends ImportStateBase<Abcd206ImportConfigurator, CdmImportBase<Abcd206ImportConfigurator,Abcd206ImportState>>{ |
|
35 |
@SuppressWarnings("unused") |
|
36 |
private static final Logger logger = Logger.getLogger(Abcd206ImportState.class); |
|
37 |
|
|
38 |
private TransactionStatus tx; |
|
39 |
|
|
40 |
private ICdmApplicationConfiguration cdmRepository; |
|
41 |
|
|
42 |
private Classification classification = null; |
|
43 |
private Classification defaultClassification = null; |
|
44 |
private Reference<?> ref = null; |
|
45 |
|
|
46 |
private Abcd206DataHolder dataHolder; |
|
47 |
private DerivedUnit derivedUnitBase; |
|
48 |
private FieldUnit fieldUnit; |
|
49 |
|
|
50 |
private List<OriginalSourceBase<?>> associationRefs = new ArrayList<OriginalSourceBase<?>>(); |
|
51 |
private boolean associationSourcesSet=false; |
|
52 |
private List<OriginalSourceBase<?>> descriptionRefs = new ArrayList<OriginalSourceBase<?>>(); |
|
53 |
private boolean descriptionSourcesSet=false; |
|
54 |
private List<OriginalSourceBase<?>> derivedUnitSources = new ArrayList<OriginalSourceBase<?>>(); |
|
55 |
private boolean derivedUnitSourcesSet=false; |
|
56 |
private boolean descriptionGroupSet = false; |
|
57 |
private TaxonDescription descriptionGroup = null; |
|
58 |
|
|
59 |
//****************** CONSTRUCTOR ***************************************************/ |
|
60 |
|
|
61 |
public Abcd206ImportState(Abcd206ImportConfigurator config) { |
|
62 |
super(config); |
|
63 |
} |
|
64 |
|
|
65 |
//************************ GETTER / SETTER *****************************************/ |
|
66 |
|
|
67 |
public TransactionStatus getTx() { |
|
68 |
return tx; |
|
69 |
} |
|
70 |
|
|
71 |
public void setTx(TransactionStatus tx) { |
|
72 |
this.tx = tx; |
|
73 |
} |
|
74 |
|
|
75 |
public ICdmApplicationConfiguration getCdmRepository() { |
|
76 |
return cdmRepository; |
|
77 |
} |
|
78 |
|
|
79 |
public void setCdmRepository(ICdmApplicationConfiguration cdmRepository) { |
|
80 |
this.cdmRepository = cdmRepository; |
|
81 |
} |
|
82 |
|
|
83 |
public Classification getClassification() { |
|
84 |
return classification; |
|
85 |
} |
|
86 |
|
|
87 |
public void setClassification(Classification classification) { |
|
88 |
this.classification = classification; |
|
89 |
} |
|
90 |
|
|
91 |
public Classification getDefaultClassification() { |
|
92 |
return defaultClassification; |
|
93 |
} |
|
94 |
|
|
95 |
public void setDefaultClassification(Classification defaultClassification) { |
|
96 |
this.defaultClassification = defaultClassification; |
|
97 |
} |
|
98 |
|
|
99 |
public Reference<?> getRef() { |
|
100 |
return ref; |
|
101 |
} |
|
102 |
|
|
103 |
public void setRef(Reference<?> ref) { |
|
104 |
this.ref = ref; |
|
105 |
} |
|
106 |
|
|
107 |
public Abcd206DataHolder getDataHolder() { |
|
108 |
return dataHolder; |
|
109 |
} |
|
110 |
|
|
111 |
public void setDataHolder(Abcd206DataHolder dataHolder) { |
|
112 |
this.dataHolder = dataHolder; |
|
113 |
} |
|
114 |
|
|
115 |
public DerivedUnit getDerivedUnitBase() { |
|
116 |
return derivedUnitBase; |
|
117 |
} |
|
118 |
|
|
119 |
public void setDerivedUnitBase(DerivedUnit derivedUnitBase) { |
|
120 |
this.derivedUnitBase = derivedUnitBase; |
|
121 |
} |
|
122 |
|
|
123 |
public FieldUnit getFieldUnit() { |
|
124 |
return fieldUnit; |
|
125 |
} |
|
126 |
|
|
127 |
public void setFieldUnit(FieldUnit fieldUnit) { |
|
128 |
this.fieldUnit = fieldUnit; |
|
129 |
} |
|
130 |
|
|
131 |
public List<OriginalSourceBase<?>> getAssociationRefs() { |
|
132 |
return associationRefs; |
|
133 |
} |
|
134 |
|
|
135 |
public void setAssociationRefs(List<OriginalSourceBase<?>> associationRefs) { |
|
136 |
this.associationRefs = associationRefs; |
|
137 |
} |
|
138 |
|
|
139 |
public boolean isAssociationSourcesSet() { |
|
140 |
return associationSourcesSet; |
|
141 |
} |
|
142 |
|
|
143 |
public void setAssociationSourcesSet(boolean associationSourcesSet) { |
|
144 |
this.associationSourcesSet = associationSourcesSet; |
|
145 |
} |
|
146 |
|
|
147 |
public List<OriginalSourceBase<?>> getDescriptionRefs() { |
|
148 |
return descriptionRefs; |
|
149 |
} |
|
150 |
|
|
151 |
public void setDescriptionRefs(List<OriginalSourceBase<?>> descriptionRefs) { |
|
152 |
this.descriptionRefs = descriptionRefs; |
|
153 |
} |
|
154 |
|
|
155 |
public boolean isDescriptionSourcesSet() { |
|
156 |
return descriptionSourcesSet; |
|
157 |
} |
|
158 |
|
|
159 |
public void setDescriptionSourcesSet(boolean descriptionSourcesSet) { |
|
160 |
this.descriptionSourcesSet = descriptionSourcesSet; |
|
161 |
} |
|
162 |
|
|
163 |
public List<OriginalSourceBase<?>> getDerivedUnitSources() { |
|
164 |
return derivedUnitSources; |
|
165 |
} |
|
166 |
|
|
167 |
public void setDerivedUnitSources(List<OriginalSourceBase<?>> derivedUnitSources) { |
|
168 |
this.derivedUnitSources = derivedUnitSources; |
|
169 |
} |
|
170 |
|
|
171 |
public boolean isDerivedUnitSourcesSet() { |
|
172 |
return derivedUnitSourcesSet; |
|
173 |
} |
|
174 |
|
|
175 |
public void setDerivedUnitSourcesSet(boolean derivedUnitSourcesSet) { |
|
176 |
this.derivedUnitSourcesSet = derivedUnitSourcesSet; |
|
177 |
} |
|
178 |
|
|
179 |
public boolean isDescriptionGroupSet() { |
|
180 |
return descriptionGroupSet; |
|
181 |
} |
|
182 |
|
|
183 |
public void setDescriptionGroupSet(boolean descriptionGroupSet) { |
|
184 |
this.descriptionGroupSet = descriptionGroupSet; |
|
185 |
} |
|
186 |
|
|
187 |
public TaxonDescription getDescriptionGroup() { |
|
188 |
return descriptionGroup; |
|
189 |
} |
|
190 |
|
|
191 |
public void setDescriptionGroup(TaxonDescription descriptionGroup) { |
|
192 |
this.descriptionGroup = descriptionGroup; |
|
193 |
} |
|
194 |
|
|
195 |
|
|
196 |
|
|
197 |
} |
Also available in: Unified diff
??