1 37 38 package com.sun.j2ee.blueprints.opc.purchaseorder; 39 40 import java.util.*; 41 import java.io.*; 42 43 47 public class PurchaseOrder implements Serializable{ 48 49 protected String poId; 50 protected String userId; 51 protected String emailId; 52 protected String locale; 53 protected Calendar orderDate; 54 protected ContactInfo shippingInfo; 55 protected ContactInfo billingInfo; 56 protected float totalPrice; 57 protected CreditCard creditCard; 58 protected int headCount; 59 protected Calendar startDate; 60 protected Calendar endDate; 61 protected String departureCity; 62 protected Activity[] activities; 63 protected Lodging lodging; 64 protected Transportation departureFlightInfo; 65 protected Transportation returnFlightInfo; 66 67 public PurchaseOrder() {} 69 70 public PurchaseOrder(String poId, String userId, String emailId, 71 String locale, Calendar orderDate, 72 ContactInfo shippingInfo, ContactInfo billingInfo, 73 float totalPrice, CreditCard creditCard, int headCount, 74 Calendar startDate, Calendar endDate, String departureCity, 75 Activity[] activities, Lodging lodging, 76 Transportation departureFlightInfo, 77 Transportation returnFlightInfo) { 78 this.poId = poId; 79 this.shippingInfo = shippingInfo; 80 this.userId = userId; 81 this.emailId = emailId; 82 this.locale = locale; 83 this.orderDate = orderDate; 84 this.billingInfo = billingInfo; 85 this.totalPrice = totalPrice; 86 this.creditCard = creditCard; 87 this.headCount = headCount; 88 this.startDate = startDate; 89 this.endDate = endDate; 90 this.departureCity = departureCity; 91 this.activities = activities; 92 this.lodging = lodging; 93 this.departureFlightInfo = departureFlightInfo; 94 this.returnFlightInfo = returnFlightInfo; 95 } 96 97 public String getPoId() { 99 return poId; 100 } 101 102 public String getUserId() { 103 return userId; 104 } 105 106 public String getEmailId() { 107 return emailId; 108 } 109 110 public String getLocale() { 111 return locale; 112 } 113 114 public Calendar getOrderDate() { 115 return orderDate; 116 } 117 118 public ContactInfo getShippingInfo() { 119 return shippingInfo; 120 } 121 122 public ContactInfo getBillingInfo() { 123 return billingInfo; 124 } 125 126 public float getTotalPrice() { 127 return totalPrice; 128 } 129 130 public CreditCard getCreditCard() { 131 return creditCard; 132 } 133 134 public int getHeadCount() { 135 return headCount; 136 } 137 138 public Calendar getStartDate() { 139 return startDate; 140 } 141 142 public Calendar getEndDate() { 143 return endDate; 144 } 145 146 public String getDepartureCity() { 147 return departureCity; 148 } 149 150 public Activity[] getActivities() { 151 return activities; 152 } 153 154 public Lodging getLodging() { 155 return lodging; 156 } 157 158 public Transportation getDepartureFlightInfo() { 159 return departureFlightInfo; 160 } 161 162 public Transportation getReturnFlightInfo() { 163 return returnFlightInfo; 164 } 165 166 public void setPoId(String poId) { 168 this.poId = poId; 169 } 170 171 public void setUserId(String userId) { 172 this.userId = userId; 173 } 174 175 public void setEmailId(String emailId) { 176 this.emailId = emailId; 177 } 178 179 public void setLocale(String locale) { 180 this.locale = locale; 181 } 182 183 public void setOrderDate(Calendar orderDate) { 184 this.orderDate = orderDate; 185 } 186 187 public void setShippingInfo(ContactInfo shippingInfo) { 188 this.shippingInfo = shippingInfo; 189 } 190 191 public void setBillingInfo(ContactInfo billingInfo) { 192 this.billingInfo = billingInfo; 193 } 194 195 public void setTotalPrice(float totalPrice) { 196 this.totalPrice = totalPrice; 197 } 198 199 public void setCreditCard(CreditCard creditCard) { 200 this.creditCard = creditCard; 201 } 202 203 public void setHeadCount(int headCount) { 204 this.headCount = headCount; 205 } 206 207 public void setStartDate(Calendar startDate) { 208 this.startDate = startDate; 209 } 210 211 public void setEndDate(Calendar endDate) { 212 this.endDate = endDate; 213 } 214 215 public void setDepartureCity(String departureCity) { 216 this.departureCity = departureCity; 217 } 218 219 public void setActivities(Activity[] activity) { 220 this.activities = activity; 221 } 222 223 public void setLodging(Lodging lodging) { 224 this.lodging = lodging; 225 } 226 227 public void setDepartureFlightInfo(Transportation departureFlightInfo) { 228 this.departureFlightInfo = departureFlightInfo; 229 } 230 231 public void setReturnFlightInfo(Transportation returnFlightInfo) { 232 this.returnFlightInfo = returnFlightInfo; 233 } 234 235 } 236 | Popular Tags |