View Javadoc
1   // license-header java merge-point
2   //
3   // Attention: Generated code! Do not modify by hand!
4   // Generated by: hibernate/HibernateEntity.vsl in andromda-hibernate-cartridge.
5   //
6   package fr.ifremer.quadrige3.core.dao.data.samplingoperation;
7   
8   /*-
9    * #%L
10   * Quadrige3 Core :: Client API
11   * %%
12   * Copyright (C) 2017 - 2024 Ifremer
13   * %%
14   * This program is free software: you can redistribute it and/or modify
15   * it under the terms of the GNU Affero General Public License as published by
16   * the Free Software Foundation, either version 3 of the License, or
17   * (at your option) any later version.
18   * 
19   * This program is distributed in the hope that it will be useful,
20   * but WITHOUT ANY WARRANTY; without even the implied warranty of
21   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22   * GNU General Public License for more details.
23   * 
24   * You should have received a copy of the GNU Affero General Public License
25   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
26   * #L%
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.data.aquaculture.Batch;
31  import fr.ifremer.quadrige3.core.dao.data.survey.Survey;
32  import fr.ifremer.quadrige3.core.dao.referential.DepthLevel;
33  import fr.ifremer.quadrige3.core.dao.referential.QualityFlag;
34  import fr.ifremer.quadrige3.core.dao.referential.SamplingEquipment;
35  import fr.ifremer.quadrige3.core.dao.referential.Unit;
36  import fr.ifremer.quadrige3.core.dao.referential.monitoringLocation.PositionningSystem;
37  import fr.ifremer.quadrige3.core.dao.system.SamplingOperArea;
38  import fr.ifremer.quadrige3.core.dao.system.SamplingOperLine;
39  import fr.ifremer.quadrige3.core.dao.system.SamplingOperPoint;
40  import java.io.Serializable;
41  import java.sql.Timestamp;
42  import java.util.Collection;
43  import java.util.Date;
44  import java.util.HashSet;
45  
46  /**
47   * Liste les prélévements effectués lors d'un passage.
48   */
49  // HibernateEntity.vsl annotations merge-point
50  public abstract class SamplingOperation
51      implements Serializable, Comparable<SamplingOperation>
52  {
53      /**
54       * The serial version UID of this class. Needed for serialization.
55       */
56      private static final long serialVersionUID = -5919684139702926187L;
57  
58      // Generate 21 attributes
59      private Integer samplingOperId;
60  
61      /**
62       * Identifiant interne du prélèvement
63       * @return this.samplingOperId Integer
64       */
65      public Integer getSamplingOperId()
66      {
67          return this.samplingOperId;
68      }
69  
70      /**
71       * Identifiant interne du prélèvement
72       * @param samplingOperIdIn Integer
73       */
74      public void setSamplingOperId(Integer samplingOperIdIn)
75      {
76          this.samplingOperId = samplingOperIdIn;
77      }
78  
79      private String samplingOperLb;
80  
81      /**
82       * Mnémonique du prélèvement.
83       * @return this.samplingOperLb String
84       */
85      public String getSamplingOperLb()
86      {
87          return this.samplingOperLb;
88      }
89  
90      /**
91       * Mnémonique du prélèvement.
92       * @param samplingOperLbIn String
93       */
94      public void setSamplingOperLb(String samplingOperLbIn)
95      {
96          this.samplingOperLb = samplingOperLbIn;
97      }
98  
99      private Float samplingOperDepth;
100 
101     /**
102      * Immersion du prélèvement. Cette valeur est exclusive de la fourchette min max d'immersion.
103      * Elle n'est pas obligatoire.
104      * @return this.samplingOperDepth Float
105      */
106     public Float getSamplingOperDepth()
107     {
108         return this.samplingOperDepth;
109     }
110 
111     /**
112      * Immersion du prélèvement. Cette valeur est exclusive de la fourchette min max d'immersion.
113      * Elle n'est pas obligatoire.
114      * @param samplingOperDepthIn Float
115      */
116     public void setSamplingOperDepth(Float samplingOperDepthIn)
117     {
118         this.samplingOperDepth = samplingOperDepthIn;
119     }
120 
121     private Float samplingOperMaxDepth;
122 
123     /**
124      * Valeur max de la fourchette d'immersion
125      * @return this.samplingOperMaxDepth Float
126      */
127     public Float getSamplingOperMaxDepth()
128     {
129         return this.samplingOperMaxDepth;
130     }
131 
132     /**
133      * Valeur max de la fourchette d'immersion
134      * @param samplingOperMaxDepthIn Float
135      */
136     public void setSamplingOperMaxDepth(Float samplingOperMaxDepthIn)
137     {
138         this.samplingOperMaxDepth = samplingOperMaxDepthIn;
139     }
140 
141     private Float samplingOperMinDepth;
142 
143     /**
144      * Valeur min de la fourchette d'immersion
145      * @return this.samplingOperMinDepth Float
146      */
147     public Float getSamplingOperMinDepth()
148     {
149         return this.samplingOperMinDepth;
150     }
151 
152     /**
153      * Valeur min de la fourchette d'immersion
154      * @param samplingOperMinDepthIn Float
155      */
156     public void setSamplingOperMinDepth(Float samplingOperMinDepthIn)
157     {
158         this.samplingOperMinDepth = samplingOperMinDepthIn;
159     }
160 
161     private Float samplingOperSize;
162 
163     /**
164      * Taille du prélèvement (surface, volume, poids, ¿ prélevé).
165      * @return this.samplingOperSize Float
166      */
167     public Float getSamplingOperSize()
168     {
169         return this.samplingOperSize;
170     }
171 
172     /**
173      * Taille du prélèvement (surface, volume, poids, ¿ prélevé).
174      * @param samplingOperSizeIn Float
175      */
176     public void setSamplingOperSize(Float samplingOperSizeIn)
177     {
178         this.samplingOperSize = samplingOperSizeIn;
179     }
180 
181     private Integer samplingOperTime;
182 
183     /**
184      * Heure à laquelle le prélèvement est effectué (HH24:MM). Pas de seconde a priori, mais exprimé
185      * en seconde pour être homogène.
186      * @return this.samplingOperTime Integer
187      */
188     public Integer getSamplingOperTime()
189     {
190         return this.samplingOperTime;
191     }
192 
193     /**
194      * Heure à laquelle le prélèvement est effectué (HH24:MM). Pas de seconde a priori, mais exprimé
195      * en seconde pour être homogène.
196      * @param samplingOperTimeIn Integer
197      */
198     public void setSamplingOperTime(Integer samplingOperTimeIn)
199     {
200         this.samplingOperTime = samplingOperTimeIn;
201     }
202 
203     private Integer samplingOperNumberIndiv;
204 
205     /**
206      * Nombre d'individus, par exemple il y a une vingtaine d'huitre dans le prélèvement.
207      * Il est à noter que cette quantité n'est pas redondante avec la somme des individus des
208      * résultats de mesures.
209      * @return this.samplingOperNumberIndiv Integer
210      */
211     public Integer getSamplingOperNumberIndiv()
212     {
213         return this.samplingOperNumberIndiv;
214     }
215 
216     /**
217      * Nombre d'individus, par exemple il y a une vingtaine d'huitre dans le prélèvement.
218      * Il est à noter que cette quantité n'est pas redondante avec la somme des individus des
219      * résultats de mesures.
220      * @param samplingOperNumberIndivIn Integer
221      */
222     public void setSamplingOperNumberIndiv(Integer samplingOperNumberIndivIn)
223     {
224         this.samplingOperNumberIndiv = samplingOperNumberIndivIn;
225     }
226 
227     private String samplingOperCm;
228 
229     /**
230      * Commentaire sur le prélèvement
231      * @return this.samplingOperCm String
232      */
233     public String getSamplingOperCm()
234     {
235         return this.samplingOperCm;
236     }
237 
238     /**
239      * Commentaire sur le prélèvement
240      * @param samplingOperCmIn String
241      */
242     public void setSamplingOperCm(String samplingOperCmIn)
243     {
244         this.samplingOperCm = samplingOperCmIn;
245     }
246 
247     private Double samplingOperUtFormat;
248 
249     /**
250      * Format UT de l'heure pour le prélèvement [-12;12]
251      * @return this.samplingOperUtFormat Double
252      */
253     public Double getSamplingOperUtFormat()
254     {
255         return this.samplingOperUtFormat;
256     }
257 
258     /**
259      * Format UT de l'heure pour le prélèvement [-12;12]
260      * @param samplingOperUtFormatIn Double
261      */
262     public void setSamplingOperUtFormat(Double samplingOperUtFormatIn)
263     {
264         this.samplingOperUtFormat = samplingOperUtFormatIn;
265     }
266 
267     private Date samplingOperQualifDt;
268 
269     /**
270      * Date de qualification du prélèvement
271      * @return this.samplingOperQualifDt Date
272      */
273     public Date getSamplingOperQualifDt()
274     {
275         return this.samplingOperQualifDt;
276     }
277 
278     /**
279      * Date de qualification du prélèvement
280      * @param samplingOperQualifDtIn Date
281      */
282     public void setSamplingOperQualifDt(Date samplingOperQualifDtIn)
283     {
284         this.samplingOperQualifDt = samplingOperQualifDtIn;
285     }
286 
287     private String samplingOperQualifCm;
288 
289     /**
290      * Commentaire sur la qualification du prélèvement
291      * @return this.samplingOperQualifCm String
292      */
293     public String getSamplingOperQualifCm()
294     {
295         return this.samplingOperQualifCm;
296     }
297 
298     /**
299      * Commentaire sur la qualification du prélèvement
300      * @param samplingOperQualifCmIn String
301      */
302     public void setSamplingOperQualifCm(String samplingOperQualifCmIn)
303     {
304         this.samplingOperQualifCm = samplingOperQualifCmIn;
305     }
306 
307     private Date samplingOperControlDt;
308 
309     /**
310      * Date de contrôle du prélèvement
311      * @return this.samplingOperControlDt Date
312      */
313     public Date getSamplingOperControlDt()
314     {
315         return this.samplingOperControlDt;
316     }
317 
318     /**
319      * Date de contrôle du prélèvement
320      * @param samplingOperControlDtIn Date
321      */
322     public void setSamplingOperControlDt(Date samplingOperControlDtIn)
323     {
324         this.samplingOperControlDt = samplingOperControlDtIn;
325     }
326 
327     private Date samplingOperValidDt;
328 
329     /**
330      * Date de validation du prélèvement
331      * @return this.samplingOperValidDt Date
332      */
333     public Date getSamplingOperValidDt()
334     {
335         return this.samplingOperValidDt;
336     }
337 
338     /**
339      * Date de validation du prélèvement
340      * @param samplingOperValidDtIn Date
341      */
342     public void setSamplingOperValidDt(Date samplingOperValidDtIn)
343     {
344         this.samplingOperValidDt = samplingOperValidDtIn;
345     }
346 
347     private String samplingOperActualPosition;
348 
349     /**
350      * Vrai s'il s'agit dune géométrie définie par l'utilisateur, faux si la géométrie est héritée
351      * @return this.samplingOperActualPosition String
352      */
353     public String getSamplingOperActualPosition()
354     {
355         return this.samplingOperActualPosition;
356     }
357 
358     /**
359      * Vrai s'il s'agit dune géométrie définie par l'utilisateur, faux si la géométrie est héritée
360      * @param samplingOperActualPositionIn String
361      */
362     public void setSamplingOperActualPosition(String samplingOperActualPositionIn)
363     {
364         this.samplingOperActualPosition = samplingOperActualPositionIn;
365     }
366 
367     private String samplingOperPositionCm;
368 
369     /**
370      * Commentaire associé à la localisation
371      * @return this.samplingOperPositionCm String
372      */
373     public String getSamplingOperPositionCm()
374     {
375         return this.samplingOperPositionCm;
376     }
377 
378     /**
379      * Commentaire associé à la localisation
380      * @param samplingOperPositionCmIn String
381      */
382     public void setSamplingOperPositionCm(String samplingOperPositionCmIn)
383     {
384         this.samplingOperPositionCm = samplingOperPositionCmIn;
385     }
386 
387     private Date samplingOperGeomValidDt;
388 
389     /**
390      * Date de validation de la géométrie du prélèvement
391      * @return this.samplingOperGeomValidDt Date
392      */
393     public Date getSamplingOperGeomValidDt()
394     {
395         return this.samplingOperGeomValidDt;
396     }
397 
398     /**
399      * Date de validation de la géométrie du prélèvement
400      * @param samplingOperGeomValidDtIn Date
401      */
402     public void setSamplingOperGeomValidDt(Date samplingOperGeomValidDtIn)
403     {
404         this.samplingOperGeomValidDt = samplingOperGeomValidDtIn;
405     }
406 
407     private String samplingOperScope;
408 
409     /**
410      * Vrai si l'étape de qualification est globale, faux si des éléments fils ou résultats n'ont
411      * pas la même étape
412      * @return this.samplingOperScope String
413      */
414     public String getSamplingOperScope()
415     {
416         return this.samplingOperScope;
417     }
418 
419     /**
420      * Vrai si l'étape de qualification est globale, faux si des éléments fils ou résultats n'ont
421      * pas la même étape
422      * @param samplingOperScopeIn String
423      */
424     public void setSamplingOperScope(String samplingOperScopeIn)
425     {
426         this.samplingOperScope = samplingOperScopeIn;
427     }
428 
429     private String samplingOperHasMeas;
430 
431     /**
432      * Vrai si l'élément a des résultats de mesure, dénombrement ou fichier
433      * @return this.samplingOperHasMeas String
434      */
435     public String getSamplingOperHasMeas()
436     {
437         return this.samplingOperHasMeas;
438     }
439 
440     /**
441      * Vrai si l'élément a des résultats de mesure, dénombrement ou fichier
442      * @param samplingOperHasMeasIn String
443      */
444     public void setSamplingOperHasMeas(String samplingOperHasMeasIn)
445     {
446         this.samplingOperHasMeas = samplingOperHasMeasIn;
447     }
448 
449     private Timestamp updateDt;
450 
451     /**
452      * Date de modification de l'objet, mise à jour par le système
453      * @return this.updateDt Timestamp
454      */
455     public Timestamp getUpdateDt()
456     {
457         return this.updateDt;
458     }
459 
460     /**
461      * Date de modification de l'objet, mise à jour par le système
462      * @param updateDtIn Timestamp
463      */
464     public void setUpdateDt(Timestamp updateDtIn)
465     {
466         this.updateDt = updateDtIn;
467     }
468 
469     private Integer remoteId;
470 
471     /**
472      * 
473      * @return this.remoteId Integer
474      */
475     public Integer getRemoteId()
476     {
477         return this.remoteId;
478     }
479 
480     /**
481      * 
482      * @param remoteIdIn Integer
483      */
484     public void setRemoteId(Integer remoteIdIn)
485     {
486         this.remoteId = remoteIdIn;
487     }
488 
489     // Generate 19 associations
490     private DepthLevel depthLevel;
491 
492     /**
493      * Liste des niveaux auxquels les prélèvements peuvent être effectués.
494      * @return this.depthLevel DepthLevel
495      */
496     public DepthLevel getDepthLevel()
497     {
498         return this.depthLevel;
499     }
500 
501     /**
502      * Liste des niveaux auxquels les prélèvements peuvent être effectués.
503      * @param depthLevelIn DepthLevel
504      */
505     public void setDepthLevel(DepthLevel depthLevelIn)
506     {
507         this.depthLevel = depthLevelIn;
508     }
509 
510     private Collection<SamplingOperPoint> samplingOperPoints = new HashSet<SamplingOperPoint>();
511 
512     /**
513      * Gestion de la géométrie ponctuelle des prélèvements.
514      * @return this.samplingOperPoints Collection<SamplingOperPoint>
515      */
516     public Collection<SamplingOperPoint> getSamplingOperPoints()
517     {
518         return this.samplingOperPoints;
519     }
520 
521     /**
522      * Gestion de la géométrie ponctuelle des prélèvements.
523      * @param samplingOperPointsIn Collection<SamplingOperPoint>
524      */
525     public void setSamplingOperPoints(Collection<SamplingOperPoint> samplingOperPointsIn)
526     {
527         this.samplingOperPoints = samplingOperPointsIn;
528     }
529 
530     /**
531      * Gestion de la géométrie ponctuelle des prélèvements.
532      * @param elementToAdd SamplingOperPoint
533      * @return <tt>true</tt> if this collection changed as a result of the
534      *         call
535      */
536     public boolean addSamplingOperPoints(SamplingOperPoint elementToAdd)
537     {
538         return this.samplingOperPoints.add(elementToAdd);
539     }
540 
541     /**
542      * Gestion de la géométrie ponctuelle des prélèvements.
543      * @param elementToRemove SamplingOperPoint
544      * @return <tt>true</tt> if this collection changed as a result of the
545      *         call
546      */
547     public boolean removeSamplingOperPoints(SamplingOperPoint elementToRemove)
548     {
549         return this.samplingOperPoints.remove(elementToRemove);
550     }
551 
552     private QualityFlag qualityFlag;
553 
554     /**
555      * Liste des niveaux de qualification.
556      * @return this.qualityFlag QualityFlag
557      */
558     public QualityFlag getQualityFlag()
559     {
560         return this.qualityFlag;
561     }
562 
563     /**
564      * Liste des niveaux de qualification.
565      * @param qualityFlagIn QualityFlag
566      */
567     public void setQualityFlag(QualityFlag qualityFlagIn)
568     {
569         this.qualityFlag = qualityFlagIn;
570     }
571 
572     private Collection<SamplingOperArea> samplingOperAreas = new HashSet<SamplingOperArea>();
573 
574     /**
575      * Gestion de la géométrie surfacique des prélèvements.
576      * @return this.samplingOperAreas Collection<SamplingOperArea>
577      */
578     public Collection<SamplingOperArea> getSamplingOperAreas()
579     {
580         return this.samplingOperAreas;
581     }
582 
583     /**
584      * Gestion de la géométrie surfacique des prélèvements.
585      * @param samplingOperAreasIn Collection<SamplingOperArea>
586      */
587     public void setSamplingOperAreas(Collection<SamplingOperArea> samplingOperAreasIn)
588     {
589         this.samplingOperAreas = samplingOperAreasIn;
590     }
591 
592     /**
593      * Gestion de la géométrie surfacique des prélèvements.
594      * @param elementToAdd SamplingOperArea
595      * @return <tt>true</tt> if this collection changed as a result of the
596      *         call
597      */
598     public boolean addSamplingOperAreas(SamplingOperArea elementToAdd)
599     {
600         return this.samplingOperAreas.add(elementToAdd);
601     }
602 
603     /**
604      * Gestion de la géométrie surfacique des prélèvements.
605      * @param elementToRemove SamplingOperArea
606      * @return <tt>true</tt> if this collection changed as a result of the
607      *         call
608      */
609     public boolean removeSamplingOperAreas(SamplingOperArea elementToRemove)
610     {
611         return this.samplingOperAreas.remove(elementToRemove);
612     }
613 
614     private Collection<Program> programs = new HashSet<Program>();
615 
616     /**
617      * Activités à l'origine de la collecte d'un ensemble cohérent de données.
618      * @return this.programs Collection<Program>
619      */
620     public Collection<Program> getPrograms()
621     {
622         return this.programs;
623     }
624 
625     /**
626      * Activités à l'origine de la collecte d'un ensemble cohérent de données.
627      * @param programsIn Collection<Program>
628      */
629     public void setPrograms(Collection<Program> programsIn)
630     {
631         this.programs = programsIn;
632     }
633 
634     /**
635      * Activités à l'origine de la collecte d'un ensemble cohérent de données.
636      * @param elementToAdd Program
637      * @return <tt>true</tt> if this collection changed as a result of the
638      *         call
639      */
640     public boolean addPrograms(Program elementToAdd)
641     {
642         return this.programs.add(elementToAdd);
643     }
644 
645     /**
646      * Activités à l'origine de la collecte d'un ensemble cohérent de données.
647      * @param elementToRemove Program
648      * @return <tt>true</tt> if this collection changed as a result of the
649      *         call
650      */
651     public boolean removePrograms(Program elementToRemove)
652     {
653         return this.programs.remove(elementToRemove);
654     }
655 
656     private Unit depthUnit;
657 
658     /**
659      * Liste l'ensemble des unités de mesure.
660      * @return this.depthUnit Unit
661      */
662     public Unit getDepthUnit()
663     {
664         return this.depthUnit;
665     }
666 
667     /**
668      * Liste l'ensemble des unités de mesure.
669      * @param depthUnitIn Unit
670      */
671     public void setDepthUnit(Unit depthUnitIn)
672     {
673         this.depthUnit = depthUnitIn;
674     }
675 
676     private Batch batch;
677 
678     /**
679      * Un lot est un groupe d'animaux issu d'une même population initiale et suivi sur un même point
680      * dans
681      * des conditions d'élevage similaires  (conditions expérimentales).  Un lot est défini par : *
682      * une
683      * population initiale * un lieu de surveillance * des caractéristiques d'élevage (système +
684      * structure)
685      * * un niveau Ce lot de mollusques est positionné sur le terrain.
686      * @return this.batch Batch
687      */
688     public Batch getBatch()
689     {
690         return this.batch;
691     }
692 
693     /**
694      * Un lot est un groupe d'animaux issu d'une même population initiale et suivi sur un même point
695      * dans
696      * des conditions d'élevage similaires  (conditions expérimentales).  Un lot est défini par : *
697      * une
698      * population initiale * un lieu de surveillance * des caractéristiques d'élevage (système +
699      * structure)
700      * * un niveau Ce lot de mollusques est positionné sur le terrain.
701      * @param batchIn Batch
702      */
703     public void setBatch(Batch batchIn)
704     {
705         this.batch = batchIn;
706     }
707 
708     private Survey survey;
709 
710     /**
711      * Liste les différents passages effectués sur un lieu de surveillance.
712      * Liste les différents passages effectués sur un lieu de surveillance.
713      * @return this.survey Survey
714      */
715     public Survey getSurvey()
716     {
717         return this.survey;
718     }
719 
720     /**
721      * Liste les différents passages effectués sur un lieu de surveillance.
722      * Liste les différents passages effectués sur un lieu de surveillance.
723      * @param surveyIn Survey
724      */
725     public void setSurvey(Survey surveyIn)
726     {
727         this.survey = surveyIn;
728     }
729 
730     private Department recorderDepartment;
731 
732     /**
733      * Liste les départements ou services auxquels sont rattachés les agents
734      * @return this.recorderDepartment Department
735      */
736     public Department getRecorderDepartment()
737     {
738         return this.recorderDepartment;
739     }
740 
741     /**
742      * Liste les départements ou services auxquels sont rattachés les agents
743      * @param recorderDepartmentIn Department
744      */
745     public void setRecorderDepartment(Department recorderDepartmentIn)
746     {
747         this.recorderDepartment = recorderDepartmentIn;
748     }
749 
750     private Collection<SamplingOperLine> samplingOperLines = new HashSet<SamplingOperLine>();
751 
752     /**
753      * Gestion de la géométrie linéaire des prélèvements.
754      * @return this.samplingOperLines Collection<SamplingOperLine>
755      */
756     public Collection<SamplingOperLine> getSamplingOperLines()
757     {
758         return this.samplingOperLines;
759     }
760 
761     /**
762      * Gestion de la géométrie linéaire des prélèvements.
763      * @param samplingOperLinesIn Collection<SamplingOperLine>
764      */
765     public void setSamplingOperLines(Collection<SamplingOperLine> samplingOperLinesIn)
766     {
767         this.samplingOperLines = samplingOperLinesIn;
768     }
769 
770     /**
771      * Gestion de la géométrie linéaire des prélèvements.
772      * @param elementToAdd SamplingOperLine
773      * @return <tt>true</tt> if this collection changed as a result of the
774      *         call
775      */
776     public boolean addSamplingOperLines(SamplingOperLine elementToAdd)
777     {
778         return this.samplingOperLines.add(elementToAdd);
779     }
780 
781     /**
782      * Gestion de la géométrie linéaire des prélèvements.
783      * @param elementToRemove SamplingOperLine
784      * @return <tt>true</tt> if this collection changed as a result of the
785      *         call
786      */
787     public boolean removeSamplingOperLines(SamplingOperLine elementToRemove)
788     {
789         return this.samplingOperLines.remove(elementToRemove);
790     }
791 
792     private Unit sizeUnit;
793 
794     /**
795      * Liste l'ensemble des unités de mesure.
796      * @return this.sizeUnit Unit
797      */
798     public Unit getSizeUnit()
799     {
800         return this.sizeUnit;
801     }
802 
803     /**
804      * Liste l'ensemble des unités de mesure.
805      * @param sizeUnitIn Unit
806      */
807     public void setSizeUnit(Unit sizeUnitIn)
808     {
809         this.sizeUnit = sizeUnitIn;
810     }
811 
812     private SamplingEquipment samplingEquipment;
813 
814     /**
815      * Liste les engins de prélèvement (au sens marque/modèle et non numéro de série).
816      * @return this.samplingEquipment SamplingEquipment
817      */
818     public SamplingEquipment getSamplingEquipment()
819     {
820         return this.samplingEquipment;
821     }
822 
823     /**
824      * Liste les engins de prélèvement (au sens marque/modèle et non numéro de série).
825      * @param samplingEquipmentIn SamplingEquipment
826      */
827     public void setSamplingEquipment(SamplingEquipment samplingEquipmentIn)
828     {
829         this.samplingEquipment = samplingEquipmentIn;
830     }
831 
832     private PositionningSystem positionningSystem;
833 
834     /**
835      * Informations complémentaires sur le positionnement d'un objet.
836      * @return this.positionningSystem PositionningSystem
837      */
838     public PositionningSystem getPositionningSystem()
839     {
840         return this.positionningSystem;
841     }
842 
843     /**
844      * Informations complémentaires sur le positionnement d'un objet.
845      * @param positionningSystemIn PositionningSystem
846      */
847     public void setPositionningSystem(PositionningSystem positionningSystemIn)
848     {
849         this.positionningSystem = positionningSystemIn;
850     }
851 
852     private Department department;
853 
854     /**
855      * Liste les départements ou services auxquels sont rattachés les agents
856      * @return this.department Department
857      */
858     public Department getDepartment()
859     {
860         return this.department;
861     }
862 
863     /**
864      * Liste les départements ou services auxquels sont rattachés les agents
865      * @param departmentIn Department
866      */
867     public void setDepartment(Department departmentIn)
868     {
869         this.department = departmentIn;
870     }
871 
872     /**
873      * Returns <code>true</code> if the argument is an SamplingOperation instance and all identifiers for this entity
874      * equal the identifiers of the argument entity. Returns <code>false</code> otherwise.
875      */
876     @Override
877     public boolean equals(Object object)
878     {
879         if (this == object)
880         {
881             return true;
882         }
883         if (!(object instanceof SamplingOperation))
884         {
885             return false;
886         }
887         final SamplingOperation that = (SamplingOperation)object;
888         if (this.samplingOperId == null || that.getSamplingOperId() == null || !this.samplingOperId.equals(that.getSamplingOperId()))
889         {
890             return false;
891         }
892         return true;
893     }
894 
895     /**
896      * Returns a hash code based on this entity's identifiers.
897      */
898     @Override
899     public int hashCode()
900     {
901         int hashCode = 0;
902         hashCode = 29 * hashCode + (this.samplingOperId == null ? 0 : this.samplingOperId.hashCode());
903 
904         return hashCode;
905     }
906 
907     /**
908      * Constructs new instances of {@link SamplingOperation}.
909      */
910     public static final class Factory
911     {
912         /**
913          * Constructs a new instance of {@link SamplingOperation}.
914          * @return new SamplingOperationImpl()
915          */
916         public static SamplingOperation newInstance()
917         {
918             return new SamplingOperationImpl();
919         }
920 
921         /**
922          * Constructs a new instance of {@link SamplingOperation}, taking all required and/or
923          * read-only properties as arguments, except for identifiers.
924          * @param qualityFlag QualityFlag
925          * @param survey Survey
926          * @param recorderDepartment Department
927          * @param samplingEquipment SamplingEquipment
928          * @param department Department
929          * @return newInstance
930          */
931         public static SamplingOperation newInstance(QualityFlag qualityFlag, Survey survey, Department recorderDepartment, SamplingEquipment samplingEquipment, Department department)
932         {
933             final SamplingOperation entity = new SamplingOperationImpl();
934             entity.setQualityFlag(qualityFlag);
935             entity.setSurvey(survey);
936             entity.setRecorderDepartment(recorderDepartment);
937             entity.setSamplingEquipment(samplingEquipment);
938             entity.setDepartment(department);
939             return entity;
940         }
941 
942         /**
943          * Constructs a new instance of {@link SamplingOperation}, taking all possible properties
944          * (except the identifier(s))as arguments.
945          * @param samplingOperLb String
946          * @param samplingOperDepth Float
947          * @param samplingOperMaxDepth Float
948          * @param samplingOperMinDepth Float
949          * @param samplingOperSize Float
950          * @param samplingOperTime Integer
951          * @param samplingOperNumberIndiv Integer
952          * @param samplingOperCm String
953          * @param samplingOperUtFormat Double
954          * @param samplingOperQualifDt Date
955          * @param samplingOperQualifCm String
956          * @param samplingOperControlDt Date
957          * @param samplingOperValidDt Date
958          * @param samplingOperActualPosition String
959          * @param samplingOperPositionCm String
960          * @param samplingOperGeomValidDt Date
961          * @param samplingOperScope String
962          * @param samplingOperHasMeas String
963          * @param updateDt Timestamp
964          * @param remoteId Integer
965          * @param depthLevel DepthLevel
966          * @param samplingOperPoints Collection<SamplingOperPoint>
967          * @param qualityFlag QualityFlag
968          * @param samplingOperAreas Collection<SamplingOperArea>
969          * @param programs Collection<Program>
970          * @param depthUnit Unit
971          * @param batch Batch
972          * @param survey Survey
973          * @param recorderDepartment Department
974          * @param samplingOperLines Collection<SamplingOperLine>
975          * @param sizeUnit Unit
976          * @param samplingEquipment SamplingEquipment
977          * @param positionningSystem PositionningSystem
978          * @param department Department
979          * @return newInstance SamplingOperation
980          */
981         public static SamplingOperation newInstance(String samplingOperLb, Float samplingOperDepth, Float samplingOperMaxDepth, Float samplingOperMinDepth, Float samplingOperSize, Integer samplingOperTime, Integer samplingOperNumberIndiv, String samplingOperCm, Double samplingOperUtFormat, Date samplingOperQualifDt, String samplingOperQualifCm, Date samplingOperControlDt, Date samplingOperValidDt, String samplingOperActualPosition, String samplingOperPositionCm, Date samplingOperGeomValidDt, String samplingOperScope, String samplingOperHasMeas, Timestamp updateDt, Integer remoteId, DepthLevel depthLevel, Collection<SamplingOperPoint> samplingOperPoints, QualityFlag qualityFlag, Collection<SamplingOperArea> samplingOperAreas, Collection<Program> programs, Unit depthUnit, Batch batch, Survey survey, Department recorderDepartment, Collection<SamplingOperLine> samplingOperLines, Unit sizeUnit, SamplingEquipment samplingEquipment, PositionningSystem positionningSystem, Department department)
982         {
983             final SamplingOperation entity = new SamplingOperationImpl();
984             entity.setSamplingOperLb(samplingOperLb);
985             entity.setSamplingOperDepth(samplingOperDepth);
986             entity.setSamplingOperMaxDepth(samplingOperMaxDepth);
987             entity.setSamplingOperMinDepth(samplingOperMinDepth);
988             entity.setSamplingOperSize(samplingOperSize);
989             entity.setSamplingOperTime(samplingOperTime);
990             entity.setSamplingOperNumberIndiv(samplingOperNumberIndiv);
991             entity.setSamplingOperCm(samplingOperCm);
992             entity.setSamplingOperUtFormat(samplingOperUtFormat);
993             entity.setSamplingOperQualifDt(samplingOperQualifDt);
994             entity.setSamplingOperQualifCm(samplingOperQualifCm);
995             entity.setSamplingOperControlDt(samplingOperControlDt);
996             entity.setSamplingOperValidDt(samplingOperValidDt);
997             entity.setSamplingOperActualPosition(samplingOperActualPosition);
998             entity.setSamplingOperPositionCm(samplingOperPositionCm);
999             entity.setSamplingOperGeomValidDt(samplingOperGeomValidDt);
1000             entity.setSamplingOperScope(samplingOperScope);
1001             entity.setSamplingOperHasMeas(samplingOperHasMeas);
1002             entity.setUpdateDt(updateDt);
1003             entity.setRemoteId(remoteId);
1004             entity.setDepthLevel(depthLevel);
1005             entity.setSamplingOperPoints(samplingOperPoints);
1006             entity.setQualityFlag(qualityFlag);
1007             entity.setSamplingOperAreas(samplingOperAreas);
1008             entity.setPrograms(programs);
1009             entity.setDepthUnit(depthUnit);
1010             entity.setBatch(batch);
1011             entity.setSurvey(survey);
1012             entity.setRecorderDepartment(recorderDepartment);
1013             entity.setSamplingOperLines(samplingOperLines);
1014             entity.setSizeUnit(sizeUnit);
1015             entity.setSamplingEquipment(samplingEquipment);
1016             entity.setPositionningSystem(positionningSystem);
1017             entity.setDepartment(department);
1018             return entity;
1019         }
1020     }
1021 
1022     /**
1023      * @see Comparable#compareTo
1024      */
1025     public int compareTo(SamplingOperation o)
1026     {
1027         int cmp = 0;
1028         if (this.getSamplingOperId() != null)
1029         {
1030             cmp = this.getSamplingOperId().compareTo(o.getSamplingOperId());
1031         }
1032         else
1033         {
1034             if (this.getSamplingOperLb() != null)
1035             {
1036                 cmp = (cmp != 0 ? cmp : this.getSamplingOperLb().compareTo(o.getSamplingOperLb()));
1037             }
1038             if (this.getSamplingOperDepth() != null)
1039             {
1040                 cmp = (cmp != 0 ? cmp : this.getSamplingOperDepth().compareTo(o.getSamplingOperDepth()));
1041             }
1042             if (this.getSamplingOperMaxDepth() != null)
1043             {
1044                 cmp = (cmp != 0 ? cmp : this.getSamplingOperMaxDepth().compareTo(o.getSamplingOperMaxDepth()));
1045             }
1046             if (this.getSamplingOperMinDepth() != null)
1047             {
1048                 cmp = (cmp != 0 ? cmp : this.getSamplingOperMinDepth().compareTo(o.getSamplingOperMinDepth()));
1049             }
1050             if (this.getSamplingOperSize() != null)
1051             {
1052                 cmp = (cmp != 0 ? cmp : this.getSamplingOperSize().compareTo(o.getSamplingOperSize()));
1053             }
1054             if (this.getSamplingOperTime() != null)
1055             {
1056                 cmp = (cmp != 0 ? cmp : this.getSamplingOperTime().compareTo(o.getSamplingOperTime()));
1057             }
1058             if (this.getSamplingOperNumberIndiv() != null)
1059             {
1060                 cmp = (cmp != 0 ? cmp : this.getSamplingOperNumberIndiv().compareTo(o.getSamplingOperNumberIndiv()));
1061             }
1062             if (this.getSamplingOperCm() != null)
1063             {
1064                 cmp = (cmp != 0 ? cmp : this.getSamplingOperCm().compareTo(o.getSamplingOperCm()));
1065             }
1066             if (this.getSamplingOperUtFormat() != null)
1067             {
1068                 cmp = (cmp != 0 ? cmp : this.getSamplingOperUtFormat().compareTo(o.getSamplingOperUtFormat()));
1069             }
1070             if (this.getSamplingOperQualifDt() != null)
1071             {
1072                 cmp = (cmp != 0 ? cmp : this.getSamplingOperQualifDt().compareTo(o.getSamplingOperQualifDt()));
1073             }
1074             if (this.getSamplingOperQualifCm() != null)
1075             {
1076                 cmp = (cmp != 0 ? cmp : this.getSamplingOperQualifCm().compareTo(o.getSamplingOperQualifCm()));
1077             }
1078             if (this.getSamplingOperControlDt() != null)
1079             {
1080                 cmp = (cmp != 0 ? cmp : this.getSamplingOperControlDt().compareTo(o.getSamplingOperControlDt()));
1081             }
1082             if (this.getSamplingOperValidDt() != null)
1083             {
1084                 cmp = (cmp != 0 ? cmp : this.getSamplingOperValidDt().compareTo(o.getSamplingOperValidDt()));
1085             }
1086             if (this.getSamplingOperActualPosition() != null)
1087             {
1088                 cmp = (cmp != 0 ? cmp : this.getSamplingOperActualPosition().compareTo(o.getSamplingOperActualPosition()));
1089             }
1090             if (this.getSamplingOperPositionCm() != null)
1091             {
1092                 cmp = (cmp != 0 ? cmp : this.getSamplingOperPositionCm().compareTo(o.getSamplingOperPositionCm()));
1093             }
1094             if (this.getSamplingOperGeomValidDt() != null)
1095             {
1096                 cmp = (cmp != 0 ? cmp : this.getSamplingOperGeomValidDt().compareTo(o.getSamplingOperGeomValidDt()));
1097             }
1098             if (this.getSamplingOperScope() != null)
1099             {
1100                 cmp = (cmp != 0 ? cmp : this.getSamplingOperScope().compareTo(o.getSamplingOperScope()));
1101             }
1102             if (this.getSamplingOperHasMeas() != null)
1103             {
1104                 cmp = (cmp != 0 ? cmp : this.getSamplingOperHasMeas().compareTo(o.getSamplingOperHasMeas()));
1105             }
1106             if (this.getUpdateDt() != null)
1107             {
1108                 cmp = (cmp != 0 ? cmp : this.getUpdateDt().compareTo(o.getUpdateDt()));
1109             }
1110             if (this.getRemoteId() != null)
1111             {
1112                 cmp = (cmp != 0 ? cmp : this.getRemoteId().compareTo(o.getRemoteId()));
1113             }
1114         }
1115         return cmp;
1116     }
1117 // HibernateEntity.vsl merge-point
1118 // SamplingOperation.java merge-point
1119 }