1 | package com.medias.database.objects; |
---|
2 | |
---|
3 | // Generated 5 fï¿œvr. 2007 11:07:11 by Hibernate Tools 3.2.0.b9 |
---|
4 | |
---|
5 | import java.util.Comparator; |
---|
6 | import java.util.HashSet; |
---|
7 | import java.util.Set; |
---|
8 | |
---|
9 | /** |
---|
10 | * Parametre generated by hbm2java |
---|
11 | */ |
---|
12 | public class Parametre implements java.io.Serializable { |
---|
13 | |
---|
14 | /** |
---|
15 | * |
---|
16 | */ |
---|
17 | private static final long serialVersionUID = 1L; |
---|
18 | |
---|
19 | private int parametreId; |
---|
20 | |
---|
21 | private Unite unite; |
---|
22 | |
---|
23 | private CategorieParam categorieParam; |
---|
24 | |
---|
25 | private Commentaire commentaire; |
---|
26 | |
---|
27 | private String parametreNom; |
---|
28 | |
---|
29 | private String parametreCode; |
---|
30 | |
---|
31 | private Set<Jeu> jeus = new HashSet<Jeu>(0); |
---|
32 | |
---|
33 | private Set<Plateforme> plateformes = new HashSet<Plateforme>(0); |
---|
34 | |
---|
35 | private Set<Bilan> bilans = new HashSet<Bilan>(0); |
---|
36 | |
---|
37 | private Set<Capteur> capteurs = new HashSet<Capteur>(0); |
---|
38 | |
---|
39 | private Set<Valeur> valeurs = new HashSet<Valeur>(0); |
---|
40 | |
---|
41 | public Parametre() { |
---|
42 | } |
---|
43 | |
---|
44 | public Parametre(int parametreId, Unite unite, |
---|
45 | CategorieParam categorieParam, String parametreNom, |
---|
46 | String parametreCode) { |
---|
47 | this.parametreId = parametreId; |
---|
48 | this.unite = unite; |
---|
49 | this.categorieParam = categorieParam; |
---|
50 | this.parametreNom = parametreNom; |
---|
51 | this.parametreCode = parametreCode; |
---|
52 | } |
---|
53 | |
---|
54 | public Parametre(int parametreId, Unite unite, |
---|
55 | CategorieParam categorieParam, Commentaire commentaire, |
---|
56 | String parametreNom, String parametreCode, Set<Jeu> jeus, |
---|
57 | Set<Plateforme> plateformes, Set<Bilan> bilans, |
---|
58 | Set<Capteur> capteurs, Set<Valeur> valeurs) { |
---|
59 | this.parametreId = parametreId; |
---|
60 | this.unite = unite; |
---|
61 | this.categorieParam = categorieParam; |
---|
62 | this.commentaire = commentaire; |
---|
63 | this.parametreNom = parametreNom; |
---|
64 | this.parametreCode = parametreCode; |
---|
65 | this.jeus = jeus; |
---|
66 | this.plateformes = plateformes; |
---|
67 | this.bilans = bilans; |
---|
68 | this.capteurs = capteurs; |
---|
69 | this.valeurs = valeurs; |
---|
70 | } |
---|
71 | |
---|
72 | public int getParametreId() { |
---|
73 | return this.parametreId; |
---|
74 | } |
---|
75 | |
---|
76 | public void setParametreId(int parametreId) { |
---|
77 | this.parametreId = parametreId; |
---|
78 | } |
---|
79 | |
---|
80 | public Unite getUnite() { |
---|
81 | return this.unite; |
---|
82 | } |
---|
83 | |
---|
84 | public void setUnite(Unite unite) { |
---|
85 | this.unite = unite; |
---|
86 | } |
---|
87 | |
---|
88 | public CategorieParam getCategorieParam() { |
---|
89 | return this.categorieParam; |
---|
90 | } |
---|
91 | |
---|
92 | public void setCategorieParam(CategorieParam categorieParam) { |
---|
93 | this.categorieParam = categorieParam; |
---|
94 | } |
---|
95 | |
---|
96 | public Commentaire getCommentaire() { |
---|
97 | return this.commentaire; |
---|
98 | } |
---|
99 | |
---|
100 | public void setCommentaire(Commentaire commentaire) { |
---|
101 | this.commentaire = commentaire; |
---|
102 | } |
---|
103 | |
---|
104 | public String getParametreNom() { |
---|
105 | return this.parametreNom; |
---|
106 | } |
---|
107 | |
---|
108 | public void setParametreNom(String parametreNom) { |
---|
109 | this.parametreNom = parametreNom; |
---|
110 | } |
---|
111 | |
---|
112 | public String getParametreCode() { |
---|
113 | return this.parametreCode; |
---|
114 | } |
---|
115 | |
---|
116 | public void setParametreCode(String parametreCode) { |
---|
117 | this.parametreCode = parametreCode; |
---|
118 | } |
---|
119 | |
---|
120 | public Set<Jeu> getJeus() { |
---|
121 | return this.jeus; |
---|
122 | } |
---|
123 | |
---|
124 | public void setJeus(Set<Jeu> jeus) { |
---|
125 | this.jeus = jeus; |
---|
126 | } |
---|
127 | |
---|
128 | public Set<Plateforme> getPlateformes() { |
---|
129 | return this.plateformes; |
---|
130 | } |
---|
131 | |
---|
132 | public void setPlateformes(Set<Plateforme> plateformes) { |
---|
133 | this.plateformes = plateformes; |
---|
134 | } |
---|
135 | |
---|
136 | public Set<Bilan> getBilans() { |
---|
137 | return this.bilans; |
---|
138 | } |
---|
139 | |
---|
140 | public void setBilans(Set<Bilan> bilans) { |
---|
141 | this.bilans = bilans; |
---|
142 | } |
---|
143 | |
---|
144 | public Set<Capteur> getCapteurs() { |
---|
145 | return this.capteurs; |
---|
146 | } |
---|
147 | |
---|
148 | public void setCapteurs(Set<Capteur> capteurs) { |
---|
149 | this.capteurs = capteurs; |
---|
150 | } |
---|
151 | |
---|
152 | public Set<Valeur> getValeurs() { |
---|
153 | return this.valeurs; |
---|
154 | } |
---|
155 | |
---|
156 | public void setValeurs(Set<Valeur> valeurs) { |
---|
157 | this.valeurs = valeurs; |
---|
158 | } |
---|
159 | |
---|
160 | public String getParametreDescription() { |
---|
161 | if (commentaire == null) { |
---|
162 | return ""; |
---|
163 | } else { |
---|
164 | return commentaire.getCommentaireTxt(); |
---|
165 | } |
---|
166 | } |
---|
167 | |
---|
168 | public class ComparatorNom implements Comparator<Parametre>{ |
---|
169 | public int compare(Parametre p1, Parametre p2){ |
---|
170 | return p1.getParametreNom().compareTo(p2.getParametreNom()); |
---|
171 | } |
---|
172 | } |
---|
173 | } |
---|