KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > inheritance > ejboo2 > MaterielPersistantImpl


1 /*
2  * Created on 27 mai 2004
3  *
4  * To change the template for this generated file go to
5  * Window - Preferences - Java - Code Generation - Code and Comments
6  */

7 package org.objectweb.speedo.pobjects.inheritance.ejboo2;
8
9
10 /**
11  * Persistent Data
12  */

13
14 public class MaterielPersistantImpl extends ArticlePersistantImpl implements MaterielPersistant {
15     
16     /**
17      * Prix du materiel.
18      */

19     private float prix;
20
21     /**
22      * Couleur du materiel.
23      */

24     private String JavaDoc couleur;
25
26     /**
27      * @return Returns the couleur.
28      */

29     public String JavaDoc getCouleur() {
30         return couleur;
31     }
32     /**
33      * @param couleur The couleur to set.
34      */

35     public void setCouleur(String JavaDoc couleur) {
36         this.couleur = couleur;
37     }
38     /**
39      * @return Returns the prix.
40      */

41     public float getPrix() {
42         return prix;
43     }
44     /**
45      * @param prix The prix to set.
46      */

47     public void setPrix(float prix) {
48         this.prix = prix;
49     }
50
51     public MaterielPersistantImpl() {
52         super("M");
53     }
54     
55     public MaterielPersistantImpl(long idart) {
56         super("M", idart);
57     }
58     
59     public String JavaDoc toString() {
60          
61         String JavaDoc s = new String JavaDoc(this.getClass().getName());
62         s += " id="+this.getId().toString();
63         s += " nom="+this.getNom();
64         s += " description="+this.getDescription();
65         s += " type="+this.getType();
66         s += " prix="+prix;
67         s += " couleur="+couleur;
68         return s;
69     }
70 }
71
Popular Tags