01: /*
02: * Created on 27 mai 2004
03: *
04: * To change the template for this generated file go to
05: * Window - Preferences - Java - Code Generation - Code and Comments
06: */
07: package org.objectweb.speedo.pobjects.inheritance.ejboo2;
08:
09: /**
10: * Persistent Data
11: */
12:
13: public class MaterielPersistantImpl extends ArticlePersistantImpl
14: implements MaterielPersistant {
15:
16: /**
17: * Prix du materiel.
18: */
19: private float prix;
20:
21: /**
22: * Couleur du materiel.
23: */
24: private String couleur;
25:
26: /**
27: * @return Returns the couleur.
28: */
29: public String getCouleur() {
30: return couleur;
31: }
32:
33: /**
34: * @param couleur The couleur to set.
35: */
36: public void setCouleur(String couleur) {
37: this .couleur = couleur;
38: }
39:
40: /**
41: * @return Returns the prix.
42: */
43: public float getPrix() {
44: return prix;
45: }
46:
47: /**
48: * @param prix The prix to set.
49: */
50: public void setPrix(float prix) {
51: this .prix = prix;
52: }
53:
54: public MaterielPersistantImpl() {
55: super ("M");
56: }
57:
58: public MaterielPersistantImpl(long idart) {
59: super ("M", idart);
60: }
61:
62: public String toString() {
63:
64: String s = new String(this .getClass().getName());
65: s += " id=" + this .getId().toString();
66: s += " nom=" + this .getNom();
67: s += " description=" + this .getDescription();
68: s += " type=" + this .getType();
69: s += " prix=" + prix;
70: s += " couleur=" + couleur;
71: return s;
72: }
73: }
|