1 package fr.ifremer.tutti.persistence.entities.data;
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.CaracteristicMap;
28 import fr.ifremer.tutti.persistence.entities.TuttiEntityBean;
29 import fr.ifremer.tutti.persistence.entities.referential.Gear;
30 import fr.ifremer.tutti.persistence.entities.referential.Person;
31 import fr.ifremer.tutti.persistence.entities.referential.TuttiLocation;
32 import fr.ifremer.tutti.persistence.entities.referential.Vessel;
33 import java.util.Collection;
34 import java.util.Date;
35 import java.util.LinkedList;
36 import java.util.List;
37 import javax.annotation.Generated;
38
39 @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Fri Jan 06 18:31:47 CET 2017")
40 public abstract class AbstractFishingOperationBean extends TuttiEntityBean implements FishingOperation {
41
42 private static final long serialVersionUID = 3918757535832892722L;
43
44 protected String stationNumber;
45
46 protected Integer fishingOperationNumber;
47
48 protected Float gearShootingStartLatitude;
49
50 protected Float gearShootingStartLongitude;
51
52 protected Date gearShootingStartDate;
53
54 protected Float gearShootingEndLatitude;
55
56 protected Float gearShootingEndLongitude;
57
58 protected Date gearShootingEndDate;
59
60 protected boolean fishingOperationRectiligne;
61
62 protected Integer trawlDistance;
63
64 protected Boolean fishingOperationValid;
65
66 protected boolean planktonObserved;
67
68 protected CaracteristicMap vesselUseFeatures;
69
70 protected CaracteristicMap gearUseFeatures;
71
72 protected boolean accidentalObserved;
73
74 protected String multirigAggregation;
75
76 protected String comment;
77
78 protected String synchronizationStatus;
79
80 protected Cruise cruise;
81
82 protected List<Person> recorderPerson;
83
84 protected Gear gear;
85
86 protected Vessel vessel;
87
88 protected TuttiLocation strata;
89
90 protected TuttiLocation subStrata;
91
92 protected TuttiLocation location;
93
94 protected List<Vessel> secondaryVessel;
95
96 @Override
97 public String getStationNumber() {
98 return stationNumber;
99 }
100
101 @Override
102 public void setStationNumber(String stationNumber) {
103 this.stationNumber = stationNumber;
104 }
105
106 @Override
107 public Integer getFishingOperationNumber() {
108 return fishingOperationNumber;
109 }
110
111 @Override
112 public void setFishingOperationNumber(Integer fishingOperationNumber) {
113 this.fishingOperationNumber = fishingOperationNumber;
114 }
115
116 @Override
117 public Float getGearShootingStartLatitude() {
118 return gearShootingStartLatitude;
119 }
120
121 @Override
122 public void setGearShootingStartLatitude(Float gearShootingStartLatitude) {
123 this.gearShootingStartLatitude = gearShootingStartLatitude;
124 }
125
126 @Override
127 public Float getGearShootingStartLongitude() {
128 return gearShootingStartLongitude;
129 }
130
131 @Override
132 public void setGearShootingStartLongitude(Float gearShootingStartLongitude) {
133 this.gearShootingStartLongitude = gearShootingStartLongitude;
134 }
135
136 @Override
137 public Date getGearShootingStartDate() {
138 return gearShootingStartDate;
139 }
140
141 @Override
142 public void setGearShootingStartDate(Date gearShootingStartDate) {
143 this.gearShootingStartDate = gearShootingStartDate;
144 }
145
146 @Override
147 public Float getGearShootingEndLatitude() {
148 return gearShootingEndLatitude;
149 }
150
151 @Override
152 public void setGearShootingEndLatitude(Float gearShootingEndLatitude) {
153 this.gearShootingEndLatitude = gearShootingEndLatitude;
154 }
155
156 @Override
157 public Float getGearShootingEndLongitude() {
158 return gearShootingEndLongitude;
159 }
160
161 @Override
162 public void setGearShootingEndLongitude(Float gearShootingEndLongitude) {
163 this.gearShootingEndLongitude = gearShootingEndLongitude;
164 }
165
166 @Override
167 public Date getGearShootingEndDate() {
168 return gearShootingEndDate;
169 }
170
171 @Override
172 public void setGearShootingEndDate(Date gearShootingEndDate) {
173 this.gearShootingEndDate = gearShootingEndDate;
174 }
175
176 @Override
177 public boolean isFishingOperationRectiligne() {
178 return fishingOperationRectiligne;
179 }
180
181 @Override
182 public void setFishingOperationRectiligne(boolean fishingOperationRectiligne) {
183 this.fishingOperationRectiligne = fishingOperationRectiligne;
184 }
185
186 @Override
187 public Integer getTrawlDistance() {
188 return trawlDistance;
189 }
190
191 @Override
192 public void setTrawlDistance(Integer trawlDistance) {
193 this.trawlDistance = trawlDistance;
194 }
195
196 @Override
197 public Boolean getFishingOperationValid() {
198 return fishingOperationValid;
199 }
200
201 @Override
202 public void setFishingOperationValid(Boolean fishingOperationValid) {
203 this.fishingOperationValid = fishingOperationValid;
204 }
205
206 @Override
207 public boolean isPlanktonObserved() {
208 return planktonObserved;
209 }
210
211 @Override
212 public void setPlanktonObserved(boolean planktonObserved) {
213 this.planktonObserved = planktonObserved;
214 }
215
216 @Override
217 public CaracteristicMap getVesselUseFeatures() {
218 return vesselUseFeatures;
219 }
220
221 @Override
222 public void setVesselUseFeatures(CaracteristicMap vesselUseFeatures) {
223 this.vesselUseFeatures = vesselUseFeatures;
224 }
225
226 @Override
227 public CaracteristicMap getGearUseFeatures() {
228 return gearUseFeatures;
229 }
230
231 @Override
232 public void setGearUseFeatures(CaracteristicMap gearUseFeatures) {
233 this.gearUseFeatures = gearUseFeatures;
234 }
235
236 @Override
237 public boolean isAccidentalObserved() {
238 return accidentalObserved;
239 }
240
241 @Override
242 public void setAccidentalObserved(boolean accidentalObserved) {
243 this.accidentalObserved = accidentalObserved;
244 }
245
246 @Override
247 public String getMultirigAggregation() {
248 return multirigAggregation;
249 }
250
251 @Override
252 public void setMultirigAggregation(String multirigAggregation) {
253 this.multirigAggregation = multirigAggregation;
254 }
255
256 @Override
257 public String getComment() {
258 return comment;
259 }
260
261 @Override
262 public void setComment(String comment) {
263 this.comment = comment;
264 }
265
266 @Override
267 public String getSynchronizationStatus() {
268 return synchronizationStatus;
269 }
270
271 @Override
272 public void setSynchronizationStatus(String synchronizationStatus) {
273 this.synchronizationStatus = synchronizationStatus;
274 }
275
276 @Override
277 public Cruise getCruise() {
278 return cruise;
279 }
280
281 @Override
282 public void setCruise(Cruise cruise) {
283 this.cruise = cruise;
284 }
285
286 @Override
287 public Person getRecorderPerson(int index) {
288 Person o = getChild(recorderPerson, index);
289 return o;
290 }
291
292 @Override
293 public boolean isRecorderPersonEmpty() {
294 return recorderPerson == null || recorderPerson.isEmpty();
295 }
296
297 @Override
298 public int sizeRecorderPerson() {
299 return recorderPerson == null ? 0 : recorderPerson.size();
300 }
301
302 @Override
303 public void addRecorderPerson(Person recorderPerson) {
304 getRecorderPerson().add(recorderPerson);
305 }
306
307 @Override
308 public void addAllRecorderPerson(Collection<Person> recorderPerson) {
309 getRecorderPerson().addAll(recorderPerson);
310 }
311
312 @Override
313 public boolean removeRecorderPerson(Person recorderPerson) {
314 boolean removed = getRecorderPerson().remove(recorderPerson);
315 return removed;
316 }
317
318 @Override
319 public boolean removeAllRecorderPerson(Collection<Person> recorderPerson) {
320 boolean removed = getRecorderPerson().removeAll(recorderPerson);
321 return removed;
322 }
323
324 @Override
325 public boolean containsRecorderPerson(Person recorderPerson) {
326 boolean contains = getRecorderPerson().contains(recorderPerson);
327 return contains;
328 }
329
330 @Override
331 public boolean containsAllRecorderPerson(Collection<Person> recorderPerson) {
332 boolean contains = getRecorderPerson().containsAll(recorderPerson);
333 return contains;
334 }
335
336 @Override
337 public List<Person> getRecorderPerson() {
338 if (recorderPerson == null) {
339 recorderPerson = new LinkedList<Person>();
340 }
341 return recorderPerson;
342 }
343
344 @Override
345 public void setRecorderPerson(List<Person> recorderPerson) {
346 this.recorderPerson = recorderPerson;
347 }
348
349 @Override
350 public Gear getGear() {
351 return gear;
352 }
353
354 @Override
355 public void setGear(Gear gear) {
356 this.gear = gear;
357 }
358
359 @Override
360 public Vessel getVessel() {
361 return vessel;
362 }
363
364 @Override
365 public void setVessel(Vessel vessel) {
366 this.vessel = vessel;
367 }
368
369 @Override
370 public TuttiLocation getStrata() {
371 return strata;
372 }
373
374 @Override
375 public void setStrata(TuttiLocation strata) {
376 this.strata = strata;
377 }
378
379 @Override
380 public TuttiLocation getSubStrata() {
381 return subStrata;
382 }
383
384 @Override
385 public void setSubStrata(TuttiLocation subStrata) {
386 this.subStrata = subStrata;
387 }
388
389 @Override
390 public TuttiLocation getLocation() {
391 return location;
392 }
393
394 @Override
395 public void setLocation(TuttiLocation location) {
396 this.location = location;
397 }
398
399 @Override
400 public Vessel getSecondaryVessel(int index) {
401 Vessel o = getChild(secondaryVessel, index);
402 return o;
403 }
404
405 @Override
406 public boolean isSecondaryVesselEmpty() {
407 return secondaryVessel == null || secondaryVessel.isEmpty();
408 }
409
410 @Override
411 public int sizeSecondaryVessel() {
412 return secondaryVessel == null ? 0 : secondaryVessel.size();
413 }
414
415 @Override
416 public void addSecondaryVessel(Vessel secondaryVessel) {
417 getSecondaryVessel().add(secondaryVessel);
418 }
419
420 @Override
421 public void addAllSecondaryVessel(Collection<Vessel> secondaryVessel) {
422 getSecondaryVessel().addAll(secondaryVessel);
423 }
424
425 @Override
426 public boolean removeSecondaryVessel(Vessel secondaryVessel) {
427 boolean removed = getSecondaryVessel().remove(secondaryVessel);
428 return removed;
429 }
430
431 @Override
432 public boolean removeAllSecondaryVessel(Collection<Vessel> secondaryVessel) {
433 boolean removed = getSecondaryVessel().removeAll(secondaryVessel);
434 return removed;
435 }
436
437 @Override
438 public boolean containsSecondaryVessel(Vessel secondaryVessel) {
439 boolean contains = getSecondaryVessel().contains(secondaryVessel);
440 return contains;
441 }
442
443 @Override
444 public boolean containsAllSecondaryVessel(Collection<Vessel> secondaryVessel) {
445 boolean contains = getSecondaryVessel().containsAll(secondaryVessel);
446 return contains;
447 }
448
449 @Override
450 public List<Vessel> getSecondaryVessel() {
451 if (secondaryVessel == null) {
452 secondaryVessel = new LinkedList<Vessel>();
453 }
454 return secondaryVessel;
455 }
456
457 @Override
458 public void setSecondaryVessel(List<Vessel> secondaryVessel) {
459 this.secondaryVessel = secondaryVessel;
460 }
461
462 }