1 package johnmammen.betterpetshop.bo; 2 3 import java.io.Serializable ; 4 import org.apache.commons.lang.builder.ToStringBuilder; 5 6 7 12 public class Supplier implements Serializable { 13 14 15 private Integer suppid; 16 17 18 private String name; 19 20 21 private String status; 22 23 24 private String addr1; 25 26 27 private String addr2; 28 29 30 private String city; 31 32 33 private String state; 34 35 36 private String zip; 37 38 39 private String phone; 40 41 42 public Supplier(Integer suppid, String name, String status, String addr1, String addr2, String city, String state, String zip, String phone) { 43 this.suppid = suppid; 44 this.name = name; 45 this.status = status; 46 this.addr1 = addr1; 47 this.addr2 = addr2; 48 this.city = city; 49 this.state = state; 50 this.zip = zip; 51 this.phone = phone; 52 } 53 54 55 public Supplier() { 56 } 57 58 59 public Supplier(Integer suppid, String name) { 60 this.suppid = suppid; 61 this.name = name; 62 } 63 64 71 public Integer getSuppid() { 72 return this.suppid; 73 } 74 75 public void setSuppid(Integer suppid) { 76 this.suppid = suppid; 77 } 78 79 86 public String getName() { 87 return this.name; 88 } 89 90 public void setName(String name) { 91 this.name = name; 92 } 93 94 100 public String getStatus() { 101 return this.status; 102 } 103 104 public void setStatus(String status) { 105 this.status = status; 106 } 107 108 114 public String getAddr1() { 115 return this.addr1; 116 } 117 118 public void setAddr1(String addr1) { 119 this.addr1 = addr1; 120 } 121 122 128 public String getAddr2() { 129 return this.addr2; 130 } 131 132 public void setAddr2(String addr2) { 133 this.addr2 = addr2; 134 } 135 136 142 public String getCity() { 143 return this.city; 144 } 145 146 public void setCity(String city) { 147 this.city = city; 148 } 149 150 156 public String getState() { 157 return this.state; 158 } 159 160 public void setState(String state) { 161 this.state = state; 162 } 163 164 170 public String getZip() { 171 return this.zip; 172 } 173 174 public void setZip(String zip) { 175 this.zip = zip; 176 } 177 178 184 public String getPhone() { 185 return this.phone; 186 } 187 188 public void setPhone(String phone) { 189 this.phone = phone; 190 } 191 192 public String toString() { 193 return new ToStringBuilder(this) 194 .append("suppid", getSuppid()) 195 .toString(); 196 } 197 198 } 199 | Popular Tags |