KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > order_manager > model > Order


1 package com.dotmarketing.portlets.order_manager.model;
2
3 import com.dotmarketing.beans.Inode;
4 import com.dotmarketing.beans.UserProxy;
5 import com.dotmarketing.cms.factories.PublicUserFactory;
6 import com.dotmarketing.factories.UserProxyFactory;
7 import com.dotmarketing.util.UtilMethods;
8 import com.liferay.portal.model.User;
9
10 public class Order extends Inode {
11
12     private static final long serialVersionUID = 1L;
13     private long inode; //identifier
14
private long userInode; //persistent
15
private int orderStatus; //persistent
16
private int paymentStatus; //persistent
17
private java.util.Date JavaDoc datePosted; //persistent
18
private java.util.Date JavaDoc lastModDate; //persistent
19
private String JavaDoc billingAddress1; //persistent
20
private String JavaDoc billingAddress2; //persistent
21
private String JavaDoc billingCity; //persistent
22
private String JavaDoc billingState; //persistent
23
private String JavaDoc billingZip; //persistent
24
private String JavaDoc billingCountry; //persistent
25
private String JavaDoc billingPhone; //persistent
26
private String JavaDoc billingFax; //persistent
27
private String JavaDoc billingContactName; //persistent
28
private String JavaDoc billingContactPhone; //persistent
29
private String JavaDoc billingContactEmail; //persistent
30
private String JavaDoc shippingAddress1; //persistent
31
private String JavaDoc shippingLabel; //persistent
32
private String JavaDoc shippingAddress2; //persistent
33
private String JavaDoc shippingCity; //persistent
34
private String JavaDoc shippingState; //persistent
35
private String JavaDoc shippingZip; //persistent
36
private String JavaDoc shippingCountry; //persistent
37
private String JavaDoc shippingPhone; //persistent
38
private String JavaDoc shippingFax; //persistent
39
private String JavaDoc paymentType; //persistent
40
private String JavaDoc nameOnCard; //persistent
41
private String JavaDoc cardType; //persistent
42
private String JavaDoc cardNumber; //persistent
43
private int cardExpMonth; //persistent
44
private int cardExpYear; //persistent
45
private String JavaDoc cardVerificationValue; //persistent
46
private float orderSubTotal; //persistent
47
private float orderShipping; //persistent
48
private int orderShipType; //persistent
49
private float orderTax; //persistent
50
private String JavaDoc taxExemptNumber; //persistent
51
private String JavaDoc discountCodes; //persistent
52
private float orderTotal; //persistent
53
private float orderTotalPaid; //persistent
54
private float orderTotalDue; //persistent
55
private float orderDiscount; //persistent
56
private String JavaDoc invoiceNumber; //persistent
57
private java.util.Date JavaDoc invoiceDate; //persistent
58
private String JavaDoc checkNumber; //persistent
59
private String JavaDoc checkBankName; //persistent
60
private String JavaDoc poNumber; //persistent
61
private String JavaDoc trackingNumber; //persistent
62
private boolean modified_QB; // persistent
63
private boolean modified_FH; // persistent
64
private String JavaDoc backendUser; //persistent
65

66     public Order() {
67         setType("ecom_order");
68         this.modified_QB = true;
69         this.modified_FH = true;
70     }
71
72     public long getInode() {
73         return this.inode;
74     }
75
76     public void setInode(long inode) {
77         this.inode = inode;
78     }
79     public long getUserInode() {
80         return this.userInode;
81     }
82
83     public void setUserInode(long userInode) {
84         this.userInode = userInode;
85     }
86     public int getOrderStatus() {
87         return this.orderStatus;
88     }
89
90     public void setOrderStatus(int orderStatus) {
91         this.orderStatus = orderStatus;
92     }
93     public int getPaymentStatus() {
94         return this.paymentStatus;
95     }
96
97     public void setPaymentStatus(int paymentStatus) {
98         this.paymentStatus = paymentStatus;
99     }
100     public java.util.Date JavaDoc getDatePosted() {
101         return this.datePosted;
102     }
103
104     public void setDatePosted(java.util.Date JavaDoc datePosted) {
105         this.datePosted = datePosted;
106     }
107     public java.util.Date JavaDoc getLastModDate() {
108         return this.lastModDate;
109     }
110
111     public void setLastModDate(java.util.Date JavaDoc lastModDate) {
112         this.lastModDate = lastModDate;
113     }
114     public String JavaDoc getBillingAddress1() {
115         return this.billingAddress1;
116     }
117
118     public void setBillingAddress1(String JavaDoc billingAddress1) {
119         this.billingAddress1 = billingAddress1;
120     }
121     public String JavaDoc getBillingAddress2() {
122         return this.billingAddress2;
123     }
124
125     public void setBillingAddress2(String JavaDoc billingAddress2) {
126         this.billingAddress2 = billingAddress2;
127     }
128     public String JavaDoc getBillingCity() {
129         return this.billingCity;
130     }
131
132     public void setBillingCity(String JavaDoc billingCity) {
133         this.billingCity = billingCity;
134     }
135     public String JavaDoc getBillingState() {
136         return this.billingState;
137     }
138
139     public void setBillingState(String JavaDoc billingState) {
140         this.billingState = billingState;
141     }
142     public String JavaDoc getBillingZip() {
143         return this.billingZip;
144     }
145
146     public void setBillingZip(String JavaDoc billingZip) {
147         this.billingZip = billingZip;
148     }
149     public String JavaDoc getBillingCountry() {
150         return this.billingCountry;
151     }
152
153     public void setBillingCountry(String JavaDoc billingCountry) {
154         this.billingCountry = billingCountry;
155     }
156     public String JavaDoc getBillingPhone() {
157         return this.billingPhone;
158     }
159
160     public void setBillingPhone(String JavaDoc billingPhone) {
161         this.billingPhone = billingPhone;
162     }
163     public String JavaDoc getBillingFax() {
164         return this.billingFax;
165     }
166
167     public void setBillingFax(String JavaDoc billingFax) {
168         this.billingFax = billingFax;
169     }
170     public String JavaDoc getBillingContactName() {
171         return this.billingContactName;
172     }
173
174     public void setBillingContactName(String JavaDoc billingContactName) {
175         this.billingContactName = billingContactName;
176     }
177     public String JavaDoc getBillingContactPhone() {
178         return this.billingContactPhone;
179     }
180
181     public void setBillingContactPhone(String JavaDoc billingContactPhone) {
182         this.billingContactPhone = billingContactPhone;
183     }
184     public String JavaDoc getBillingContactEmail() {
185         return this.billingContactEmail;
186     }
187
188     public void setBillingContactEmail(String JavaDoc billingContactEmail) {
189         this.billingContactEmail = billingContactEmail;
190     }
191     public String JavaDoc getShippingAddress1() {
192         return this.shippingAddress1;
193     }
194
195     public void setShippingAddress1(String JavaDoc shippingAddress1) {
196         this.shippingAddress1 = shippingAddress1;
197     }
198     public String JavaDoc getShippingAddress2() {
199         return this.shippingAddress2;
200     }
201
202     public void setShippingAddress2(String JavaDoc shippingAddress2) {
203         this.shippingAddress2 = shippingAddress2;
204     }
205     public String JavaDoc getShippingCity() {
206         return this.shippingCity;
207     }
208
209     public void setShippingCity(String JavaDoc shippingCity) {
210         this.shippingCity = shippingCity;
211     }
212     public String JavaDoc getShippingState() {
213         return this.shippingState;
214     }
215
216     public void setShippingState(String JavaDoc shippingState) {
217         this.shippingState = shippingState;
218     }
219     public String JavaDoc getShippingZip() {
220         return this.shippingZip;
221     }
222
223     public void setShippingZip(String JavaDoc shippingZip) {
224         this.shippingZip = shippingZip;
225     }
226     public String JavaDoc getShippingCountry() {
227         return this.shippingCountry;
228     }
229
230     public void setShippingCountry(String JavaDoc shippingCountry) {
231         this.shippingCountry = shippingCountry;
232     }
233     public String JavaDoc getShippingPhone() {
234         return this.shippingPhone;
235     }
236
237     public void setShippingPhone(String JavaDoc shippingPhone) {
238         this.shippingPhone = shippingPhone;
239     }
240     public String JavaDoc getShippingFax() {
241         return this.shippingFax;
242     }
243
244     public void setShippingFax(String JavaDoc shippingFax) {
245         this.shippingFax = shippingFax;
246     }
247     public String JavaDoc getPaymentType() {
248         return this.paymentType;
249     }
250
251     public void setPaymentType(String JavaDoc paymentType) {
252         this.paymentType = paymentType;
253     }
254     public String JavaDoc getNameOnCard() {
255         return this.nameOnCard;
256     }
257
258     public void setNameOnCard(String JavaDoc nameOnCard) {
259         this.nameOnCard = nameOnCard;
260     }
261     public String JavaDoc getCardType() {
262         return this.cardType;
263     }
264
265     public void setCardType(String JavaDoc cardType) {
266         this.cardType = cardType;
267     }
268     public String JavaDoc getCardNumber() {
269         return this.cardNumber;
270     }
271
272     public void setCardNumber(String JavaDoc cardNumber) {
273         this.cardNumber = cardNumber;
274     }
275     public int getCardExpMonth() {
276         return this.cardExpMonth;
277     }
278
279     public void setCardExpMonth(int cardExpMonth) {
280         this.cardExpMonth = cardExpMonth;
281     }
282     public int getCardExpYear() {
283         return this.cardExpYear;
284     }
285
286     public void setCardExpYear(int cardExpYear) {
287         this.cardExpYear = cardExpYear;
288     }
289     public String JavaDoc getCardVerificationValue() {
290         return this.cardVerificationValue;
291     }
292
293     public void setCardVerificationValue(String JavaDoc cardVerificationValue) {
294         this.cardVerificationValue = cardVerificationValue;
295     }
296     public float getOrderSubTotal() {
297         return this.orderSubTotal;
298     }
299
300     public void setOrderSubTotal(float orderSubTotal) {
301         this.orderSubTotal = orderSubTotal;
302     }
303     public float getOrderShipping() {
304         return this.orderShipping;
305     }
306
307     public void setOrderShipping(float orderShipping) {
308         this.orderShipping = orderShipping;
309     }
310     public int getOrderShipType() {
311         return this.orderShipType;
312     }
313
314     public void setOrderShipType(int orderShipType) {
315         this.orderShipType = orderShipType;
316     }
317     public float getOrderTax() {
318         return this.orderTax;
319     }
320
321     public void setOrderTax(float orderTax) {
322         this.orderTax = orderTax;
323     }
324     public String JavaDoc getTaxExemptNumber() {
325         return this.taxExemptNumber;
326     }
327
328     public void setTaxExemptNumber(String JavaDoc taxExemptNumber) {
329         this.taxExemptNumber = taxExemptNumber;
330     }
331     public String JavaDoc getDiscountCodes() {
332         return this.discountCodes;
333     }
334
335     public void setDiscountCodes(String JavaDoc discountCodes) {
336         this.discountCodes = discountCodes;
337     }
338     public float getOrderTotal() {
339         return this.orderTotal;
340     }
341
342     public void setOrderTotal(float orderTotal) {
343         this.orderTotal = orderTotal;
344     }
345     public float getOrderTotalPaid() {
346         return this.orderTotalPaid;
347     }
348
349     public void setOrderTotalPaid(float orderTotalPaid) {
350         this.orderTotalPaid = orderTotalPaid;
351     }
352     public float getOrderTotalDue() {
353         return this.orderTotalDue;
354     }
355
356     public void setOrderTotalDue(float orderTotalDue) {
357         this.orderTotalDue = orderTotalDue;
358     }
359     public String JavaDoc getInvoiceNumber() {
360         return this.invoiceNumber;
361     }
362
363     public void setInvoiceNumber(String JavaDoc invoiceNumber) {
364         this.invoiceNumber = invoiceNumber;
365     }
366     public java.util.Date JavaDoc getInvoiceDate() {
367         return this.invoiceDate;
368     }
369
370     public void setInvoiceDate(java.util.Date JavaDoc invoiceDate) {
371         this.invoiceDate = invoiceDate;
372     }
373     public String JavaDoc getCheckNumber() {
374         return this.checkNumber;
375     }
376
377     public void setCheckNumber(String JavaDoc checkNumber) {
378         this.checkNumber = checkNumber;
379     }
380     public String JavaDoc getCheckBankName() {
381         return this.checkBankName;
382     }
383
384     public void setCheckBankName(String JavaDoc checkBankName) {
385         this.checkBankName = checkBankName;
386     }
387     public String JavaDoc getPoNumber() {
388         return this.poNumber;
389     }
390
391     public void setPoNumber(String JavaDoc poNumber) {
392         this.poNumber = poNumber;
393     }
394     public float getOrderDiscount() {
395         return orderDiscount;
396     }
397     public void setOrderDiscount(float orderDiscount) {
398         this.orderDiscount = orderDiscount;
399     }
400
401     public String JavaDoc getTrackingNumber() {
402         return trackingNumber;
403     }
404
405     public void setTrackingNumber(String JavaDoc trackingNumber) {
406         this.trackingNumber = trackingNumber;
407     }
408     
409     public User getUser()
410     {
411         User user = PublicUserFactory.getDefaultUser();
412         UserProxy userProxy = UserProxyFactory.getUserProxy(userInode);
413         String JavaDoc userId = userProxy.getUserId();
414         if (UtilMethods.isSet(userId))
415         {
416             user = PublicUserFactory.getUserByUserId(userId);
417         }
418         return user;
419     }
420     /**
421      * @return Returns the modified_QB.
422      */

423     public boolean isModified_QB() {
424         return modified_QB;
425     }
426
427     /**
428      * @param modified_QB
429      * The modified_QB to set.
430      */

431     public void setModified_QB(boolean modified_QB) {
432         this.modified_QB = modified_QB;
433     }
434     
435     /**
436      * @return Returns the modified_FH.
437      */

438     public boolean isModified_FH() {
439         return modified_FH;
440     }
441
442     /**
443      * @param modified_FH
444      * The modified_FH to set.
445      */

446     public void setModified_FH(boolean modified_FH) {
447         this.modified_FH = modified_FH;
448     }
449
450     public String JavaDoc getBackendUser() {
451         return backendUser;
452     }
453
454     public void setBackendUser(String JavaDoc backendUser) {
455         this.backendUser = backendUser;
456     }
457
458     public String JavaDoc getShippingLabel() {
459         return shippingLabel;
460     }
461
462     public void setShippingLabel(String JavaDoc shippingLabel) {
463         this.shippingLabel = shippingLabel;
464     }
465     
466 }
467
Popular Tags