KickJava   Java API By Example, From Geeks To Geeks.

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


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 ServicePersistantImpl extends ArticlePersistantImpl implements ServicePersistant {
15     
16     /**
17      * Frais de service.
18      */

19     private float frais;
20
21     /**
22      * Option de service.
23      */

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

29     public float getFrais() {
30         return frais;
31     }
32     /**
33      * @param frais The frais to set.
34      */

35     public void setFrais(float frais) {
36         this.frais = frais;
37     }
38     /**
39      * @return Returns the option.
40      */

41     public String JavaDoc getOption() {
42         return option;
43     }
44     /**
45      * @param option The option to set.
46      */

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