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