1 package johnmammen.betterpetshop.bo; 2 3 import java.io.Serializable ; 4 import java.math.BigDecimal ; 5 import java.util.Date ; 6 import java.util.Set ; 7 import org.apache.commons.lang.builder.ToStringBuilder; 8 import org.apache.tapestry.pets.domain.model.*; 9 10 11 16 public class Order implements Serializable { 17 18 19 private String orderid; 20 21 22 private Date orderdate; 23 24 25 private String shiptofirstname; 26 27 28 private String shiptolastname; 29 30 31 private String shiptoaddress1; 32 33 34 private String shiptoaddress2; 35 36 37 private String shiptocity; 38 39 40 private String shiptostate; 41 42 43 private String shiptozip; 44 45 46 private String shiptocountry; 47 48 49 private String shiptophonenumber; 50 51 52 private String billtofirstname; 53 54 55 private String billtolastname; 56 57 58 private String billtoaddress1; 59 60 61 private String billtoaddress2; 62 63 64 private String billtocity; 65 66 67 private String billtostate; 68 69 70 private String billtopostalcode; 71 72 73 private String billtocountry; 74 75 76 private String billtophonenumber; 77 78 79 private BigDecimal totalprice; 80 81 82 private String cardtype; 83 84 85 private String cardnumber; 86 87 88 private String cardexpiremonth; 89 90 91 private String cardexpireyear; 92 93 94 private String locale; 95 96 97 private ICustomer useraccount; 98 99 100 private Set lineitems; 101 102 103 public Order(String orderid, Date orderdate, String shiptofirstname, String shiptolastname, String shiptoaddress1, String shiptoaddress2, String shiptocity, String shiptostate, String shiptozip, String shiptocountry, String shiptophonenumber, String billtofirstname, String billtolastname, String billtoaddress1, String billtoaddress2, String billtocity, String billtostate, String billtopostalcode, String billtocountry, String billtophonenumber, BigDecimal totalprice, String cardtype, String cardnumber, String cardexpiremonth, String cardexpireyear, String locale,ICustomer useraccount, Set lineitems) { 104 this.orderid = orderid; 105 this.orderdate = orderdate; 106 this.shiptofirstname = shiptofirstname; 107 this.shiptolastname = shiptolastname; 108 this.shiptoaddress1 = shiptoaddress1; 109 this.shiptoaddress2 = shiptoaddress2; 110 this.shiptocity = shiptocity; 111 this.shiptostate = shiptostate; 112 this.shiptozip = shiptozip; 113 this.shiptocountry = shiptocountry; 114 this.shiptophonenumber = shiptophonenumber; 115 this.billtofirstname = billtofirstname; 116 this.billtolastname = billtolastname; 117 this.billtoaddress1 = billtoaddress1; 118 this.billtoaddress2 = billtoaddress2; 119 this.billtocity = billtocity; 120 this.billtostate = billtostate; 121 this.billtopostalcode = billtopostalcode; 122 this.billtocountry = billtocountry; 123 this.billtophonenumber = billtophonenumber; 124 this.totalprice = totalprice; 125 this.cardtype = cardtype; 126 this.cardnumber = cardnumber; 127 this.cardexpiremonth = cardexpiremonth; 128 this.cardexpireyear = cardexpireyear; 129 this.locale = locale; 130 this.useraccount = useraccount; 131 this.lineitems = lineitems; 132 } 133 134 135 public Order() { 136 } 137 138 139 public Order(String orderid, String shiptofirstname, String shiptolastname, String shiptoaddress1, String shiptoaddress2, String shiptocity, String shiptozip, String shiptocountry, String billtofirstname, String billtopostalcode, String billtocountry, String cardtype, String cardnumber, String cardexpiremonth, String cardexpireyear, String locale,ICustomer useraccount, Set lineitems) { 140 this.orderid = orderid; 141 this.shiptofirstname = shiptofirstname; 142 this.shiptolastname = shiptolastname; 143 this.shiptoaddress1 = shiptoaddress1; 144 this.shiptoaddress2 = shiptoaddress2; 145 this.shiptocity = shiptocity; 146 this.shiptozip = shiptozip; 147 this.shiptocountry = shiptocountry; 148 this.billtofirstname = billtofirstname; 149 this.billtopostalcode = billtopostalcode; 150 this.billtocountry = billtocountry; 151 this.cardtype = cardtype; 152 this.cardnumber = cardnumber; 153 this.cardexpiremonth = cardexpiremonth; 154 this.cardexpireyear = cardexpireyear; 155 this.locale = locale; 156 this.useraccount = useraccount; 157 this.lineitems = lineitems; 158 } 159 160 167 public String getOrderid() { 168 return this.orderid; 169 } 170 171 public void setOrderid(String orderid) { 172 this.orderid = orderid; 173 } 174 175 181 public Date getOrderdate() { 182 return this.orderdate; 183 } 184 185 public void setOrderdate(Date orderdate) { 186 this.orderdate = orderdate; 187 } 188 189 196 public String getShiptofirstname() { 197 return this.shiptofirstname; 198 } 199 200 public void setShiptofirstname(String shiptofirstname) { 201 this.shiptofirstname = shiptofirstname; 202 } 203 204 211 public String getShiptolastname() { 212 return this.shiptolastname; 213 } 214 215 public void setShiptolastname(String shiptolastname) { 216 this.shiptolastname = shiptolastname; 217 } 218 219 226 public String getShiptoaddress1() { 227 return this.shiptoaddress1; 228 } 229 230 public void setShiptoaddress1(String shiptoaddress1) { 231 this.shiptoaddress1 = shiptoaddress1; 232 } 233 234 241 public String getShiptoaddress2() { 242 return this.shiptoaddress2; 243 } 244 245 public void setShiptoaddress2(String shiptoaddress2) { 246 this.shiptoaddress2 = shiptoaddress2; 247 } 248 249 256 public String getShiptocity() { 257 return this.shiptocity; 258 } 259 260 public void setShiptocity(String shiptocity) { 261 this.shiptocity = shiptocity; 262 } 263 264 270 public String getShiptostate() { 271 return this.shiptostate; 272 } 273 274 public void setShiptostate(String shiptostate) { 275 this.shiptostate = shiptostate; 276 } 277 278 285 public String getShiptozip() { 286 return this.shiptozip; 287 } 288 289 public void setShiptozip(String shiptozip) { 290 this.shiptozip = shiptozip; 291 } 292 293 300 public String getShiptocountry() { 301 return this.shiptocountry; 302 } 303 304 public void setShiptocountry(String shiptocountry) { 305 this.shiptocountry = shiptocountry; 306 } 307 308 314 public String getShiptophonenumber() { 315 return this.shiptophonenumber; 316 } 317 318 public void setShiptophonenumber(String shiptophonenumber) { 319 this.shiptophonenumber = shiptophonenumber; 320 } 321 322 329 public String getBilltofirstname() { 330 return this.billtofirstname; 331 } 332 333 public void setBilltofirstname(String billtofirstname) { 334 this.billtofirstname = billtofirstname; 335 } 336 337 343 public String getBilltolastname() { 344 return this.billtolastname; 345 } 346 347 public void setBilltolastname(String billtolastname) { 348 this.billtolastname = billtolastname; 349 } 350 351 357 public String getBilltoaddress1() { 358 return this.billtoaddress1; 359 } 360 361 public void setBilltoaddress1(String billtoaddress1) { 362 this.billtoaddress1 = billtoaddress1; 363 } 364 365 371 public String getBilltoaddress2() { 372 return this.billtoaddress2; 373 } 374 375 public void setBilltoaddress2(String billtoaddress2) { 376 this.billtoaddress2 = billtoaddress2; 377 } 378 379 385 public String getBilltocity() { 386 return this.billtocity; 387 } 388 389 public void setBilltocity(String billtocity) { 390 this.billtocity = billtocity; 391 } 392 393 399 public String getBilltostate() { 400 return this.billtostate; 401 } 402 403 public void setBilltostate(String billtostate) { 404 this.billtostate = billtostate; 405 } 406 407 414 public String getBilltopostalcode() { 415 return this.billtopostalcode; 416 } 417 418 public void setBilltopostalcode(String billtopostalcode) { 419 this.billtopostalcode = billtopostalcode; 420 } 421 422 429 public String getBilltocountry() { 430 return this.billtocountry; 431 } 432 433 public void setBilltocountry(String billtocountry) { 434 this.billtocountry = billtocountry; 435 } 436 437 443 public String getBilltophonenumber() { 444 return this.billtophonenumber; 445 } 446 447 public void setBilltophonenumber(String billtophonenumber) { 448 this.billtophonenumber = billtophonenumber; 449 } 450 451 457 public BigDecimal getTotalprice() { 458 return this.totalprice; 459 } 460 461 public void setTotalprice(BigDecimal totalprice) { 462 this.totalprice = totalprice; 463 } 464 465 472 public String getCardtype() { 473 return this.cardtype; 474 } 475 476 public void setCardtype(String cardtype) { 477 this.cardtype = cardtype; 478 } 479 480 487 public String getCardnumber() { 488 return this.cardnumber; 489 } 490 491 public void setCardnumber(String cardnumber) { 492 this.cardnumber = cardnumber; 493 } 494 495 502 public String getCardexpiremonth() { 503 return this.cardexpiremonth; 504 } 505 506 public void setCardexpiremonth(String cardexpiremonth) { 507 this.cardexpiremonth = cardexpiremonth; 508 } 509 510 517 public String getCardexpireyear() { 518 return this.cardexpireyear; 519 } 520 521 public void setCardexpireyear(String cardexpireyear) { 522 this.cardexpireyear = cardexpireyear; 523 } 524 525 532 public String getLocale() { 533 return this.locale; 534 } 535 536 public void setLocale(String locale) { 537 this.locale = locale; 538 } 539 540 546 public ICustomer getUseraccount() { 547 return this.useraccount; 548 } 549 550 public void setUseraccount(ICustomer useraccount) { 551 this.useraccount = useraccount; 552 } 553 554 563 public Set getLineitems() { 564 return this.lineitems; 565 } 566 567 public void setLineitems(Set lineitems) { 568 this.lineitems = lineitems; 569 } 570 571 public String toString() { 572 return new ToStringBuilder(this) 573 .append("orderid", getOrderid()) 574 .toString(); 575 } 576 577 } 578 | Popular Tags |