source: ether_megapoli/domain/interface/com/medias/database/objects/Plateforme.java @ 89

Last change on this file since 89 was 89, checked in by vmipsl, 13 years ago

Import du projet MEGAPOLI

File size: 3.6 KB
Line 
1package com.medias.database.objects;
2
3// Generated 5 fï¿œvr. 2007 11:07:11 by Hibernate Tools 3.2.0.b9
4
5import java.util.Comparator;
6import java.util.HashSet;
7import java.util.Set;
8
9/**
10 * Plateforme generated by hbm2java
11 */
12public class Plateforme implements java.io.Serializable {
13
14        /**
15         *
16         */
17        private static final long serialVersionUID = 1L;
18
19        private int plateformeId;
20
21        private Commentaire commentaire;
22
23        private TypePlateforme typePlateforme;
24
25        private String plateformeNom;
26
27        private Set<Bilan> bilans = new HashSet<Bilan>(0);
28
29        private Set<Mesure> mesures = new HashSet<Mesure>(0);
30
31        private Set<Parametre> parametres = new HashSet<Parametre>(0);
32
33        private Set<Capteur> capteurs = new HashSet<Capteur>(0);
34
35        private Set<RequetePlatLoc> requetePlatLocs = new HashSet<RequetePlatLoc>(0);
36
37        private Set<Jeu> jeus = new HashSet<Jeu>(0);
38
39        public Plateforme() {
40        }
41
42        public Plateforme(int plateformeId, TypePlateforme typePlateforme,
43                        String plateformeNom) {
44                this.plateformeId = plateformeId;
45                this.typePlateforme = typePlateforme;
46                this.plateformeNom = plateformeNom;
47        }
48
49        public Plateforme(int plateformeId, Commentaire commentaire,
50                        TypePlateforme typePlateforme, String plateformeNom,
51                        Set<Bilan> bilans, Set<Mesure> mesures, Set<Parametre> parametres,
52                        Set<Capteur> capteurs, Set<RequetePlatLoc> requetePlatLocs,
53                        Set<Jeu> jeus) {
54                this.plateformeId = plateformeId;
55                this.commentaire = commentaire;
56                this.typePlateforme = typePlateforme;
57                this.plateformeNom = plateformeNom;
58                this.bilans = bilans;
59                this.mesures = mesures;
60                this.parametres = parametres;
61                this.capteurs = capteurs;
62                this.requetePlatLocs = requetePlatLocs;
63                this.jeus = jeus;
64        }
65
66        public int getPlateformeId() {
67                return this.plateformeId;
68        }
69
70        public void setPlateformeId(int plateformeId) {
71                this.plateformeId = plateformeId;
72        }
73
74        public Commentaire getCommentaire() {
75                return this.commentaire;
76        }
77
78        public void setCommentaire(Commentaire commentaire) {
79                this.commentaire = commentaire;
80        }
81
82        public TypePlateforme getTypePlateforme() {
83                return this.typePlateforme;
84        }
85
86        public void setTypePlateforme(TypePlateforme typePlateforme) {
87                this.typePlateforme = typePlateforme;
88        }
89
90        public String getPlateformeNom() {
91                return this.plateformeNom;
92        }
93
94        public void setPlateformeNom(String plateformeNom) {
95                this.plateformeNom = plateformeNom;
96        }
97
98        public Set<Bilan> getBilans() {
99                return this.bilans;
100        }
101
102        public void setBilans(Set<Bilan> bilans) {
103                this.bilans = bilans;
104        }
105
106        public Set<Mesure> getMesures() {
107                return this.mesures;
108        }
109
110        public void setMesures(Set<Mesure> mesures) {
111                this.mesures = mesures;
112        }
113
114        public Set<Parametre> getParametres() {
115                return this.parametres;
116        }
117
118        public void setParametres(Set<Parametre> parametres) {
119                this.parametres = parametres;
120        }
121
122        public Set<Capteur> getCapteurs() {
123                return this.capteurs;
124        }
125
126        public void setCapteurs(Set<Capteur> capteurs) {
127                this.capteurs = capteurs;
128        }
129
130        public Set<RequetePlatLoc> getRequetePlatLocs() {
131                return this.requetePlatLocs;
132        }
133
134        public void setRequetePlatLocs(Set<RequetePlatLoc> requetePlatLocs) {
135                this.requetePlatLocs = requetePlatLocs;
136        }
137
138        public Set<Jeu> getJeus() {
139                return this.jeus;
140        }
141
142        public void setJeus(Set<Jeu> jeus) {
143                this.jeus = jeus;
144        }
145
146    public String getPlateformeDescription() {
147        if (commentaire == null) {
148            return "";
149        } else {
150            return commentaire.getCommentaireTxt(); 
151        }
152    }
153   
154    public class ComparatorNom implements Comparator<Plateforme>{
155        public int compare(Plateforme p1, Plateforme p2){
156                return p1.getPlateformeNom().compareTo(p2.getPlateformeNom());
157        }
158    }
159}
Note: See TracBrowser for help on using the repository browser.