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