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