1
2
3
4
5
6 package fr.ifremer.quadrige2.core.dao.data.survey;
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 import fr.ifremer.quadrige2.core.dao.administration.program.Program;
30 import fr.ifremer.quadrige2.core.dao.administration.user.Department;
31 import fr.ifremer.quadrige2.core.dao.administration.user.Quser;
32 import fr.ifremer.quadrige2.core.dao.data.event.Event;
33 import fr.ifremer.quadrige2.core.dao.data.samplingoperation.SamplingOperation;
34 import fr.ifremer.quadrige2.core.dao.referential.DredgingTargetArea;
35 import fr.ifremer.quadrige2.core.dao.referential.QualityFlag;
36 import fr.ifremer.quadrige2.core.dao.referential.Unit;
37 import fr.ifremer.quadrige2.core.dao.referential.monitoringLocation.MonitoringLocation;
38 import fr.ifremer.quadrige2.core.dao.referential.monitoringLocation.PositionningSystem;
39 import fr.ifremer.quadrige2.core.dao.system.SurveyArea;
40 import fr.ifremer.quadrige2.core.dao.system.SurveyLine;
41 import fr.ifremer.quadrige2.core.dao.system.SurveyPoint;
42 import java.io.Serializable;
43 import java.sql.Timestamp;
44 import java.util.Collection;
45 import java.util.Date;
46 import java.util.HashSet;
47
48
49
50
51
52
53 public abstract class Survey
54 implements Serializable, Comparable<Survey>
55 {
56
57
58
59 private static final long serialVersionUID = 6380088091940604795L;
60
61
62 private Integer surveyId;
63
64
65
66
67
68 public Integer getSurveyId()
69 {
70 return this.surveyId;
71 }
72
73
74
75
76
77 public void setSurveyId(Integer surveyIdIn)
78 {
79 this.surveyId = surveyIdIn;
80 }
81
82 private Date surveyDt;
83
84
85
86
87
88
89
90 public Date getSurveyDt()
91 {
92 return this.surveyDt;
93 }
94
95
96
97
98
99
100
101 public void setSurveyDt(Date surveyDtIn)
102 {
103 this.surveyDt = surveyDtIn;
104 }
105
106 private Double surveyTime;
107
108
109
110
111
112
113
114
115 public Double getSurveyTime()
116 {
117 return this.surveyTime;
118 }
119
120
121
122
123
124
125
126
127 public void setSurveyTime(Double surveyTimeIn)
128 {
129 this.surveyTime = surveyTimeIn;
130 }
131
132 private Double surveyNumberIndiv;
133
134
135
136
137
138 public Double getSurveyNumberIndiv()
139 {
140 return this.surveyNumberIndiv;
141 }
142
143
144
145
146
147 public void setSurveyNumberIndiv(Double surveyNumberIndivIn)
148 {
149 this.surveyNumberIndiv = surveyNumberIndivIn;
150 }
151
152 private Float surveyBottomDepth;
153
154
155
156
157
158
159
160 public Float getSurveyBottomDepth()
161 {
162 return this.surveyBottomDepth;
163 }
164
165
166
167
168
169
170
171 public void setSurveyBottomDepth(Float surveyBottomDepthIn)
172 {
173 this.surveyBottomDepth = surveyBottomDepthIn;
174 }
175
176 private String surveyLb;
177
178
179
180
181
182
183 public String getSurveyLb()
184 {
185 return this.surveyLb;
186 }
187
188
189
190
191
192
193 public void setSurveyLb(String surveyLbIn)
194 {
195 this.surveyLb = surveyLbIn;
196 }
197
198 private String surveyCm;
199
200
201
202
203
204
205 public String getSurveyCm()
206 {
207 return this.surveyCm;
208 }
209
210
211
212
213
214
215 public void setSurveyCm(String surveyCmIn)
216 {
217 this.surveyCm = surveyCmIn;
218 }
219
220 private Double surveyUtFormat;
221
222
223
224
225
226 public Double getSurveyUtFormat()
227 {
228 return this.surveyUtFormat;
229 }
230
231
232
233
234
235 public void setSurveyUtFormat(Double surveyUtFormatIn)
236 {
237 this.surveyUtFormat = surveyUtFormatIn;
238 }
239
240 private Date surveyControlDt;
241
242
243
244
245
246
247
248 public Date getSurveyControlDt()
249 {
250 return this.surveyControlDt;
251 }
252
253
254
255
256
257
258
259 public void setSurveyControlDt(Date surveyControlDtIn)
260 {
261 this.surveyControlDt = surveyControlDtIn;
262 }
263
264 private Date surveyValidDt;
265
266
267
268
269
270 public Date getSurveyValidDt()
271 {
272 return this.surveyValidDt;
273 }
274
275
276
277
278
279 public void setSurveyValidDt(Date surveyValidDtIn)
280 {
281 this.surveyValidDt = surveyValidDtIn;
282 }
283
284 private String surveyValidCm;
285
286
287
288
289
290 public String getSurveyValidCm()
291 {
292 return this.surveyValidCm;
293 }
294
295
296
297
298
299 public void setSurveyValidCm(String surveyValidCmIn)
300 {
301 this.surveyValidCm = surveyValidCmIn;
302 }
303
304 private Date surveyQualifDt;
305
306
307
308
309
310 public Date getSurveyQualifDt()
311 {
312 return this.surveyQualifDt;
313 }
314
315
316
317
318
319 public void setSurveyQualifDt(Date surveyQualifDtIn)
320 {
321 this.surveyQualifDt = surveyQualifDtIn;
322 }
323
324 private String surveyQualifCm;
325
326
327
328
329
330
331
332 public String getSurveyQualifCm()
333 {
334 return this.surveyQualifCm;
335 }
336
337
338
339
340
341
342
343 public void setSurveyQualifCm(String surveyQualifCmIn)
344 {
345 this.surveyQualifCm = surveyQualifCmIn;
346 }
347
348 private String surveyActualPosition;
349
350
351
352
353
354
355
356 public String getSurveyActualPosition()
357 {
358 return this.surveyActualPosition;
359 }
360
361
362
363
364
365
366
367 public void setSurveyActualPosition(String surveyActualPositionIn)
368 {
369 this.surveyActualPosition = surveyActualPositionIn;
370 }
371
372 private String surveyPositionCm;
373
374
375
376
377
378 public String getSurveyPositionCm()
379 {
380 return this.surveyPositionCm;
381 }
382
383
384
385
386
387 public void setSurveyPositionCm(String surveyPositionCmIn)
388 {
389 this.surveyPositionCm = surveyPositionCmIn;
390 }
391
392 private Date surveyGeometryValidDt;
393
394
395
396
397
398 public Date getSurveyGeometryValidDt()
399 {
400 return this.surveyGeometryValidDt;
401 }
402
403
404
405
406
407 public void setSurveyGeometryValidDt(Date surveyGeometryValidDtIn)
408 {
409 this.surveyGeometryValidDt = surveyGeometryValidDtIn;
410 }
411
412 private String surveyScope;
413
414
415
416
417
418
419 public String getSurveyScope()
420 {
421 return this.surveyScope;
422 }
423
424
425
426
427
428
429 public void setSurveyScope(String surveyScopeIn)
430 {
431 this.surveyScope = surveyScopeIn;
432 }
433
434 private String surveyHasMeas;
435
436
437
438
439
440 public String getSurveyHasMeas()
441 {
442 return this.surveyHasMeas;
443 }
444
445
446
447
448
449 public void setSurveyHasMeas(String surveyHasMeasIn)
450 {
451 this.surveyHasMeas = surveyHasMeasIn;
452 }
453
454 private Timestamp updateDt;
455
456
457
458
459
460 public Timestamp getUpdateDt()
461 {
462 return this.updateDt;
463 }
464
465
466
467
468
469 public void setUpdateDt(Timestamp updateDtIn)
470 {
471 this.updateDt = updateDtIn;
472 }
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491 private Collection<Quser> qusers = new HashSet<Quser>();
492
493
494
495
496
497 public Collection<Quser> getQusers()
498 {
499 return this.qusers;
500 }
501
502
503
504
505
506 public void setQusers(Collection<Quser> qusersIn)
507 {
508 this.qusers = qusersIn;
509 }
510
511
512
513
514
515
516
517 public boolean addQusers(Quser elementToAdd)
518 {
519 return this.qusers.add(elementToAdd);
520 }
521
522
523
524
525
526
527
528 public boolean removeQusers(Quser elementToRemove)
529 {
530 return this.qusers.remove(elementToRemove);
531 }
532
533 private Collection<FieldObservation> fieldObservations = new HashSet<FieldObservation>();
534
535
536
537
538
539 public Collection<FieldObservation> getFieldObservations()
540 {
541 return this.fieldObservations;
542 }
543
544
545
546
547
548 public void setFieldObservations(Collection<FieldObservation> fieldObservationsIn)
549 {
550 this.fieldObservations = fieldObservationsIn;
551 }
552
553
554
555
556
557
558
559 public boolean addFieldObservations(FieldObservation elementToAdd)
560 {
561 return this.fieldObservations.add(elementToAdd);
562 }
563
564
565
566
567
568
569
570 public boolean removeFieldObservations(FieldObservation elementToRemove)
571 {
572 return this.fieldObservations.remove(elementToRemove);
573 }
574
575 private Unit bottomDepthUnit;
576
577
578
579
580
581 public Unit getBottomDepthUnit()
582 {
583 return this.bottomDepthUnit;
584 }
585
586
587
588
589
590 public void setBottomDepthUnit(Unit bottomDepthUnitIn)
591 {
592 this.bottomDepthUnit = bottomDepthUnitIn;
593 }
594
595 private MonitoringLocation monitoringLocation;
596
597
598
599
600
601 public MonitoringLocation getMonitoringLocation()
602 {
603 return this.monitoringLocation;
604 }
605
606
607
608
609
610 public void setMonitoringLocation(MonitoringLocation monitoringLocationIn)
611 {
612 this.monitoringLocation = monitoringLocationIn;
613 }
614
615 private PositionningSystem positionningSystem;
616
617
618
619
620
621 public PositionningSystem getPositionningSystem()
622 {
623 return this.positionningSystem;
624 }
625
626
627
628
629
630 public void setPositionningSystem(PositionningSystem positionningSystemIn)
631 {
632 this.positionningSystem = positionningSystemIn;
633 }
634
635 private Collection<Program> programs = new HashSet<Program>();
636
637
638
639
640
641 public Collection<Program> getPrograms()
642 {
643 return this.programs;
644 }
645
646
647
648
649
650 public void setPrograms(Collection<Program> programsIn)
651 {
652 this.programs = programsIn;
653 }
654
655
656
657
658
659
660
661 public boolean addPrograms(Program elementToAdd)
662 {
663 return this.programs.add(elementToAdd);
664 }
665
666
667
668
669
670
671
672 public boolean removePrograms(Program elementToRemove)
673 {
674 return this.programs.remove(elementToRemove);
675 }
676
677 private Collection<MeasuredProfile> measuredProfiles = new HashSet<MeasuredProfile>();
678
679
680
681
682
683
684
685 public Collection<MeasuredProfile> getMeasuredProfiles()
686 {
687 return this.measuredProfiles;
688 }
689
690
691
692
693
694
695
696 public void setMeasuredProfiles(Collection<MeasuredProfile> measuredProfilesIn)
697 {
698 this.measuredProfiles = measuredProfilesIn;
699 }
700
701
702
703
704
705
706
707
708
709 public boolean addMeasuredProfiles(MeasuredProfile elementToAdd)
710 {
711 return this.measuredProfiles.add(elementToAdd);
712 }
713
714
715
716
717
718
719
720
721
722 public boolean removeMeasuredProfiles(MeasuredProfile elementToRemove)
723 {
724 return this.measuredProfiles.remove(elementToRemove);
725 }
726
727 private Collection<SamplingOperation> samplingOperations = new HashSet<SamplingOperation>();
728
729
730
731
732
733 public Collection<SamplingOperation> getSamplingOperations()
734 {
735 return this.samplingOperations;
736 }
737
738
739
740
741
742 public void setSamplingOperations(Collection<SamplingOperation> samplingOperationsIn)
743 {
744 this.samplingOperations = samplingOperationsIn;
745 }
746
747
748
749
750
751
752
753 public boolean addSamplingOperations(SamplingOperation elementToAdd)
754 {
755 return this.samplingOperations.add(elementToAdd);
756 }
757
758
759
760
761
762
763
764 public boolean removeSamplingOperations(SamplingOperation elementToRemove)
765 {
766 return this.samplingOperations.remove(elementToRemove);
767 }
768
769 private Collection<SurveyArea> surveyAreas = new HashSet<SurveyArea>();
770
771
772
773
774
775 public Collection<SurveyArea> getSurveyAreas()
776 {
777 return this.surveyAreas;
778 }
779
780
781
782
783
784 public void setSurveyAreas(Collection<SurveyArea> surveyAreasIn)
785 {
786 this.surveyAreas = surveyAreasIn;
787 }
788
789
790
791
792
793
794
795 public boolean addSurveyAreas(SurveyArea elementToAdd)
796 {
797 return this.surveyAreas.add(elementToAdd);
798 }
799
800
801
802
803
804
805
806 public boolean removeSurveyAreas(SurveyArea elementToRemove)
807 {
808 return this.surveyAreas.remove(elementToRemove);
809 }
810
811 private Campaign campaign;
812
813
814
815
816
817 public Campaign getCampaign()
818 {
819 return this.campaign;
820 }
821
822
823
824
825
826 public void setCampaign(Campaign campaignIn)
827 {
828 this.campaign = campaignIn;
829 }
830
831 private Collection<SurveyLine> surveyLines = new HashSet<SurveyLine>();
832
833
834
835
836
837 public Collection<SurveyLine> getSurveyLines()
838 {
839 return this.surveyLines;
840 }
841
842
843
844
845
846 public void setSurveyLines(Collection<SurveyLine> surveyLinesIn)
847 {
848 this.surveyLines = surveyLinesIn;
849 }
850
851
852
853
854
855
856
857 public boolean addSurveyLines(SurveyLine elementToAdd)
858 {
859 return this.surveyLines.add(elementToAdd);
860 }
861
862
863
864
865
866
867
868 public boolean removeSurveyLines(SurveyLine elementToRemove)
869 {
870 return this.surveyLines.remove(elementToRemove);
871 }
872
873 private Department recorderDepartment;
874
875
876
877
878
879 public Department getRecorderDepartment()
880 {
881 return this.recorderDepartment;
882 }
883
884
885
886
887
888 public void setRecorderDepartment(Department recorderDepartmentIn)
889 {
890 this.recorderDepartment = recorderDepartmentIn;
891 }
892
893 private Collection<SurveyPoint> surveyPoints = new HashSet<SurveyPoint>();
894
895
896
897
898
899 public Collection<SurveyPoint> getSurveyPoints()
900 {
901 return this.surveyPoints;
902 }
903
904
905
906
907
908 public void setSurveyPoints(Collection<SurveyPoint> surveyPointsIn)
909 {
910 this.surveyPoints = surveyPointsIn;
911 }
912
913
914
915
916
917
918
919 public boolean addSurveyPoints(SurveyPoint elementToAdd)
920 {
921 return this.surveyPoints.add(elementToAdd);
922 }
923
924
925
926
927
928
929
930 public boolean removeSurveyPoints(SurveyPoint elementToRemove)
931 {
932 return this.surveyPoints.remove(elementToRemove);
933 }
934
935 private Collection<Video> videos = new HashSet<Video>();
936
937
938
939
940
941 public Collection<Video> getVideos()
942 {
943 return this.videos;
944 }
945
946
947
948
949
950 public void setVideos(Collection<Video> videosIn)
951 {
952 this.videos = videosIn;
953 }
954
955
956
957
958
959
960
961 public boolean addVideos(Video elementToAdd)
962 {
963 return this.videos.add(elementToAdd);
964 }
965
966
967
968
969
970
971
972 public boolean removeVideos(Video elementToRemove)
973 {
974 return this.videos.remove(elementToRemove);
975 }
976
977 private DredgingTargetArea dredgingTargetArea;
978
979
980
981
982
983 public DredgingTargetArea getDredgingTargetArea()
984 {
985 return this.dredgingTargetArea;
986 }
987
988
989
990
991
992 public void setDredgingTargetArea(DredgingTargetArea dredgingTargetAreaIn)
993 {
994 this.dredgingTargetArea = dredgingTargetAreaIn;
995 }
996
997 private QualityFlag qualityFlag;
998
999
1000
1001
1002
1003 public QualityFlag getQualityFlag()
1004 {
1005 return this.qualityFlag;
1006 }
1007
1008
1009
1010
1011
1012 public void setQualityFlag(QualityFlag qualityFlagIn)
1013 {
1014 this.qualityFlag = qualityFlagIn;
1015 }
1016
1017 private Collection<Event> events = new HashSet<Event>();
1018
1019
1020
1021
1022
1023 public Collection<Event> getEvents()
1024 {
1025 return this.events;
1026 }
1027
1028
1029
1030
1031
1032 public void setEvents(Collection<Event> eventsIn)
1033 {
1034 this.events = eventsIn;
1035 }
1036
1037
1038
1039
1040
1041
1042
1043 public boolean addEvents(Event elementToAdd)
1044 {
1045 return this.events.add(elementToAdd);
1046 }
1047
1048
1049
1050
1051
1052
1053
1054 public boolean removeEvents(Event elementToRemove)
1055 {
1056 return this.events.remove(elementToRemove);
1057 }
1058
1059 private Collection<ObservedHabitat> observedHabitats = new HashSet<ObservedHabitat>();
1060
1061
1062
1063
1064
1065 public Collection<ObservedHabitat> getObservedHabitats()
1066 {
1067 return this.observedHabitats;
1068 }
1069
1070
1071
1072
1073
1074 public void setObservedHabitats(Collection<ObservedHabitat> observedHabitatsIn)
1075 {
1076 this.observedHabitats = observedHabitatsIn;
1077 }
1078
1079
1080
1081
1082
1083
1084
1085 public boolean addObservedHabitats(ObservedHabitat elementToAdd)
1086 {
1087 return this.observedHabitats.add(elementToAdd);
1088 }
1089
1090
1091
1092
1093
1094
1095
1096 public boolean removeObservedHabitats(ObservedHabitat elementToRemove)
1097 {
1098 return this.observedHabitats.remove(elementToRemove);
1099 }
1100
1101 private Occasion occasion;
1102
1103
1104
1105
1106
1107 public Occasion getOccasion()
1108 {
1109 return this.occasion;
1110 }
1111
1112
1113
1114
1115
1116 public void setOccasion(Occasion occasionIn)
1117 {
1118 this.occasion = occasionIn;
1119 }
1120
1121
1122
1123
1124
1125 @Override
1126 public boolean equals(Object object)
1127 {
1128 if (this == object)
1129 {
1130 return true;
1131 }
1132 if (!(object instanceof Survey))
1133 {
1134 return false;
1135 }
1136 final Survey that = (Survey)object;
1137 if (this.surveyId == null || that.getSurveyId() == null || !this.surveyId.equals(that.getSurveyId()))
1138 {
1139 return false;
1140 }
1141 return true;
1142 }
1143
1144
1145
1146
1147 @Override
1148 public int hashCode()
1149 {
1150 int hashCode = 0;
1151 hashCode = 29 * hashCode + (this.surveyId == null ? 0 : this.surveyId.hashCode());
1152
1153 return hashCode;
1154 }
1155
1156
1157
1158
1159 public static final class Factory
1160 {
1161
1162
1163
1164
1165 public static Survey newInstance()
1166 {
1167 return new SurveyImpl();
1168 }
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181 public static Survey newInstance(Date surveyDt, Timestamp updateDt, MonitoringLocation monitoringLocation, Department recorderDepartment, QualityFlag qualityFlag)
1182 {
1183 final Survey entity = new SurveyImpl();
1184 entity.setSurveyDt(surveyDt);
1185 entity.setUpdateDt(updateDt);
1186
1187 entity.setMonitoringLocation(monitoringLocation);
1188 entity.setRecorderDepartment(recorderDepartment);
1189 entity.setQualityFlag(qualityFlag);
1190 return entity;
1191 }
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236 public static Survey newInstance(Date surveyDt, Double surveyTime, Double surveyNumberIndiv, Float surveyBottomDepth, String surveyLb, String surveyCm, Double surveyUtFormat, Date surveyControlDt, Date surveyValidDt, String surveyValidCm, Date surveyQualifDt, String surveyQualifCm, String surveyActualPosition, String surveyPositionCm, Date surveyGeometryValidDt, String surveyScope, String surveyHasMeas, Timestamp updateDt, Collection<Quser> qusers, Collection<FieldObservation> fieldObservations, Unit bottomDepthUnit, MonitoringLocation monitoringLocation, PositionningSystem positionningSystem, Collection<Program> programs, Collection<MeasuredProfile> measuredProfiles, Collection<SamplingOperation> samplingOperations, Collection<SurveyArea> surveyAreas, Campaign campaign, Collection<SurveyLine> surveyLines, Department recorderDepartment, Collection<SurveyPoint> surveyPoints, Collection<Video> videos, DredgingTargetArea dredgingTargetArea, QualityFlag qualityFlag, Collection<Event> events, Collection<ObservedHabitat> observedHabitats, Occasion occasion)
1237 {
1238 final Survey entity = new SurveyImpl();
1239 entity.setSurveyDt(surveyDt);
1240 entity.setSurveyTime(surveyTime);
1241 entity.setSurveyNumberIndiv(surveyNumberIndiv);
1242 entity.setSurveyBottomDepth(surveyBottomDepth);
1243 entity.setSurveyLb(surveyLb);
1244 entity.setSurveyCm(surveyCm);
1245 entity.setSurveyUtFormat(surveyUtFormat);
1246 entity.setSurveyControlDt(surveyControlDt);
1247 entity.setSurveyValidDt(surveyValidDt);
1248 entity.setSurveyValidCm(surveyValidCm);
1249 entity.setSurveyQualifDt(surveyQualifDt);
1250 entity.setSurveyQualifCm(surveyQualifCm);
1251 entity.setSurveyActualPosition(surveyActualPosition);
1252 entity.setSurveyPositionCm(surveyPositionCm);
1253 entity.setSurveyGeometryValidDt(surveyGeometryValidDt);
1254 entity.setSurveyScope(surveyScope);
1255 entity.setSurveyHasMeas(surveyHasMeas);
1256 entity.setUpdateDt(updateDt);
1257
1258 entity.setQusers(qusers);
1259 entity.setFieldObservations(fieldObservations);
1260 entity.setBottomDepthUnit(bottomDepthUnit);
1261 entity.setMonitoringLocation(monitoringLocation);
1262 entity.setPositionningSystem(positionningSystem);
1263 entity.setPrograms(programs);
1264 entity.setMeasuredProfiles(measuredProfiles);
1265 entity.setSamplingOperations(samplingOperations);
1266 entity.setSurveyAreas(surveyAreas);
1267 entity.setCampaign(campaign);
1268 entity.setSurveyLines(surveyLines);
1269 entity.setRecorderDepartment(recorderDepartment);
1270 entity.setSurveyPoints(surveyPoints);
1271 entity.setVideos(videos);
1272 entity.setDredgingTargetArea(dredgingTargetArea);
1273 entity.setQualityFlag(qualityFlag);
1274 entity.setEvents(events);
1275 entity.setObservedHabitats(observedHabitats);
1276 entity.setOccasion(occasion);
1277 return entity;
1278 }
1279 }
1280
1281
1282
1283
1284 public int compareTo(Survey o)
1285 {
1286 int cmp = 0;
1287 if (this.getSurveyId() != null)
1288 {
1289 cmp = this.getSurveyId().compareTo(o.getSurveyId());
1290 }
1291 else
1292 {
1293 if (this.getSurveyDt() != null)
1294 {
1295 cmp = (cmp != 0 ? cmp : this.getSurveyDt().compareTo(o.getSurveyDt()));
1296 }
1297 if (this.getSurveyTime() != null)
1298 {
1299 cmp = (cmp != 0 ? cmp : this.getSurveyTime().compareTo(o.getSurveyTime()));
1300 }
1301 if (this.getSurveyNumberIndiv() != null)
1302 {
1303 cmp = (cmp != 0 ? cmp : this.getSurveyNumberIndiv().compareTo(o.getSurveyNumberIndiv()));
1304 }
1305 if (this.getSurveyBottomDepth() != null)
1306 {
1307 cmp = (cmp != 0 ? cmp : this.getSurveyBottomDepth().compareTo(o.getSurveyBottomDepth()));
1308 }
1309 if (this.getSurveyLb() != null)
1310 {
1311 cmp = (cmp != 0 ? cmp : this.getSurveyLb().compareTo(o.getSurveyLb()));
1312 }
1313 if (this.getSurveyCm() != null)
1314 {
1315 cmp = (cmp != 0 ? cmp : this.getSurveyCm().compareTo(o.getSurveyCm()));
1316 }
1317 if (this.getSurveyUtFormat() != null)
1318 {
1319 cmp = (cmp != 0 ? cmp : this.getSurveyUtFormat().compareTo(o.getSurveyUtFormat()));
1320 }
1321 if (this.getSurveyControlDt() != null)
1322 {
1323 cmp = (cmp != 0 ? cmp : this.getSurveyControlDt().compareTo(o.getSurveyControlDt()));
1324 }
1325 if (this.getSurveyValidDt() != null)
1326 {
1327 cmp = (cmp != 0 ? cmp : this.getSurveyValidDt().compareTo(o.getSurveyValidDt()));
1328 }
1329 if (this.getSurveyValidCm() != null)
1330 {
1331 cmp = (cmp != 0 ? cmp : this.getSurveyValidCm().compareTo(o.getSurveyValidCm()));
1332 }
1333 if (this.getSurveyQualifDt() != null)
1334 {
1335 cmp = (cmp != 0 ? cmp : this.getSurveyQualifDt().compareTo(o.getSurveyQualifDt()));
1336 }
1337 if (this.getSurveyQualifCm() != null)
1338 {
1339 cmp = (cmp != 0 ? cmp : this.getSurveyQualifCm().compareTo(o.getSurveyQualifCm()));
1340 }
1341 if (this.getSurveyActualPosition() != null)
1342 {
1343 cmp = (cmp != 0 ? cmp : this.getSurveyActualPosition().compareTo(o.getSurveyActualPosition()));
1344 }
1345 if (this.getSurveyPositionCm() != null)
1346 {
1347 cmp = (cmp != 0 ? cmp : this.getSurveyPositionCm().compareTo(o.getSurveyPositionCm()));
1348 }
1349 if (this.getSurveyGeometryValidDt() != null)
1350 {
1351 cmp = (cmp != 0 ? cmp : this.getSurveyGeometryValidDt().compareTo(o.getSurveyGeometryValidDt()));
1352 }
1353 if (this.getSurveyScope() != null)
1354 {
1355 cmp = (cmp != 0 ? cmp : this.getSurveyScope().compareTo(o.getSurveyScope()));
1356 }
1357 if (this.getSurveyHasMeas() != null)
1358 {
1359 cmp = (cmp != 0 ? cmp : this.getSurveyHasMeas().compareTo(o.getSurveyHasMeas()));
1360 }
1361 if (this.getUpdateDt() != null)
1362 {
1363 cmp = (cmp != 0 ? cmp : this.getUpdateDt().compareTo(o.getUpdateDt()));
1364 }
1365
1366
1367 }
1368 return cmp;
1369 }
1370
1371
1372 }