1 package johnmammen.betterpetshop.bo; 2 3 import java.io.Serializable ; 4 import java.util.Set ; 5 import org.apache.commons.lang.builder.ToStringBuilder; 6 import org.apache.tapestry.pets.domain.model.*; 7 8 9 14 public class Useraccount implements Serializable , ICustomer { 15 16 17 private String userid; 18 19 20 private String pwd; 21 22 23 private String email; 24 25 26 private String firstname; 27 28 29 private String lastname; 30 31 32 private String status; 33 34 35 private String addr1; 36 37 38 private String addr2; 39 40 41 private String city; 42 43 44 private String state; 45 46 47 private String zip; 48 49 50 private String country; 51 52 53 private String phone; 54 55 56 private String langpref; 57 58 59 private Integer mylistopt; 60 61 62 private Integer banneropt; 63 64 65 private johnmammen.betterpetshop.bo.Bannerdata bannerdata; 66 67 68 private Set orders; 69 70 71 public Useraccount(String userid, String pwd, String email, String firstname, String lastname, String status, String addr1, String addr2, String city, String state, String zip, String country, String phone, String langpref, Integer mylistopt, Integer banneropt, johnmammen.betterpetshop.bo.Bannerdata bannerdata, Set orders) { 72 this.userid = userid; 73 this.pwd = pwd; 74 this.email = email; 75 this.firstname = firstname; 76 this.lastname = lastname; 77 this.status = status; 78 this.addr1 = addr1; 79 this.addr2 = addr2; 80 this.city = city; 81 this.state = state; 82 this.zip = zip; 83 this.country = country; 84 this.phone = phone; 85 this.langpref = langpref; 86 this.mylistopt = mylistopt; 87 this.banneropt = banneropt; 88 this.bannerdata = bannerdata; 89 this.orders = orders; 90 } 91 92 93 public Useraccount() { 94 } 95 96 97 public Useraccount(String userid, Set orders) { 98 this.userid = userid; 99 this.orders = orders; 100 } 101 102 109 public String getUserid() { 110 return this.userid; 111 } 112 113 public void setUserid(String userid) { 114 this.userid = userid; 115 } 116 117 123 public String getPwd() { 124 return this.pwd; 125 } 126 127 public void setPwd(String pwd) { 128 this.pwd = pwd; 129 } 130 131 137 public String getEmail() { 138 return this.email; 139 } 140 141 public void setEmail(String email) { 142 this.email = email; 143 } 144 145 151 public String getFirstname() { 152 return this.firstname; 153 } 154 155 public void setFirstname(String firstname) { 156 this.firstname = firstname; 157 } 158 159 165 public String getLastname() { 166 return this.lastname; 167 } 168 169 public void setLastname(String lastname) { 170 this.lastname = lastname; 171 } 172 173 179 public String getStatus() { 180 return this.status; 181 } 182 183 public void setStatus(String status) { 184 this.status = status; 185 } 186 187 193 public String getAddr1() { 194 return this.addr1; 195 } 196 197 public void setAddr1(String addr1) { 198 this.addr1 = addr1; 199 } 200 201 207 public String getAddr2() { 208 return this.addr2; 209 } 210 211 public void setAddr2(String addr2) { 212 this.addr2 = addr2; 213 } 214 215 221 public String getCity() { 222 return this.city; 223 } 224 225 public void setCity(String city) { 226 this.city = city; 227 } 228 229 235 public String getState() { 236 return this.state; 237 } 238 239 public void setState(String state) { 240 this.state = state; 241 } 242 243 249 public String getZip() { 250 return this.zip; 251 } 252 253 public void setZip(String zip) { 254 this.zip = zip; 255 } 256 257 263 public String getCountry() { 264 return this.country; 265 } 266 267 public void setCountry(String country) { 268 this.country = country; 269 } 270 271 277 public String getPhone() { 278 return this.phone; 279 } 280 281 public void setPhone(String phone) { 282 this.phone = phone; 283 } 284 285 291 public String getLangpref() { 292 return this.langpref; 293 } 294 295 public void setLangpref(String langpref) { 296 this.langpref = langpref; 297 } 298 299 305 public Integer getMylistopt() { 306 return this.mylistopt; 307 } 308 309 public void setMylistopt(Integer mylistopt) { 310 this.mylistopt = mylistopt; 311 } 312 313 319 public Integer getBanneropt() { 320 return this.banneropt; 321 } 322 323 public void setBanneropt(Integer banneropt) { 324 this.banneropt = banneropt; 325 } 326 327 332 public johnmammen.betterpetshop.bo.Bannerdata getBannerdata() { 333 return this.bannerdata; 334 } 335 336 public void setBannerdata(johnmammen.betterpetshop.bo.Bannerdata bannerdata) { 337 this.bannerdata = bannerdata; 338 } 339 340 350 public Set getOrders() { 351 return this.orders; 352 } 353 354 public void setOrders(Set orders) { 355 this.orders = orders; 356 } 357 358 public String toString() { 359 return new ToStringBuilder(this) 360 .append("userid", getUserid()) 361 .toString(); 362 } 363 364 } 365 | Popular Tags |