1 7 package org.objectweb.speedo.pobjects.inheritance.ejboo2; 8 9 10 13 14 public class ServicePersistantImpl extends ArticlePersistantImpl implements ServicePersistant { 15 16 19 private float frais; 20 21 24 private String option; 25 26 29 public float getFrais() { 30 return frais; 31 } 32 35 public void setFrais(float frais) { 36 this.frais = frais; 37 } 38 41 public String getOption() { 42 return option; 43 } 44 47 public void setOption(String 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 toString() { 59 String s = new String (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 |