1 | package org.medias.eccad.persistance.hibernate.domaine; |
---|
2 | |
---|
3 | // Generated 1 Juin 2007 15:03:29 by Hibernate Tools 3.2.0.beta7 |
---|
4 | |
---|
5 | import java.util.Date; |
---|
6 | import java.util.HashSet; |
---|
7 | import java.util.Set; |
---|
8 | |
---|
9 | |
---|
10 | import org.medias.eccad.helpers.CharactereHelper; |
---|
11 | import org.medias.eccad.helpers.XmlHelper; |
---|
12 | |
---|
13 | /** |
---|
14 | * Produit generated by hbm2java |
---|
15 | */ |
---|
16 | public class Produit implements java.io.Serializable { |
---|
17 | |
---|
18 | // Fields |
---|
19 | |
---|
20 | /** |
---|
21 | * |
---|
22 | */ |
---|
23 | private static final long serialVersionUID = -7322053943887402154L; |
---|
24 | |
---|
25 | private int idProduit; |
---|
26 | |
---|
27 | private Domaine domaine; |
---|
28 | |
---|
29 | private Typeproduit typeproduit; |
---|
30 | |
---|
31 | private Produitorig produitorig; |
---|
32 | |
---|
33 | private Metadata metadata; |
---|
34 | |
---|
35 | private String titleProduit; |
---|
36 | |
---|
37 | private String descriptionProduit; |
---|
38 | |
---|
39 | private Date begintimeProduit; |
---|
40 | |
---|
41 | private Date endtimeProduit; |
---|
42 | |
---|
43 | private String temporalresProduit; |
---|
44 | |
---|
45 | private String spatialresProduit; |
---|
46 | |
---|
47 | private String textcitationProduit; |
---|
48 | |
---|
49 | private String informpubProduit; |
---|
50 | |
---|
51 | private String annotationcitationProduit; |
---|
52 | |
---|
53 | private String pubdateProduit; |
---|
54 | |
---|
55 | private String editionProduit; |
---|
56 | |
---|
57 | private String onlinkProduit; |
---|
58 | |
---|
59 | private String purposeProduit; |
---|
60 | |
---|
61 | private String currentProduit; |
---|
62 | |
---|
63 | private String progressProduit; |
---|
64 | |
---|
65 | private String updateProduit; |
---|
66 | |
---|
67 | private String themektProduit; |
---|
68 | |
---|
69 | private String themekeyProduit; |
---|
70 | |
---|
71 | private String placektProduit; |
---|
72 | |
---|
73 | private String accconstProduit; |
---|
74 | |
---|
75 | private String useconstProduit; |
---|
76 | |
---|
77 | private String headerProduit; |
---|
78 | |
---|
79 | private String versionProduit; |
---|
80 | |
---|
81 | private Set<Concerne> concernes = new HashSet<Concerne>(0); |
---|
82 | |
---|
83 | private Set<Fichier> fichiers = new HashSet<Fichier>(0); |
---|
84 | |
---|
85 | private Set<Fournit> fournits = new HashSet<Fournit>(0); |
---|
86 | |
---|
87 | private Set<Grille> grilles = new HashSet<Grille>(0); |
---|
88 | |
---|
89 | private Set<Requete> requetes = new HashSet<Requete>(0); |
---|
90 | |
---|
91 | private Set<Contact> contacts = new HashSet<Contact>(0); |
---|
92 | |
---|
93 | // Constructors |
---|
94 | |
---|
95 | /** default constructor */ |
---|
96 | public Produit() { |
---|
97 | } |
---|
98 | |
---|
99 | /** minimal constructor */ |
---|
100 | public Produit(int idProduit) { |
---|
101 | this.idProduit = idProduit; |
---|
102 | } |
---|
103 | |
---|
104 | /** full constructor */ |
---|
105 | public Produit(int idProduit, Domaine domaine, Typeproduit typeproduit, |
---|
106 | Produitorig produitorig, Metadata metadata, String titleProduit, |
---|
107 | String descriptionProduit, Date begintimeProduit, |
---|
108 | Date endtimeProduit, String temporalresProduit, |
---|
109 | String spatialresProduit, String textcitationProduit, |
---|
110 | String informpubProduit, String annotationcitationProduit, |
---|
111 | String pubdateProduit, String editionProduit, String onlinkProduit, |
---|
112 | String purposeProduit, String currentProduit, |
---|
113 | String progressProduit, String updateProduit, |
---|
114 | String themektProduit, String themekeyProduit, |
---|
115 | String placektProduit, String accconstProduit, |
---|
116 | String useconstProduit, String headerProduit, |
---|
117 | String versionProduit, Set<Concerne> concernes, |
---|
118 | Set<Fichier> fichiers, Set<Fournit> fournits, Set<Grille> grilles, |
---|
119 | Set<Requete> requetes, Set<Contact> contacts) { |
---|
120 | this.idProduit = idProduit; |
---|
121 | this.domaine = domaine; |
---|
122 | this.typeproduit = typeproduit; |
---|
123 | this.produitorig = produitorig; |
---|
124 | this.metadata = metadata; |
---|
125 | this.titleProduit = titleProduit; |
---|
126 | this.descriptionProduit = descriptionProduit; |
---|
127 | this.begintimeProduit = begintimeProduit; |
---|
128 | this.endtimeProduit = endtimeProduit; |
---|
129 | this.temporalresProduit = temporalresProduit; |
---|
130 | this.spatialresProduit = spatialresProduit; |
---|
131 | this.textcitationProduit = textcitationProduit; |
---|
132 | this.informpubProduit = informpubProduit; |
---|
133 | this.annotationcitationProduit = annotationcitationProduit; |
---|
134 | this.pubdateProduit = pubdateProduit; |
---|
135 | this.editionProduit = editionProduit; |
---|
136 | this.onlinkProduit = onlinkProduit; |
---|
137 | this.purposeProduit = purposeProduit; |
---|
138 | this.currentProduit = currentProduit; |
---|
139 | this.progressProduit = progressProduit; |
---|
140 | this.updateProduit = updateProduit; |
---|
141 | this.themektProduit = themektProduit; |
---|
142 | this.themekeyProduit = themekeyProduit; |
---|
143 | this.placektProduit = placektProduit; |
---|
144 | this.accconstProduit = accconstProduit; |
---|
145 | this.useconstProduit = useconstProduit; |
---|
146 | this.headerProduit = headerProduit; |
---|
147 | this.versionProduit = versionProduit; |
---|
148 | this.concernes = concernes; |
---|
149 | this.fichiers = fichiers; |
---|
150 | this.fournits = fournits; |
---|
151 | this.grilles = grilles; |
---|
152 | this.requetes = requetes; |
---|
153 | this.contacts = contacts; |
---|
154 | } |
---|
155 | |
---|
156 | public String toString() { |
---|
157 | String valeur = new String(); |
---|
158 | valeur += "<metadonnees>" + "\n"; |
---|
159 | |
---|
160 | valeur += "<produit>" + "\n"; |
---|
161 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "produit"); |
---|
162 | valeur += XmlHelper.createNode("idProduit", Integer.toString(idProduit)); |
---|
163 | valeur += XmlHelper.createNode("titleProduit", titleProduit); |
---|
164 | valeur += XmlHelper.createNode("descriptionProduit", descriptionProduit); |
---|
165 | valeur += XmlHelper.createNode("begintimeProduit", begintimeProduit); |
---|
166 | valeur += XmlHelper.createNode("endtimeProduit", endtimeProduit); |
---|
167 | valeur += XmlHelper.createNode("temporalresProduit", temporalresProduit); |
---|
168 | valeur += XmlHelper.createNode("spatialresProduit", spatialresProduit); |
---|
169 | valeur += XmlHelper.createNode("textcitationProduit", textcitationProduit); |
---|
170 | valeur += XmlHelper.createNode("informpubProduit", informpubProduit); |
---|
171 | valeur += XmlHelper.createNode("annotationcitationProduit", annotationcitationProduit); |
---|
172 | valeur += XmlHelper.createNode("pubdateProduit", pubdateProduit); |
---|
173 | valeur += XmlHelper.createNode("editionProduit", editionProduit); |
---|
174 | valeur += XmlHelper.createNode("onlinkProduit", onlinkProduit); |
---|
175 | valeur += XmlHelper.createNode("purposeProduit", purposeProduit); |
---|
176 | valeur += XmlHelper.createNode("currentProduit", currentProduit); |
---|
177 | valeur += XmlHelper.createNode("progressProduit", progressProduit); |
---|
178 | valeur += XmlHelper.createNode("updateProduit", updateProduit); |
---|
179 | valeur += XmlHelper.createNode("themektProduit", themektProduit); |
---|
180 | valeur += XmlHelper.createNode("themekeyProduit", themekeyProduit); |
---|
181 | valeur += XmlHelper.createNode("placektProduit", placektProduit); |
---|
182 | valeur += XmlHelper.createNode("accconstProduit", accconstProduit); |
---|
183 | valeur += XmlHelper.createNode("useconstProduit", useconstProduit); |
---|
184 | valeur += XmlHelper.createNode("headerProduit", headerProduit); |
---|
185 | valeur += XmlHelper.createNode("versionProduit", versionProduit); |
---|
186 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "produit_origine"); |
---|
187 | valeur += XmlHelper.objectToString(produitorig); |
---|
188 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "reference"); |
---|
189 | valeur += XmlHelper.listToString("referenceses", concernes); |
---|
190 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "fin produit"); |
---|
191 | valeur += "</produit>" + "\n"; |
---|
192 | |
---|
193 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "domaine"); |
---|
194 | valeur += XmlHelper.objectToString(domaine); |
---|
195 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "typeproduit"); |
---|
196 | valeur += XmlHelper.objectToString(typeproduit); |
---|
197 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "metadata_produit"); |
---|
198 | valeur += XmlHelper.objectToString(metadata); |
---|
199 | |
---|
200 | //valeur += "<fichiers>" + listToString(fichiers) + "</fichiers>" + "\n"; |
---|
201 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "organismes"); |
---|
202 | valeur += XmlHelper.listToString("organismes", fournits); |
---|
203 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "parametre"); |
---|
204 | valeur += XmlHelper.listToString("parametre", grilles, 1) + "\n"; |
---|
205 | //valeur += "<requetes>" + listToString(requetes) + "</requetes>" + "\n"; |
---|
206 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "contacts"); |
---|
207 | valeur += XmlHelper.listToString("contacts", contacts); |
---|
208 | valeur += "</metadonnees>" + "\n"; |
---|
209 | |
---|
210 | valeur = CharactereHelper.getEncodage(valeur, "ISO-8859-1"); |
---|
211 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "replace all"); |
---|
212 | valeur = valeur.replaceAll("&", "&"); |
---|
213 | // LoggerPerso.log(Produit.class, LoggerPerso.DEBUG, "fin retour valeur"); |
---|
214 | return valeur; |
---|
215 | } |
---|
216 | |
---|
217 | // Property accessors |
---|
218 | public int getIdProduit() { |
---|
219 | return this.idProduit; |
---|
220 | } |
---|
221 | |
---|
222 | public void setIdProduit(int idProduit) { |
---|
223 | this.idProduit = idProduit; |
---|
224 | } |
---|
225 | |
---|
226 | public Domaine getDomaine() { |
---|
227 | return this.domaine; |
---|
228 | } |
---|
229 | |
---|
230 | public void setDomaine(Domaine domaine) { |
---|
231 | this.domaine = domaine; |
---|
232 | } |
---|
233 | |
---|
234 | public Typeproduit getTypeproduit() { |
---|
235 | return this.typeproduit; |
---|
236 | } |
---|
237 | |
---|
238 | public void setTypeproduit(Typeproduit typeproduit) { |
---|
239 | this.typeproduit = typeproduit; |
---|
240 | } |
---|
241 | |
---|
242 | public Produitorig getProduitorig() { |
---|
243 | return this.produitorig; |
---|
244 | } |
---|
245 | |
---|
246 | public void setProduitorig(Produitorig produitorig) { |
---|
247 | this.produitorig = produitorig; |
---|
248 | } |
---|
249 | |
---|
250 | public Metadata getMetadata() { |
---|
251 | return this.metadata; |
---|
252 | } |
---|
253 | |
---|
254 | public void setMetadata(Metadata metadata) { |
---|
255 | this.metadata = metadata; |
---|
256 | } |
---|
257 | |
---|
258 | public String getTitleProduit() { |
---|
259 | return this.titleProduit; |
---|
260 | } |
---|
261 | |
---|
262 | public void setTitleProduit(String titleProduit) { |
---|
263 | this.titleProduit = titleProduit; |
---|
264 | } |
---|
265 | |
---|
266 | public String getDescriptionProduit() { |
---|
267 | return this.descriptionProduit; |
---|
268 | } |
---|
269 | |
---|
270 | public void setDescriptionProduit(String descriptionProduit) { |
---|
271 | this.descriptionProduit = descriptionProduit; |
---|
272 | } |
---|
273 | |
---|
274 | public Date getBegintimeProduit() { |
---|
275 | return this.begintimeProduit; |
---|
276 | } |
---|
277 | |
---|
278 | public void setBegintimeProduit(Date begintimeProduit) { |
---|
279 | this.begintimeProduit = begintimeProduit; |
---|
280 | } |
---|
281 | |
---|
282 | public Date getEndtimeProduit() { |
---|
283 | return this.endtimeProduit; |
---|
284 | } |
---|
285 | |
---|
286 | public void setEndtimeProduit(Date endtimeProduit) { |
---|
287 | this.endtimeProduit = endtimeProduit; |
---|
288 | } |
---|
289 | |
---|
290 | public String getTemporalresProduit() { |
---|
291 | return this.temporalresProduit; |
---|
292 | } |
---|
293 | |
---|
294 | public void setTemporalresProduit(String temporalresProduit) { |
---|
295 | this.temporalresProduit = temporalresProduit; |
---|
296 | } |
---|
297 | |
---|
298 | public String getSpatialresProduit() { |
---|
299 | return this.spatialresProduit; |
---|
300 | } |
---|
301 | |
---|
302 | public void setSpatialresProduit(String spatialresProduit) { |
---|
303 | this.spatialresProduit = spatialresProduit; |
---|
304 | } |
---|
305 | |
---|
306 | public String getTextcitationProduit() { |
---|
307 | return this.textcitationProduit; |
---|
308 | } |
---|
309 | |
---|
310 | public void setTextcitationProduit(String textcitationProduit) { |
---|
311 | this.textcitationProduit = textcitationProduit; |
---|
312 | } |
---|
313 | |
---|
314 | public String getInformpubProduit() { |
---|
315 | return this.informpubProduit; |
---|
316 | } |
---|
317 | |
---|
318 | public void setInformpubProduit(String informpubProduit) { |
---|
319 | this.informpubProduit = informpubProduit; |
---|
320 | } |
---|
321 | |
---|
322 | public String getAnnotationcitationProduit() { |
---|
323 | return this.annotationcitationProduit; |
---|
324 | } |
---|
325 | |
---|
326 | public void setAnnotationcitationProduit(String annotationcitationProduit) { |
---|
327 | this.annotationcitationProduit = annotationcitationProduit; |
---|
328 | } |
---|
329 | |
---|
330 | public String getPubdateProduit() { |
---|
331 | return this.pubdateProduit; |
---|
332 | } |
---|
333 | |
---|
334 | public void setPubdateProduit(String pubdateProduit) { |
---|
335 | this.pubdateProduit = pubdateProduit; |
---|
336 | } |
---|
337 | |
---|
338 | public String getEditionProduit() { |
---|
339 | return this.editionProduit; |
---|
340 | } |
---|
341 | |
---|
342 | public void setEditionProduit(String editionProduit) { |
---|
343 | this.editionProduit = editionProduit; |
---|
344 | } |
---|
345 | |
---|
346 | public String getOnlinkProduit() { |
---|
347 | return this.onlinkProduit; |
---|
348 | } |
---|
349 | |
---|
350 | public void setOnlinkProduit(String onlinkProduit) { |
---|
351 | this.onlinkProduit = onlinkProduit; |
---|
352 | } |
---|
353 | |
---|
354 | public String getPurposeProduit() { |
---|
355 | return this.purposeProduit; |
---|
356 | } |
---|
357 | |
---|
358 | public void setPurposeProduit(String purposeProduit) { |
---|
359 | this.purposeProduit = purposeProduit; |
---|
360 | } |
---|
361 | |
---|
362 | public String getCurrentProduit() { |
---|
363 | return this.currentProduit; |
---|
364 | } |
---|
365 | |
---|
366 | public void setCurrentProduit(String currentProduit) { |
---|
367 | this.currentProduit = currentProduit; |
---|
368 | } |
---|
369 | |
---|
370 | public String getProgressProduit() { |
---|
371 | return this.progressProduit; |
---|
372 | } |
---|
373 | |
---|
374 | public void setProgressProduit(String progressProduit) { |
---|
375 | this.progressProduit = progressProduit; |
---|
376 | } |
---|
377 | |
---|
378 | public String getUpdateProduit() { |
---|
379 | return this.updateProduit; |
---|
380 | } |
---|
381 | |
---|
382 | public void setUpdateProduit(String updateProduit) { |
---|
383 | this.updateProduit = updateProduit; |
---|
384 | } |
---|
385 | |
---|
386 | public String getThemektProduit() { |
---|
387 | return this.themektProduit; |
---|
388 | } |
---|
389 | |
---|
390 | public void setThemektProduit(String themektProduit) { |
---|
391 | this.themektProduit = themektProduit; |
---|
392 | } |
---|
393 | |
---|
394 | public String getThemekeyProduit() { |
---|
395 | return this.themekeyProduit; |
---|
396 | } |
---|
397 | |
---|
398 | public void setThemekeyProduit(String themekeyProduit) { |
---|
399 | this.themekeyProduit = themekeyProduit; |
---|
400 | } |
---|
401 | |
---|
402 | public String getPlacektProduit() { |
---|
403 | return this.placektProduit; |
---|
404 | } |
---|
405 | |
---|
406 | public void setPlacektProduit(String placektProduit) { |
---|
407 | this.placektProduit = placektProduit; |
---|
408 | } |
---|
409 | |
---|
410 | public String getAccconstProduit() { |
---|
411 | return this.accconstProduit; |
---|
412 | } |
---|
413 | |
---|
414 | public void setAccconstProduit(String accconstProduit) { |
---|
415 | this.accconstProduit = accconstProduit; |
---|
416 | } |
---|
417 | |
---|
418 | public String getUseconstProduit() { |
---|
419 | return this.useconstProduit; |
---|
420 | } |
---|
421 | |
---|
422 | public void setUseconstProduit(String useconstProduit) { |
---|
423 | this.useconstProduit = useconstProduit; |
---|
424 | } |
---|
425 | |
---|
426 | public String getHeaderProduit() { |
---|
427 | return this.headerProduit; |
---|
428 | } |
---|
429 | |
---|
430 | public void setHeaderProduit(String headerProduit) { |
---|
431 | this.headerProduit = headerProduit; |
---|
432 | } |
---|
433 | |
---|
434 | public String getVersionProduit() { |
---|
435 | return this.versionProduit; |
---|
436 | } |
---|
437 | |
---|
438 | public void setVersionProduit(String versionProduit) { |
---|
439 | this.versionProduit = versionProduit; |
---|
440 | } |
---|
441 | |
---|
442 | public Set<Concerne> getConcernes() { |
---|
443 | return this.concernes; |
---|
444 | } |
---|
445 | |
---|
446 | public void setConcernes(Set<Concerne> concernes) { |
---|
447 | this.concernes = concernes; |
---|
448 | } |
---|
449 | |
---|
450 | public Set<Fichier> getFichiers() { |
---|
451 | return this.fichiers; |
---|
452 | } |
---|
453 | |
---|
454 | public void setFichiers(Set<Fichier> fichiers) { |
---|
455 | this.fichiers = fichiers; |
---|
456 | } |
---|
457 | |
---|
458 | public Set<Fournit> getFournits() { |
---|
459 | return this.fournits; |
---|
460 | } |
---|
461 | |
---|
462 | public void setFournits(Set<Fournit> fournits) { |
---|
463 | this.fournits = fournits; |
---|
464 | } |
---|
465 | |
---|
466 | public Set<Grille> getGrilles() { |
---|
467 | return this.grilles; |
---|
468 | } |
---|
469 | |
---|
470 | public void setGrilles(Set<Grille> grilles) { |
---|
471 | this.grilles = grilles; |
---|
472 | } |
---|
473 | |
---|
474 | public Set<Requete> getRequetes() { |
---|
475 | return this.requetes; |
---|
476 | } |
---|
477 | |
---|
478 | public void setRequetes(Set<Requete> requetes) { |
---|
479 | this.requetes = requetes; |
---|
480 | } |
---|
481 | |
---|
482 | public Set<Contact> getContacts() { |
---|
483 | return this.contacts; |
---|
484 | } |
---|
485 | |
---|
486 | public void setContacts(Set<Contact> contacts) { |
---|
487 | this.contacts = contacts; |
---|
488 | } |
---|
489 | |
---|
490 | } |
---|