1 26 package org.objectweb.speedo.j2eedo.database; 27 28 33 public class Address implements DatabaseObjectInterface { 34 private String street; 35 36 private String city; 37 38 private String state; 39 40 private String zipcode; 41 42 public String getAsString() { 43 StringBuffer sb = new StringBuffer (); 44 sb.append(street).append(" "); 45 sb.append(zipcode).append(" "); 46 sb.append(city).append(" "); 47 sb.append(state); 48 return sb.toString(); 49 } 50 51 54 public long getId() { 55 return -1; 56 } 57 58 61 public String getCity() { 62 return city; 63 } 64 65 69 public void setCity(String city) { 70 this.city = city; 71 } 72 73 76 public String getState() { 77 return state; 78 } 79 80 84 public void setState(String state) { 85 this.state = state; 86 } 87 88 91 public String getStreet() { 92 return street; 93 } 94 95 99 public void setStreet(String street) { 100 this.street = street; 101 } 102 103 106 public String getZipcode() { 107 return zipcode; 108 } 109 110 114 public void setZipcode(String zipcode) { 115 this.zipcode = zipcode; 116 } 117 118 } | Popular Tags |