1 package fr.ifremer.tutti.persistence.entities.protocol;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 import fr.ifremer.tutti.persistence.entities.TuttiEntityBean;
28 import fr.ifremer.tutti.persistence.entities.referential.CaracteristicQualitativeValue;
29 import java.util.Collection;
30 import java.util.LinkedList;
31 import java.util.List;
32 import javax.annotation.Generated;
33
34 @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Fri Jan 06 18:31:47 CET 2017")
35 public abstract class AbstractSpeciesProtocolBean extends TuttiEntityBean implements SpeciesProtocol {
36
37 private static final long serialVersionUID = 3486411950096802662L;
38
39 protected Integer speciesReferenceTaxonId;
40
41 protected String speciesSurveyCode;
42
43 protected String lengthStepPmfmId;
44
45 protected boolean weightEnabled;
46
47 protected Float lengthStep;
48
49 protected boolean madeFromAReferentTaxon;
50
51 protected List<Integer> mandatorySampleCategoryId;
52
53 protected Rtp rtpMale;
54
55 protected Rtp rtpFemale;
56
57 protected Rtp rtpUndefined;
58
59 protected boolean individualObservationEnabled;
60
61 protected String maturityPmfmId;
62
63 protected CaracteristicQualitativeValue calcifiedPiecesSamplingType;
64
65 protected Collection<CalcifiedPiecesSamplingDefinition> calcifiedPiecesSamplingDefinition;
66
67 @Override
68 public Integer getSpeciesReferenceTaxonId() {
69 return speciesReferenceTaxonId;
70 }
71
72 @Override
73 public void setSpeciesReferenceTaxonId(Integer speciesReferenceTaxonId) {
74 this.speciesReferenceTaxonId = speciesReferenceTaxonId;
75 }
76
77 @Override
78 public String getSpeciesSurveyCode() {
79 return speciesSurveyCode;
80 }
81
82 @Override
83 public void setSpeciesSurveyCode(String speciesSurveyCode) {
84 this.speciesSurveyCode = speciesSurveyCode;
85 }
86
87 @Override
88 public String getLengthStepPmfmId() {
89 return lengthStepPmfmId;
90 }
91
92 @Override
93 public void setLengthStepPmfmId(String lengthStepPmfmId) {
94 this.lengthStepPmfmId = lengthStepPmfmId;
95 }
96
97 @Override
98 public boolean isWeightEnabled() {
99 return weightEnabled;
100 }
101
102 @Override
103 public void setWeightEnabled(boolean weightEnabled) {
104 this.weightEnabled = weightEnabled;
105 }
106
107 @Override
108 public Float getLengthStep() {
109 return lengthStep;
110 }
111
112 @Override
113 public void setLengthStep(Float lengthStep) {
114 this.lengthStep = lengthStep;
115 }
116
117 @Override
118 public boolean isMadeFromAReferentTaxon() {
119 return madeFromAReferentTaxon;
120 }
121
122 @Override
123 public void setMadeFromAReferentTaxon(boolean madeFromAReferentTaxon) {
124 this.madeFromAReferentTaxon = madeFromAReferentTaxon;
125 }
126
127 @Override
128 public Integer getMandatorySampleCategoryId(int index) {
129 Integer o = getChild(mandatorySampleCategoryId, index);
130 return o;
131 }
132
133 @Override
134 public boolean isMandatorySampleCategoryIdEmpty() {
135 return mandatorySampleCategoryId == null || mandatorySampleCategoryId.isEmpty();
136 }
137
138 @Override
139 public int sizeMandatorySampleCategoryId() {
140 return mandatorySampleCategoryId == null ? 0 : mandatorySampleCategoryId.size();
141 }
142
143 @Override
144 public void addMandatorySampleCategoryId(Integer mandatorySampleCategoryId) {
145 getMandatorySampleCategoryId().add(mandatorySampleCategoryId);
146 }
147
148 @Override
149 public void addAllMandatorySampleCategoryId(Collection<Integer> mandatorySampleCategoryId) {
150 getMandatorySampleCategoryId().addAll(mandatorySampleCategoryId);
151 }
152
153 @Override
154 public boolean removeMandatorySampleCategoryId(Integer mandatorySampleCategoryId) {
155 boolean removed = getMandatorySampleCategoryId().remove(mandatorySampleCategoryId);
156 return removed;
157 }
158
159 @Override
160 public boolean removeAllMandatorySampleCategoryId(Collection<Integer> mandatorySampleCategoryId) {
161 boolean removed = getMandatorySampleCategoryId().removeAll(mandatorySampleCategoryId);
162 return removed;
163 }
164
165 @Override
166 public boolean containsMandatorySampleCategoryId(Integer mandatorySampleCategoryId) {
167 boolean contains = getMandatorySampleCategoryId().contains(mandatorySampleCategoryId);
168 return contains;
169 }
170
171 @Override
172 public boolean containsAllMandatorySampleCategoryId(Collection<Integer> mandatorySampleCategoryId) {
173 boolean contains = getMandatorySampleCategoryId().containsAll(mandatorySampleCategoryId);
174 return contains;
175 }
176
177 @Override
178 public List<Integer> getMandatorySampleCategoryId() {
179 if (mandatorySampleCategoryId == null) {
180 mandatorySampleCategoryId = new LinkedList<Integer>();
181 }
182 return mandatorySampleCategoryId;
183 }
184
185 @Override
186 public void setMandatorySampleCategoryId(List<Integer> mandatorySampleCategoryId) {
187 this.mandatorySampleCategoryId = mandatorySampleCategoryId;
188 }
189
190 @Override
191 public Rtp getRtpMale() {
192 return rtpMale;
193 }
194
195 @Override
196 public void setRtpMale(Rtp rtpMale) {
197 this.rtpMale = rtpMale;
198 }
199
200 @Override
201 public Rtp getRtpFemale() {
202 return rtpFemale;
203 }
204
205 @Override
206 public void setRtpFemale(Rtp rtpFemale) {
207 this.rtpFemale = rtpFemale;
208 }
209
210 @Override
211 public Rtp getRtpUndefined() {
212 return rtpUndefined;
213 }
214
215 @Override
216 public void setRtpUndefined(Rtp rtpUndefined) {
217 this.rtpUndefined = rtpUndefined;
218 }
219
220 @Override
221 public boolean isIndividualObservationEnabled() {
222 return individualObservationEnabled;
223 }
224
225 @Override
226 public void setIndividualObservationEnabled(boolean individualObservationEnabled) {
227 this.individualObservationEnabled = individualObservationEnabled;
228 }
229
230 @Override
231 public String getMaturityPmfmId() {
232 return maturityPmfmId;
233 }
234
235 @Override
236 public void setMaturityPmfmId(String maturityPmfmId) {
237 this.maturityPmfmId = maturityPmfmId;
238 }
239
240 @Override
241 public CaracteristicQualitativeValue getCalcifiedPiecesSamplingType() {
242 return calcifiedPiecesSamplingType;
243 }
244
245 @Override
246 public void setCalcifiedPiecesSamplingType(CaracteristicQualitativeValue calcifiedPiecesSamplingType) {
247 this.calcifiedPiecesSamplingType = calcifiedPiecesSamplingType;
248 }
249
250 @Override
251 public CalcifiedPiecesSamplingDefinition getCalcifiedPiecesSamplingDefinition(int index) {
252 CalcifiedPiecesSamplingDefinition o = getChild(calcifiedPiecesSamplingDefinition, index);
253 return o;
254 }
255
256 @Override
257 public boolean isCalcifiedPiecesSamplingDefinitionEmpty() {
258 return calcifiedPiecesSamplingDefinition == null || calcifiedPiecesSamplingDefinition.isEmpty();
259 }
260
261 @Override
262 public int sizeCalcifiedPiecesSamplingDefinition() {
263 return calcifiedPiecesSamplingDefinition == null ? 0 : calcifiedPiecesSamplingDefinition.size();
264 }
265
266 @Override
267 public void addCalcifiedPiecesSamplingDefinition(CalcifiedPiecesSamplingDefinition calcifiedPiecesSamplingDefinition) {
268 getCalcifiedPiecesSamplingDefinition().add(calcifiedPiecesSamplingDefinition);
269 }
270
271 @Override
272 public void addAllCalcifiedPiecesSamplingDefinition(Collection<CalcifiedPiecesSamplingDefinition> calcifiedPiecesSamplingDefinition) {
273 getCalcifiedPiecesSamplingDefinition().addAll(calcifiedPiecesSamplingDefinition);
274 }
275
276 @Override
277 public boolean removeCalcifiedPiecesSamplingDefinition(CalcifiedPiecesSamplingDefinition calcifiedPiecesSamplingDefinition) {
278 boolean removed = getCalcifiedPiecesSamplingDefinition().remove(calcifiedPiecesSamplingDefinition);
279 return removed;
280 }
281
282 @Override
283 public boolean removeAllCalcifiedPiecesSamplingDefinition(Collection<CalcifiedPiecesSamplingDefinition> calcifiedPiecesSamplingDefinition) {
284 boolean removed = getCalcifiedPiecesSamplingDefinition().removeAll(calcifiedPiecesSamplingDefinition);
285 return removed;
286 }
287
288 @Override
289 public boolean containsCalcifiedPiecesSamplingDefinition(CalcifiedPiecesSamplingDefinition calcifiedPiecesSamplingDefinition) {
290 boolean contains = getCalcifiedPiecesSamplingDefinition().contains(calcifiedPiecesSamplingDefinition);
291 return contains;
292 }
293
294 @Override
295 public boolean containsAllCalcifiedPiecesSamplingDefinition(Collection<CalcifiedPiecesSamplingDefinition> calcifiedPiecesSamplingDefinition) {
296 boolean contains = getCalcifiedPiecesSamplingDefinition().containsAll(calcifiedPiecesSamplingDefinition);
297 return contains;
298 }
299
300 @Override
301 public Collection<CalcifiedPiecesSamplingDefinition> getCalcifiedPiecesSamplingDefinition() {
302 if (calcifiedPiecesSamplingDefinition == null) {
303 calcifiedPiecesSamplingDefinition = new LinkedList<CalcifiedPiecesSamplingDefinition>();
304 }
305 return calcifiedPiecesSamplingDefinition;
306 }
307
308 @Override
309 public void setCalcifiedPiecesSamplingDefinition(Collection<CalcifiedPiecesSamplingDefinition> calcifiedPiecesSamplingDefinition) {
310 this.calcifiedPiecesSamplingDefinition = calcifiedPiecesSamplingDefinition;
311 }
312
313 }