Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
483 rajveer 1
/**
2
 * Autogenerated by Thrift
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.order;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
 
22
import org.apache.thrift.*;
23
import org.apache.thrift.meta_data.*;
24
import org.apache.thrift.protocol.*;
25
 
26
public class Order implements TBase<Order._Fields>, java.io.Serializable, Cloneable, Comparable<Order> {
27
  private static final TStruct STRUCT_DESC = new TStruct("Order");
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
30
  private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouse_id", TType.I64, (short)2);
31
  private static final TField LINEITEMS_FIELD_DESC = new TField("lineitems", TType.LIST, (short)3);
32
  private static final TField LOGISTICS_PROVIDER_ID_FIELD_DESC = new TField("logistics_provider_id", TType.I64, (short)4);
33
  private static final TField AIRWAYBILL_NO_FIELD_DESC = new TField("airwaybill_no", TType.STRING, (short)5);
34
  private static final TField TRACKING_ID_FIELD_DESC = new TField("tracking_id", TType.STRING, (short)6);
35
  private static final TField EXPECTED_DELIVERY_TIME_FIELD_DESC = new TField("expected_delivery_time", TType.I64, (short)7);
36
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customer_id", TType.I64, (short)8);
37
  private static final TField CUSTOMER_NAME_FIELD_DESC = new TField("customer_name", TType.STRING, (short)9);
38
  private static final TField CUSTOMER_MOBILENUMBER_FIELD_DESC = new TField("customer_mobilenumber", TType.STRING, (short)10);
39
  private static final TField CUSTOMER_PINCODE_FIELD_DESC = new TField("customer_pincode", TType.STRING, (short)11);
40
  private static final TField CUSTOMER_ADDRESS_FIELD_DESC = new TField("customer_address", TType.STRING, (short)12);
41
  private static final TField CUSTOMER_EMAIL_FIELD_DESC = new TField("customer_email", TType.STRING, (short)13);
42
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)14);
43
  private static final TField STATUS_DESCRIPTION_FIELD_DESC = new TField("statusDescription", TType.STRING, (short)15);
44
  private static final TField TOTAL_AMOUNT_FIELD_DESC = new TField("total_amount", TType.DOUBLE, (short)16);
45
  private static final TField TOTAL_WEIGHT_FIELD_DESC = new TField("total_weight", TType.DOUBLE, (short)17);
46
  private static final TField INVOICE_NUMBER_FIELD_DESC = new TField("invoice_number", TType.STRING, (short)18);
47
  private static final TField BILLED_BY_FIELD_DESC = new TField("billed_by", TType.STRING, (short)19);
48
  private static final TField CREATED_TIMESTAMP_FIELD_DESC = new TField("created_timestamp", TType.I64, (short)20);
49
  private static final TField ACCEPTED_TIMESTAMP_FIELD_DESC = new TField("accepted_timestamp", TType.I64, (short)21);
50
  private static final TField BILLING_TIMESTAMP_FIELD_DESC = new TField("billing_timestamp", TType.I64, (short)22);
51
  private static final TField SHIPPING_TIMESTAMP_FIELD_DESC = new TField("shipping_timestamp", TType.I64, (short)23);
52
  private static final TField DELIVERY_TIMESTAMP_FIELD_DESC = new TField("delivery_timestamp", TType.I64, (short)24);
640 chandransh 53
  private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacket_number", TType.I64, (short)25);
668 chandransh 54
  private static final TField CUSTOMER_CITY_FIELD_DESC = new TField("customer_city", TType.STRING, (short)26);
55
  private static final TField CUSTOMER_STATE_FIELD_DESC = new TField("customer_state", TType.STRING, (short)27);
483 rajveer 56
 
57
  private long id;
58
  private long warehouse_id;
59
  private List<LineItem> lineitems;
60
  private long logistics_provider_id;
61
  private String airwaybill_no;
62
  private String tracking_id;
63
  private long expected_delivery_time;
64
  private long customer_id;
65
  private String customer_name;
66
  private String customer_mobilenumber;
67
  private String customer_pincode;
68
  private String customer_address;
69
  private String customer_email;
70
  private OrderStatus status;
71
  private String statusDescription;
72
  private double total_amount;
73
  private double total_weight;
74
  private String invoice_number;
75
  private String billed_by;
76
  private long created_timestamp;
77
  private long accepted_timestamp;
78
  private long billing_timestamp;
79
  private long shipping_timestamp;
80
  private long delivery_timestamp;
640 chandransh 81
  private long jacket_number;
668 chandransh 82
  private String customer_city;
83
  private String customer_state;
483 rajveer 84
 
85
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
86
  public enum _Fields implements TFieldIdEnum {
87
    ID((short)1, "id"),
88
    WAREHOUSE_ID((short)2, "warehouse_id"),
89
    /**
90
     * 	item info
91
     * *
92
     */
93
    LINEITEMS((short)3, "lineitems"),
94
    /**
95
     *   logistics info
96
     * *
97
     */
98
    LOGISTICS_PROVIDER_ID((short)4, "logistics_provider_id"),
99
    AIRWAYBILL_NO((short)5, "airwaybill_no"),
100
    TRACKING_ID((short)6, "tracking_id"),
101
    EXPECTED_DELIVERY_TIME((short)7, "expected_delivery_time"),
102
    /**
103
     *   customer info
104
     * *
105
     */
106
    CUSTOMER_ID((short)8, "customer_id"),
107
    CUSTOMER_NAME((short)9, "customer_name"),
108
    CUSTOMER_MOBILENUMBER((short)10, "customer_mobilenumber"),
109
    CUSTOMER_PINCODE((short)11, "customer_pincode"),
110
    CUSTOMER_ADDRESS((short)12, "customer_address"),
111
    CUSTOMER_EMAIL((short)13, "customer_email"),
112
    /**
113
     * 	status and misc info
114
     * *
115
     * 
116
     * @see OrderStatus
117
     */
118
    STATUS((short)14, "status"),
119
    STATUS_DESCRIPTION((short)15, "statusDescription"),
120
    TOTAL_AMOUNT((short)16, "total_amount"),
121
    TOTAL_WEIGHT((short)17, "total_weight"),
122
    /**
123
     * 	billing info
124
     * *
125
     */
126
    INVOICE_NUMBER((short)18, "invoice_number"),
127
    BILLED_BY((short)19, "billed_by"),
128
    /**
129
     * 	timestamps
130
     * *
131
     */
132
    CREATED_TIMESTAMP((short)20, "created_timestamp"),
133
    ACCEPTED_TIMESTAMP((short)21, "accepted_timestamp"),
134
    BILLING_TIMESTAMP((short)22, "billing_timestamp"),
135
    SHIPPING_TIMESTAMP((short)23, "shipping_timestamp"),
640 chandransh 136
    DELIVERY_TIMESTAMP((short)24, "delivery_timestamp"),
668 chandransh 137
    JACKET_NUMBER((short)25, "jacket_number"),
138
    CUSTOMER_CITY((short)26, "customer_city"),
139
    CUSTOMER_STATE((short)27, "customer_state");
483 rajveer 140
 
141
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
142
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
143
 
144
    static {
145
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
146
        byId.put((int)field._thriftId, field);
147
        byName.put(field.getFieldName(), field);
148
      }
149
    }
150
 
151
    /**
152
     * Find the _Fields constant that matches fieldId, or null if its not found.
153
     */
154
    public static _Fields findByThriftId(int fieldId) {
155
      return byId.get(fieldId);
156
    }
157
 
158
    /**
159
     * Find the _Fields constant that matches fieldId, throwing an exception
160
     * if it is not found.
161
     */
162
    public static _Fields findByThriftIdOrThrow(int fieldId) {
163
      _Fields fields = findByThriftId(fieldId);
164
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
165
      return fields;
166
    }
167
 
168
    /**
169
     * Find the _Fields constant that matches name, or null if its not found.
170
     */
171
    public static _Fields findByName(String name) {
172
      return byName.get(name);
173
    }
174
 
175
    private final short _thriftId;
176
    private final String _fieldName;
177
 
178
    _Fields(short thriftId, String fieldName) {
179
      _thriftId = thriftId;
180
      _fieldName = fieldName;
181
    }
182
 
183
    public short getThriftFieldId() {
184
      return _thriftId;
185
    }
186
 
187
    public String getFieldName() {
188
      return _fieldName;
189
    }
190
  }
191
 
192
  // isset id assignments
193
  private static final int __ID_ISSET_ID = 0;
194
  private static final int __WAREHOUSE_ID_ISSET_ID = 1;
195
  private static final int __LOGISTICS_PROVIDER_ID_ISSET_ID = 2;
196
  private static final int __EXPECTED_DELIVERY_TIME_ISSET_ID = 3;
197
  private static final int __CUSTOMER_ID_ISSET_ID = 4;
198
  private static final int __TOTAL_AMOUNT_ISSET_ID = 5;
199
  private static final int __TOTAL_WEIGHT_ISSET_ID = 6;
200
  private static final int __CREATED_TIMESTAMP_ISSET_ID = 7;
201
  private static final int __ACCEPTED_TIMESTAMP_ISSET_ID = 8;
202
  private static final int __BILLING_TIMESTAMP_ISSET_ID = 9;
203
  private static final int __SHIPPING_TIMESTAMP_ISSET_ID = 10;
204
  private static final int __DELIVERY_TIMESTAMP_ISSET_ID = 11;
640 chandransh 205
  private static final int __JACKET_NUMBER_ISSET_ID = 12;
206
  private BitSet __isset_bit_vector = new BitSet(13);
483 rajveer 207
 
208
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
209
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
210
        new FieldValueMetaData(TType.I64)));
211
    put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouse_id", TFieldRequirementType.DEFAULT, 
212
        new FieldValueMetaData(TType.I64)));
213
    put(_Fields.LINEITEMS, new FieldMetaData("lineitems", TFieldRequirementType.DEFAULT, 
214
        new ListMetaData(TType.LIST, 
215
            new StructMetaData(TType.STRUCT, LineItem.class))));
216
    put(_Fields.LOGISTICS_PROVIDER_ID, new FieldMetaData("logistics_provider_id", TFieldRequirementType.DEFAULT, 
217
        new FieldValueMetaData(TType.I64)));
218
    put(_Fields.AIRWAYBILL_NO, new FieldMetaData("airwaybill_no", TFieldRequirementType.DEFAULT, 
219
        new FieldValueMetaData(TType.STRING)));
220
    put(_Fields.TRACKING_ID, new FieldMetaData("tracking_id", TFieldRequirementType.DEFAULT, 
221
        new FieldValueMetaData(TType.STRING)));
222
    put(_Fields.EXPECTED_DELIVERY_TIME, new FieldMetaData("expected_delivery_time", TFieldRequirementType.DEFAULT, 
223
        new FieldValueMetaData(TType.I64)));
224
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customer_id", TFieldRequirementType.DEFAULT, 
225
        new FieldValueMetaData(TType.I64)));
226
    put(_Fields.CUSTOMER_NAME, new FieldMetaData("customer_name", TFieldRequirementType.DEFAULT, 
227
        new FieldValueMetaData(TType.STRING)));
228
    put(_Fields.CUSTOMER_MOBILENUMBER, new FieldMetaData("customer_mobilenumber", TFieldRequirementType.DEFAULT, 
229
        new FieldValueMetaData(TType.STRING)));
230
    put(_Fields.CUSTOMER_PINCODE, new FieldMetaData("customer_pincode", TFieldRequirementType.DEFAULT, 
231
        new FieldValueMetaData(TType.STRING)));
232
    put(_Fields.CUSTOMER_ADDRESS, new FieldMetaData("customer_address", TFieldRequirementType.DEFAULT, 
233
        new FieldValueMetaData(TType.STRING)));
234
    put(_Fields.CUSTOMER_EMAIL, new FieldMetaData("customer_email", TFieldRequirementType.DEFAULT, 
235
        new FieldValueMetaData(TType.STRING)));
236
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
237
        new EnumMetaData(TType.ENUM, OrderStatus.class)));
238
    put(_Fields.STATUS_DESCRIPTION, new FieldMetaData("statusDescription", TFieldRequirementType.DEFAULT, 
239
        new FieldValueMetaData(TType.STRING)));
240
    put(_Fields.TOTAL_AMOUNT, new FieldMetaData("total_amount", TFieldRequirementType.DEFAULT, 
241
        new FieldValueMetaData(TType.DOUBLE)));
242
    put(_Fields.TOTAL_WEIGHT, new FieldMetaData("total_weight", TFieldRequirementType.DEFAULT, 
243
        new FieldValueMetaData(TType.DOUBLE)));
244
    put(_Fields.INVOICE_NUMBER, new FieldMetaData("invoice_number", TFieldRequirementType.DEFAULT, 
245
        new FieldValueMetaData(TType.STRING)));
246
    put(_Fields.BILLED_BY, new FieldMetaData("billed_by", TFieldRequirementType.DEFAULT, 
247
        new FieldValueMetaData(TType.STRING)));
248
    put(_Fields.CREATED_TIMESTAMP, new FieldMetaData("created_timestamp", TFieldRequirementType.DEFAULT, 
249
        new FieldValueMetaData(TType.I64)));
250
    put(_Fields.ACCEPTED_TIMESTAMP, new FieldMetaData("accepted_timestamp", TFieldRequirementType.DEFAULT, 
251
        new FieldValueMetaData(TType.I64)));
252
    put(_Fields.BILLING_TIMESTAMP, new FieldMetaData("billing_timestamp", TFieldRequirementType.DEFAULT, 
253
        new FieldValueMetaData(TType.I64)));
254
    put(_Fields.SHIPPING_TIMESTAMP, new FieldMetaData("shipping_timestamp", TFieldRequirementType.DEFAULT, 
255
        new FieldValueMetaData(TType.I64)));
256
    put(_Fields.DELIVERY_TIMESTAMP, new FieldMetaData("delivery_timestamp", TFieldRequirementType.DEFAULT, 
257
        new FieldValueMetaData(TType.I64)));
640 chandransh 258
    put(_Fields.JACKET_NUMBER, new FieldMetaData("jacket_number", TFieldRequirementType.DEFAULT, 
259
        new FieldValueMetaData(TType.I64)));
668 chandransh 260
    put(_Fields.CUSTOMER_CITY, new FieldMetaData("customer_city", TFieldRequirementType.DEFAULT, 
261
        new FieldValueMetaData(TType.STRING)));
262
    put(_Fields.CUSTOMER_STATE, new FieldMetaData("customer_state", TFieldRequirementType.DEFAULT, 
263
        new FieldValueMetaData(TType.STRING)));
483 rajveer 264
  }});
265
 
266
  static {
267
    FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
268
  }
269
 
270
  public Order() {
271
  }
272
 
273
  public Order(
274
    long id,
275
    long warehouse_id,
276
    List<LineItem> lineitems,
277
    long logistics_provider_id,
278
    String airwaybill_no,
279
    String tracking_id,
280
    long expected_delivery_time,
281
    long customer_id,
282
    String customer_name,
283
    String customer_mobilenumber,
284
    String customer_pincode,
285
    String customer_address,
286
    String customer_email,
287
    OrderStatus status,
288
    String statusDescription,
289
    double total_amount,
290
    double total_weight,
291
    String invoice_number,
292
    String billed_by,
293
    long created_timestamp,
294
    long accepted_timestamp,
295
    long billing_timestamp,
296
    long shipping_timestamp,
640 chandransh 297
    long delivery_timestamp,
668 chandransh 298
    long jacket_number,
299
    String customer_city,
300
    String customer_state)
483 rajveer 301
  {
302
    this();
303
    this.id = id;
304
    setIdIsSet(true);
305
    this.warehouse_id = warehouse_id;
306
    setWarehouse_idIsSet(true);
307
    this.lineitems = lineitems;
308
    this.logistics_provider_id = logistics_provider_id;
309
    setLogistics_provider_idIsSet(true);
310
    this.airwaybill_no = airwaybill_no;
311
    this.tracking_id = tracking_id;
312
    this.expected_delivery_time = expected_delivery_time;
313
    setExpected_delivery_timeIsSet(true);
314
    this.customer_id = customer_id;
315
    setCustomer_idIsSet(true);
316
    this.customer_name = customer_name;
317
    this.customer_mobilenumber = customer_mobilenumber;
318
    this.customer_pincode = customer_pincode;
319
    this.customer_address = customer_address;
320
    this.customer_email = customer_email;
321
    this.status = status;
322
    this.statusDescription = statusDescription;
323
    this.total_amount = total_amount;
324
    setTotal_amountIsSet(true);
325
    this.total_weight = total_weight;
326
    setTotal_weightIsSet(true);
327
    this.invoice_number = invoice_number;
328
    this.billed_by = billed_by;
329
    this.created_timestamp = created_timestamp;
330
    setCreated_timestampIsSet(true);
331
    this.accepted_timestamp = accepted_timestamp;
332
    setAccepted_timestampIsSet(true);
333
    this.billing_timestamp = billing_timestamp;
334
    setBilling_timestampIsSet(true);
335
    this.shipping_timestamp = shipping_timestamp;
336
    setShipping_timestampIsSet(true);
337
    this.delivery_timestamp = delivery_timestamp;
338
    setDelivery_timestampIsSet(true);
640 chandransh 339
    this.jacket_number = jacket_number;
340
    setJacket_numberIsSet(true);
668 chandransh 341
    this.customer_city = customer_city;
342
    this.customer_state = customer_state;
483 rajveer 343
  }
344
 
345
  /**
346
   * Performs a deep copy on <i>other</i>.
347
   */
348
  public Order(Order other) {
349
    __isset_bit_vector.clear();
350
    __isset_bit_vector.or(other.__isset_bit_vector);
351
    this.id = other.id;
352
    this.warehouse_id = other.warehouse_id;
353
    if (other.isSetLineitems()) {
354
      List<LineItem> __this__lineitems = new ArrayList<LineItem>();
355
      for (LineItem other_element : other.lineitems) {
356
        __this__lineitems.add(new LineItem(other_element));
357
      }
358
      this.lineitems = __this__lineitems;
359
    }
360
    this.logistics_provider_id = other.logistics_provider_id;
361
    if (other.isSetAirwaybill_no()) {
362
      this.airwaybill_no = other.airwaybill_no;
363
    }
364
    if (other.isSetTracking_id()) {
365
      this.tracking_id = other.tracking_id;
366
    }
367
    this.expected_delivery_time = other.expected_delivery_time;
368
    this.customer_id = other.customer_id;
369
    if (other.isSetCustomer_name()) {
370
      this.customer_name = other.customer_name;
371
    }
372
    if (other.isSetCustomer_mobilenumber()) {
373
      this.customer_mobilenumber = other.customer_mobilenumber;
374
    }
375
    if (other.isSetCustomer_pincode()) {
376
      this.customer_pincode = other.customer_pincode;
377
    }
378
    if (other.isSetCustomer_address()) {
379
      this.customer_address = other.customer_address;
380
    }
381
    if (other.isSetCustomer_email()) {
382
      this.customer_email = other.customer_email;
383
    }
384
    if (other.isSetStatus()) {
385
      this.status = other.status;
386
    }
387
    if (other.isSetStatusDescription()) {
388
      this.statusDescription = other.statusDescription;
389
    }
390
    this.total_amount = other.total_amount;
391
    this.total_weight = other.total_weight;
392
    if (other.isSetInvoice_number()) {
393
      this.invoice_number = other.invoice_number;
394
    }
395
    if (other.isSetBilled_by()) {
396
      this.billed_by = other.billed_by;
397
    }
398
    this.created_timestamp = other.created_timestamp;
399
    this.accepted_timestamp = other.accepted_timestamp;
400
    this.billing_timestamp = other.billing_timestamp;
401
    this.shipping_timestamp = other.shipping_timestamp;
402
    this.delivery_timestamp = other.delivery_timestamp;
640 chandransh 403
    this.jacket_number = other.jacket_number;
668 chandransh 404
    if (other.isSetCustomer_city()) {
405
      this.customer_city = other.customer_city;
406
    }
407
    if (other.isSetCustomer_state()) {
408
      this.customer_state = other.customer_state;
409
    }
483 rajveer 410
  }
411
 
412
  public Order deepCopy() {
413
    return new Order(this);
414
  }
415
 
416
  @Deprecated
417
  public Order clone() {
418
    return new Order(this);
419
  }
420
 
421
  public long getId() {
422
    return this.id;
423
  }
424
 
425
  public Order setId(long id) {
426
    this.id = id;
427
    setIdIsSet(true);
428
    return this;
429
  }
430
 
431
  public void unsetId() {
432
    __isset_bit_vector.clear(__ID_ISSET_ID);
433
  }
434
 
435
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
436
  public boolean isSetId() {
437
    return __isset_bit_vector.get(__ID_ISSET_ID);
438
  }
439
 
440
  public void setIdIsSet(boolean value) {
441
    __isset_bit_vector.set(__ID_ISSET_ID, value);
442
  }
443
 
444
  public long getWarehouse_id() {
445
    return this.warehouse_id;
446
  }
447
 
448
  public Order setWarehouse_id(long warehouse_id) {
449
    this.warehouse_id = warehouse_id;
450
    setWarehouse_idIsSet(true);
451
    return this;
452
  }
453
 
454
  public void unsetWarehouse_id() {
455
    __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
456
  }
457
 
458
  /** Returns true if field warehouse_id is set (has been asigned a value) and false otherwise */
459
  public boolean isSetWarehouse_id() {
460
    return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
461
  }
462
 
463
  public void setWarehouse_idIsSet(boolean value) {
464
    __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
465
  }
466
 
467
  public int getLineitemsSize() {
468
    return (this.lineitems == null) ? 0 : this.lineitems.size();
469
  }
470
 
471
  public java.util.Iterator<LineItem> getLineitemsIterator() {
472
    return (this.lineitems == null) ? null : this.lineitems.iterator();
473
  }
474
 
475
  public void addToLineitems(LineItem elem) {
476
    if (this.lineitems == null) {
477
      this.lineitems = new ArrayList<LineItem>();
478
    }
479
    this.lineitems.add(elem);
480
  }
481
 
482
  /**
483
   * 	item info
484
   * *
485
   */
486
  public List<LineItem> getLineitems() {
487
    return this.lineitems;
488
  }
489
 
490
  /**
491
   * 	item info
492
   * *
493
   */
494
  public Order setLineitems(List<LineItem> lineitems) {
495
    this.lineitems = lineitems;
496
    return this;
497
  }
498
 
499
  public void unsetLineitems() {
500
    this.lineitems = null;
501
  }
502
 
503
  /** Returns true if field lineitems is set (has been asigned a value) and false otherwise */
504
  public boolean isSetLineitems() {
505
    return this.lineitems != null;
506
  }
507
 
508
  public void setLineitemsIsSet(boolean value) {
509
    if (!value) {
510
      this.lineitems = null;
511
    }
512
  }
513
 
514
  /**
515
   *   logistics info
516
   * *
517
   */
518
  public long getLogistics_provider_id() {
519
    return this.logistics_provider_id;
520
  }
521
 
522
  /**
523
   *   logistics info
524
   * *
525
   */
526
  public Order setLogistics_provider_id(long logistics_provider_id) {
527
    this.logistics_provider_id = logistics_provider_id;
528
    setLogistics_provider_idIsSet(true);
529
    return this;
530
  }
531
 
532
  public void unsetLogistics_provider_id() {
533
    __isset_bit_vector.clear(__LOGISTICS_PROVIDER_ID_ISSET_ID);
534
  }
535
 
536
  /** Returns true if field logistics_provider_id is set (has been asigned a value) and false otherwise */
537
  public boolean isSetLogistics_provider_id() {
538
    return __isset_bit_vector.get(__LOGISTICS_PROVIDER_ID_ISSET_ID);
539
  }
540
 
541
  public void setLogistics_provider_idIsSet(boolean value) {
542
    __isset_bit_vector.set(__LOGISTICS_PROVIDER_ID_ISSET_ID, value);
543
  }
544
 
545
  public String getAirwaybill_no() {
546
    return this.airwaybill_no;
547
  }
548
 
549
  public Order setAirwaybill_no(String airwaybill_no) {
550
    this.airwaybill_no = airwaybill_no;
551
    return this;
552
  }
553
 
554
  public void unsetAirwaybill_no() {
555
    this.airwaybill_no = null;
556
  }
557
 
558
  /** Returns true if field airwaybill_no is set (has been asigned a value) and false otherwise */
559
  public boolean isSetAirwaybill_no() {
560
    return this.airwaybill_no != null;
561
  }
562
 
563
  public void setAirwaybill_noIsSet(boolean value) {
564
    if (!value) {
565
      this.airwaybill_no = null;
566
    }
567
  }
568
 
569
  public String getTracking_id() {
570
    return this.tracking_id;
571
  }
572
 
573
  public Order setTracking_id(String tracking_id) {
574
    this.tracking_id = tracking_id;
575
    return this;
576
  }
577
 
578
  public void unsetTracking_id() {
579
    this.tracking_id = null;
580
  }
581
 
582
  /** Returns true if field tracking_id is set (has been asigned a value) and false otherwise */
583
  public boolean isSetTracking_id() {
584
    return this.tracking_id != null;
585
  }
586
 
587
  public void setTracking_idIsSet(boolean value) {
588
    if (!value) {
589
      this.tracking_id = null;
590
    }
591
  }
592
 
593
  public long getExpected_delivery_time() {
594
    return this.expected_delivery_time;
595
  }
596
 
597
  public Order setExpected_delivery_time(long expected_delivery_time) {
598
    this.expected_delivery_time = expected_delivery_time;
599
    setExpected_delivery_timeIsSet(true);
600
    return this;
601
  }
602
 
603
  public void unsetExpected_delivery_time() {
604
    __isset_bit_vector.clear(__EXPECTED_DELIVERY_TIME_ISSET_ID);
605
  }
606
 
607
  /** Returns true if field expected_delivery_time is set (has been asigned a value) and false otherwise */
608
  public boolean isSetExpected_delivery_time() {
609
    return __isset_bit_vector.get(__EXPECTED_DELIVERY_TIME_ISSET_ID);
610
  }
611
 
612
  public void setExpected_delivery_timeIsSet(boolean value) {
613
    __isset_bit_vector.set(__EXPECTED_DELIVERY_TIME_ISSET_ID, value);
614
  }
615
 
616
  /**
617
   *   customer info
618
   * *
619
   */
620
  public long getCustomer_id() {
621
    return this.customer_id;
622
  }
623
 
624
  /**
625
   *   customer info
626
   * *
627
   */
628
  public Order setCustomer_id(long customer_id) {
629
    this.customer_id = customer_id;
630
    setCustomer_idIsSet(true);
631
    return this;
632
  }
633
 
634
  public void unsetCustomer_id() {
635
    __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
636
  }
637
 
638
  /** Returns true if field customer_id is set (has been asigned a value) and false otherwise */
639
  public boolean isSetCustomer_id() {
640
    return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
641
  }
642
 
643
  public void setCustomer_idIsSet(boolean value) {
644
    __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
645
  }
646
 
647
  public String getCustomer_name() {
648
    return this.customer_name;
649
  }
650
 
651
  public Order setCustomer_name(String customer_name) {
652
    this.customer_name = customer_name;
653
    return this;
654
  }
655
 
656
  public void unsetCustomer_name() {
657
    this.customer_name = null;
658
  }
659
 
660
  /** Returns true if field customer_name is set (has been asigned a value) and false otherwise */
661
  public boolean isSetCustomer_name() {
662
    return this.customer_name != null;
663
  }
664
 
665
  public void setCustomer_nameIsSet(boolean value) {
666
    if (!value) {
667
      this.customer_name = null;
668
    }
669
  }
670
 
671
  public String getCustomer_mobilenumber() {
672
    return this.customer_mobilenumber;
673
  }
674
 
675
  public Order setCustomer_mobilenumber(String customer_mobilenumber) {
676
    this.customer_mobilenumber = customer_mobilenumber;
677
    return this;
678
  }
679
 
680
  public void unsetCustomer_mobilenumber() {
681
    this.customer_mobilenumber = null;
682
  }
683
 
684
  /** Returns true if field customer_mobilenumber is set (has been asigned a value) and false otherwise */
685
  public boolean isSetCustomer_mobilenumber() {
686
    return this.customer_mobilenumber != null;
687
  }
688
 
689
  public void setCustomer_mobilenumberIsSet(boolean value) {
690
    if (!value) {
691
      this.customer_mobilenumber = null;
692
    }
693
  }
694
 
695
  public String getCustomer_pincode() {
696
    return this.customer_pincode;
697
  }
698
 
699
  public Order setCustomer_pincode(String customer_pincode) {
700
    this.customer_pincode = customer_pincode;
701
    return this;
702
  }
703
 
704
  public void unsetCustomer_pincode() {
705
    this.customer_pincode = null;
706
  }
707
 
708
  /** Returns true if field customer_pincode is set (has been asigned a value) and false otherwise */
709
  public boolean isSetCustomer_pincode() {
710
    return this.customer_pincode != null;
711
  }
712
 
713
  public void setCustomer_pincodeIsSet(boolean value) {
714
    if (!value) {
715
      this.customer_pincode = null;
716
    }
717
  }
718
 
719
  public String getCustomer_address() {
720
    return this.customer_address;
721
  }
722
 
723
  public Order setCustomer_address(String customer_address) {
724
    this.customer_address = customer_address;
725
    return this;
726
  }
727
 
728
  public void unsetCustomer_address() {
729
    this.customer_address = null;
730
  }
731
 
732
  /** Returns true if field customer_address is set (has been asigned a value) and false otherwise */
733
  public boolean isSetCustomer_address() {
734
    return this.customer_address != null;
735
  }
736
 
737
  public void setCustomer_addressIsSet(boolean value) {
738
    if (!value) {
739
      this.customer_address = null;
740
    }
741
  }
742
 
743
  public String getCustomer_email() {
744
    return this.customer_email;
745
  }
746
 
747
  public Order setCustomer_email(String customer_email) {
748
    this.customer_email = customer_email;
749
    return this;
750
  }
751
 
752
  public void unsetCustomer_email() {
753
    this.customer_email = null;
754
  }
755
 
756
  /** Returns true if field customer_email is set (has been asigned a value) and false otherwise */
757
  public boolean isSetCustomer_email() {
758
    return this.customer_email != null;
759
  }
760
 
761
  public void setCustomer_emailIsSet(boolean value) {
762
    if (!value) {
763
      this.customer_email = null;
764
    }
765
  }
766
 
767
  /**
768
   * 	status and misc info
769
   * *
770
   * 
771
   * @see OrderStatus
772
   */
773
  public OrderStatus getStatus() {
774
    return this.status;
775
  }
776
 
777
  /**
778
   * 	status and misc info
779
   * *
780
   * 
781
   * @see OrderStatus
782
   */
783
  public Order setStatus(OrderStatus status) {
784
    this.status = status;
785
    return this;
786
  }
787
 
788
  public void unsetStatus() {
789
    this.status = null;
790
  }
791
 
792
  /** Returns true if field status is set (has been asigned a value) and false otherwise */
793
  public boolean isSetStatus() {
794
    return this.status != null;
795
  }
796
 
797
  public void setStatusIsSet(boolean value) {
798
    if (!value) {
799
      this.status = null;
800
    }
801
  }
802
 
803
  public String getStatusDescription() {
804
    return this.statusDescription;
805
  }
806
 
807
  public Order setStatusDescription(String statusDescription) {
808
    this.statusDescription = statusDescription;
809
    return this;
810
  }
811
 
812
  public void unsetStatusDescription() {
813
    this.statusDescription = null;
814
  }
815
 
816
  /** Returns true if field statusDescription is set (has been asigned a value) and false otherwise */
817
  public boolean isSetStatusDescription() {
818
    return this.statusDescription != null;
819
  }
820
 
821
  public void setStatusDescriptionIsSet(boolean value) {
822
    if (!value) {
823
      this.statusDescription = null;
824
    }
825
  }
826
 
827
  public double getTotal_amount() {
828
    return this.total_amount;
829
  }
830
 
831
  public Order setTotal_amount(double total_amount) {
832
    this.total_amount = total_amount;
833
    setTotal_amountIsSet(true);
834
    return this;
835
  }
836
 
837
  public void unsetTotal_amount() {
838
    __isset_bit_vector.clear(__TOTAL_AMOUNT_ISSET_ID);
839
  }
840
 
841
  /** Returns true if field total_amount is set (has been asigned a value) and false otherwise */
842
  public boolean isSetTotal_amount() {
843
    return __isset_bit_vector.get(__TOTAL_AMOUNT_ISSET_ID);
844
  }
845
 
846
  public void setTotal_amountIsSet(boolean value) {
847
    __isset_bit_vector.set(__TOTAL_AMOUNT_ISSET_ID, value);
848
  }
849
 
850
  public double getTotal_weight() {
851
    return this.total_weight;
852
  }
853
 
854
  public Order setTotal_weight(double total_weight) {
855
    this.total_weight = total_weight;
856
    setTotal_weightIsSet(true);
857
    return this;
858
  }
859
 
860
  public void unsetTotal_weight() {
861
    __isset_bit_vector.clear(__TOTAL_WEIGHT_ISSET_ID);
862
  }
863
 
864
  /** Returns true if field total_weight is set (has been asigned a value) and false otherwise */
865
  public boolean isSetTotal_weight() {
866
    return __isset_bit_vector.get(__TOTAL_WEIGHT_ISSET_ID);
867
  }
868
 
869
  public void setTotal_weightIsSet(boolean value) {
870
    __isset_bit_vector.set(__TOTAL_WEIGHT_ISSET_ID, value);
871
  }
872
 
873
  /**
874
   * 	billing info
875
   * *
876
   */
877
  public String getInvoice_number() {
878
    return this.invoice_number;
879
  }
880
 
881
  /**
882
   * 	billing info
883
   * *
884
   */
885
  public Order setInvoice_number(String invoice_number) {
886
    this.invoice_number = invoice_number;
887
    return this;
888
  }
889
 
890
  public void unsetInvoice_number() {
891
    this.invoice_number = null;
892
  }
893
 
894
  /** Returns true if field invoice_number is set (has been asigned a value) and false otherwise */
895
  public boolean isSetInvoice_number() {
896
    return this.invoice_number != null;
897
  }
898
 
899
  public void setInvoice_numberIsSet(boolean value) {
900
    if (!value) {
901
      this.invoice_number = null;
902
    }
903
  }
904
 
905
  public String getBilled_by() {
906
    return this.billed_by;
907
  }
908
 
909
  public Order setBilled_by(String billed_by) {
910
    this.billed_by = billed_by;
911
    return this;
912
  }
913
 
914
  public void unsetBilled_by() {
915
    this.billed_by = null;
916
  }
917
 
918
  /** Returns true if field billed_by is set (has been asigned a value) and false otherwise */
919
  public boolean isSetBilled_by() {
920
    return this.billed_by != null;
921
  }
922
 
923
  public void setBilled_byIsSet(boolean value) {
924
    if (!value) {
925
      this.billed_by = null;
926
    }
927
  }
928
 
929
  /**
930
   * 	timestamps
931
   * *
932
   */
933
  public long getCreated_timestamp() {
934
    return this.created_timestamp;
935
  }
936
 
937
  /**
938
   * 	timestamps
939
   * *
940
   */
941
  public Order setCreated_timestamp(long created_timestamp) {
942
    this.created_timestamp = created_timestamp;
943
    setCreated_timestampIsSet(true);
944
    return this;
945
  }
946
 
947
  public void unsetCreated_timestamp() {
948
    __isset_bit_vector.clear(__CREATED_TIMESTAMP_ISSET_ID);
949
  }
950
 
951
  /** Returns true if field created_timestamp is set (has been asigned a value) and false otherwise */
952
  public boolean isSetCreated_timestamp() {
953
    return __isset_bit_vector.get(__CREATED_TIMESTAMP_ISSET_ID);
954
  }
955
 
956
  public void setCreated_timestampIsSet(boolean value) {
957
    __isset_bit_vector.set(__CREATED_TIMESTAMP_ISSET_ID, value);
958
  }
959
 
960
  public long getAccepted_timestamp() {
961
    return this.accepted_timestamp;
962
  }
963
 
964
  public Order setAccepted_timestamp(long accepted_timestamp) {
965
    this.accepted_timestamp = accepted_timestamp;
966
    setAccepted_timestampIsSet(true);
967
    return this;
968
  }
969
 
970
  public void unsetAccepted_timestamp() {
971
    __isset_bit_vector.clear(__ACCEPTED_TIMESTAMP_ISSET_ID);
972
  }
973
 
974
  /** Returns true if field accepted_timestamp is set (has been asigned a value) and false otherwise */
975
  public boolean isSetAccepted_timestamp() {
976
    return __isset_bit_vector.get(__ACCEPTED_TIMESTAMP_ISSET_ID);
977
  }
978
 
979
  public void setAccepted_timestampIsSet(boolean value) {
980
    __isset_bit_vector.set(__ACCEPTED_TIMESTAMP_ISSET_ID, value);
981
  }
982
 
983
  public long getBilling_timestamp() {
984
    return this.billing_timestamp;
985
  }
986
 
987
  public Order setBilling_timestamp(long billing_timestamp) {
988
    this.billing_timestamp = billing_timestamp;
989
    setBilling_timestampIsSet(true);
990
    return this;
991
  }
992
 
993
  public void unsetBilling_timestamp() {
994
    __isset_bit_vector.clear(__BILLING_TIMESTAMP_ISSET_ID);
995
  }
996
 
997
  /** Returns true if field billing_timestamp is set (has been asigned a value) and false otherwise */
998
  public boolean isSetBilling_timestamp() {
999
    return __isset_bit_vector.get(__BILLING_TIMESTAMP_ISSET_ID);
1000
  }
1001
 
1002
  public void setBilling_timestampIsSet(boolean value) {
1003
    __isset_bit_vector.set(__BILLING_TIMESTAMP_ISSET_ID, value);
1004
  }
1005
 
1006
  public long getShipping_timestamp() {
1007
    return this.shipping_timestamp;
1008
  }
1009
 
1010
  public Order setShipping_timestamp(long shipping_timestamp) {
1011
    this.shipping_timestamp = shipping_timestamp;
1012
    setShipping_timestampIsSet(true);
1013
    return this;
1014
  }
1015
 
1016
  public void unsetShipping_timestamp() {
1017
    __isset_bit_vector.clear(__SHIPPING_TIMESTAMP_ISSET_ID);
1018
  }
1019
 
1020
  /** Returns true if field shipping_timestamp is set (has been asigned a value) and false otherwise */
1021
  public boolean isSetShipping_timestamp() {
1022
    return __isset_bit_vector.get(__SHIPPING_TIMESTAMP_ISSET_ID);
1023
  }
1024
 
1025
  public void setShipping_timestampIsSet(boolean value) {
1026
    __isset_bit_vector.set(__SHIPPING_TIMESTAMP_ISSET_ID, value);
1027
  }
1028
 
1029
  public long getDelivery_timestamp() {
1030
    return this.delivery_timestamp;
1031
  }
1032
 
1033
  public Order setDelivery_timestamp(long delivery_timestamp) {
1034
    this.delivery_timestamp = delivery_timestamp;
1035
    setDelivery_timestampIsSet(true);
1036
    return this;
1037
  }
1038
 
1039
  public void unsetDelivery_timestamp() {
1040
    __isset_bit_vector.clear(__DELIVERY_TIMESTAMP_ISSET_ID);
1041
  }
1042
 
1043
  /** Returns true if field delivery_timestamp is set (has been asigned a value) and false otherwise */
1044
  public boolean isSetDelivery_timestamp() {
1045
    return __isset_bit_vector.get(__DELIVERY_TIMESTAMP_ISSET_ID);
1046
  }
1047
 
1048
  public void setDelivery_timestampIsSet(boolean value) {
1049
    __isset_bit_vector.set(__DELIVERY_TIMESTAMP_ISSET_ID, value);
1050
  }
1051
 
640 chandransh 1052
  public long getJacket_number() {
1053
    return this.jacket_number;
1054
  }
1055
 
1056
  public Order setJacket_number(long jacket_number) {
1057
    this.jacket_number = jacket_number;
1058
    setJacket_numberIsSet(true);
1059
    return this;
1060
  }
1061
 
1062
  public void unsetJacket_number() {
1063
    __isset_bit_vector.clear(__JACKET_NUMBER_ISSET_ID);
1064
  }
1065
 
1066
  /** Returns true if field jacket_number is set (has been asigned a value) and false otherwise */
1067
  public boolean isSetJacket_number() {
1068
    return __isset_bit_vector.get(__JACKET_NUMBER_ISSET_ID);
1069
  }
1070
 
1071
  public void setJacket_numberIsSet(boolean value) {
1072
    __isset_bit_vector.set(__JACKET_NUMBER_ISSET_ID, value);
1073
  }
1074
 
668 chandransh 1075
  public String getCustomer_city() {
1076
    return this.customer_city;
1077
  }
1078
 
1079
  public Order setCustomer_city(String customer_city) {
1080
    this.customer_city = customer_city;
1081
    return this;
1082
  }
1083
 
1084
  public void unsetCustomer_city() {
1085
    this.customer_city = null;
1086
  }
1087
 
1088
  /** Returns true if field customer_city is set (has been asigned a value) and false otherwise */
1089
  public boolean isSetCustomer_city() {
1090
    return this.customer_city != null;
1091
  }
1092
 
1093
  public void setCustomer_cityIsSet(boolean value) {
1094
    if (!value) {
1095
      this.customer_city = null;
1096
    }
1097
  }
1098
 
1099
  public String getCustomer_state() {
1100
    return this.customer_state;
1101
  }
1102
 
1103
  public Order setCustomer_state(String customer_state) {
1104
    this.customer_state = customer_state;
1105
    return this;
1106
  }
1107
 
1108
  public void unsetCustomer_state() {
1109
    this.customer_state = null;
1110
  }
1111
 
1112
  /** Returns true if field customer_state is set (has been asigned a value) and false otherwise */
1113
  public boolean isSetCustomer_state() {
1114
    return this.customer_state != null;
1115
  }
1116
 
1117
  public void setCustomer_stateIsSet(boolean value) {
1118
    if (!value) {
1119
      this.customer_state = null;
1120
    }
1121
  }
1122
 
483 rajveer 1123
  public void setFieldValue(_Fields field, Object value) {
1124
    switch (field) {
1125
    case ID:
1126
      if (value == null) {
1127
        unsetId();
1128
      } else {
1129
        setId((Long)value);
1130
      }
1131
      break;
1132
 
1133
    case WAREHOUSE_ID:
1134
      if (value == null) {
1135
        unsetWarehouse_id();
1136
      } else {
1137
        setWarehouse_id((Long)value);
1138
      }
1139
      break;
1140
 
1141
    case LINEITEMS:
1142
      if (value == null) {
1143
        unsetLineitems();
1144
      } else {
1145
        setLineitems((List<LineItem>)value);
1146
      }
1147
      break;
1148
 
1149
    case LOGISTICS_PROVIDER_ID:
1150
      if (value == null) {
1151
        unsetLogistics_provider_id();
1152
      } else {
1153
        setLogistics_provider_id((Long)value);
1154
      }
1155
      break;
1156
 
1157
    case AIRWAYBILL_NO:
1158
      if (value == null) {
1159
        unsetAirwaybill_no();
1160
      } else {
1161
        setAirwaybill_no((String)value);
1162
      }
1163
      break;
1164
 
1165
    case TRACKING_ID:
1166
      if (value == null) {
1167
        unsetTracking_id();
1168
      } else {
1169
        setTracking_id((String)value);
1170
      }
1171
      break;
1172
 
1173
    case EXPECTED_DELIVERY_TIME:
1174
      if (value == null) {
1175
        unsetExpected_delivery_time();
1176
      } else {
1177
        setExpected_delivery_time((Long)value);
1178
      }
1179
      break;
1180
 
1181
    case CUSTOMER_ID:
1182
      if (value == null) {
1183
        unsetCustomer_id();
1184
      } else {
1185
        setCustomer_id((Long)value);
1186
      }
1187
      break;
1188
 
1189
    case CUSTOMER_NAME:
1190
      if (value == null) {
1191
        unsetCustomer_name();
1192
      } else {
1193
        setCustomer_name((String)value);
1194
      }
1195
      break;
1196
 
1197
    case CUSTOMER_MOBILENUMBER:
1198
      if (value == null) {
1199
        unsetCustomer_mobilenumber();
1200
      } else {
1201
        setCustomer_mobilenumber((String)value);
1202
      }
1203
      break;
1204
 
1205
    case CUSTOMER_PINCODE:
1206
      if (value == null) {
1207
        unsetCustomer_pincode();
1208
      } else {
1209
        setCustomer_pincode((String)value);
1210
      }
1211
      break;
1212
 
1213
    case CUSTOMER_ADDRESS:
1214
      if (value == null) {
1215
        unsetCustomer_address();
1216
      } else {
1217
        setCustomer_address((String)value);
1218
      }
1219
      break;
1220
 
1221
    case CUSTOMER_EMAIL:
1222
      if (value == null) {
1223
        unsetCustomer_email();
1224
      } else {
1225
        setCustomer_email((String)value);
1226
      }
1227
      break;
1228
 
1229
    case STATUS:
1230
      if (value == null) {
1231
        unsetStatus();
1232
      } else {
1233
        setStatus((OrderStatus)value);
1234
      }
1235
      break;
1236
 
1237
    case STATUS_DESCRIPTION:
1238
      if (value == null) {
1239
        unsetStatusDescription();
1240
      } else {
1241
        setStatusDescription((String)value);
1242
      }
1243
      break;
1244
 
1245
    case TOTAL_AMOUNT:
1246
      if (value == null) {
1247
        unsetTotal_amount();
1248
      } else {
1249
        setTotal_amount((Double)value);
1250
      }
1251
      break;
1252
 
1253
    case TOTAL_WEIGHT:
1254
      if (value == null) {
1255
        unsetTotal_weight();
1256
      } else {
1257
        setTotal_weight((Double)value);
1258
      }
1259
      break;
1260
 
1261
    case INVOICE_NUMBER:
1262
      if (value == null) {
1263
        unsetInvoice_number();
1264
      } else {
1265
        setInvoice_number((String)value);
1266
      }
1267
      break;
1268
 
1269
    case BILLED_BY:
1270
      if (value == null) {
1271
        unsetBilled_by();
1272
      } else {
1273
        setBilled_by((String)value);
1274
      }
1275
      break;
1276
 
1277
    case CREATED_TIMESTAMP:
1278
      if (value == null) {
1279
        unsetCreated_timestamp();
1280
      } else {
1281
        setCreated_timestamp((Long)value);
1282
      }
1283
      break;
1284
 
1285
    case ACCEPTED_TIMESTAMP:
1286
      if (value == null) {
1287
        unsetAccepted_timestamp();
1288
      } else {
1289
        setAccepted_timestamp((Long)value);
1290
      }
1291
      break;
1292
 
1293
    case BILLING_TIMESTAMP:
1294
      if (value == null) {
1295
        unsetBilling_timestamp();
1296
      } else {
1297
        setBilling_timestamp((Long)value);
1298
      }
1299
      break;
1300
 
1301
    case SHIPPING_TIMESTAMP:
1302
      if (value == null) {
1303
        unsetShipping_timestamp();
1304
      } else {
1305
        setShipping_timestamp((Long)value);
1306
      }
1307
      break;
1308
 
1309
    case DELIVERY_TIMESTAMP:
1310
      if (value == null) {
1311
        unsetDelivery_timestamp();
1312
      } else {
1313
        setDelivery_timestamp((Long)value);
1314
      }
1315
      break;
1316
 
640 chandransh 1317
    case JACKET_NUMBER:
1318
      if (value == null) {
1319
        unsetJacket_number();
1320
      } else {
1321
        setJacket_number((Long)value);
1322
      }
1323
      break;
1324
 
668 chandransh 1325
    case CUSTOMER_CITY:
1326
      if (value == null) {
1327
        unsetCustomer_city();
1328
      } else {
1329
        setCustomer_city((String)value);
1330
      }
1331
      break;
1332
 
1333
    case CUSTOMER_STATE:
1334
      if (value == null) {
1335
        unsetCustomer_state();
1336
      } else {
1337
        setCustomer_state((String)value);
1338
      }
1339
      break;
1340
 
483 rajveer 1341
    }
1342
  }
1343
 
1344
  public void setFieldValue(int fieldID, Object value) {
1345
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
1346
  }
1347
 
1348
  public Object getFieldValue(_Fields field) {
1349
    switch (field) {
1350
    case ID:
1351
      return new Long(getId());
1352
 
1353
    case WAREHOUSE_ID:
1354
      return new Long(getWarehouse_id());
1355
 
1356
    case LINEITEMS:
1357
      return getLineitems();
1358
 
1359
    case LOGISTICS_PROVIDER_ID:
1360
      return new Long(getLogistics_provider_id());
1361
 
1362
    case AIRWAYBILL_NO:
1363
      return getAirwaybill_no();
1364
 
1365
    case TRACKING_ID:
1366
      return getTracking_id();
1367
 
1368
    case EXPECTED_DELIVERY_TIME:
1369
      return new Long(getExpected_delivery_time());
1370
 
1371
    case CUSTOMER_ID:
1372
      return new Long(getCustomer_id());
1373
 
1374
    case CUSTOMER_NAME:
1375
      return getCustomer_name();
1376
 
1377
    case CUSTOMER_MOBILENUMBER:
1378
      return getCustomer_mobilenumber();
1379
 
1380
    case CUSTOMER_PINCODE:
1381
      return getCustomer_pincode();
1382
 
1383
    case CUSTOMER_ADDRESS:
1384
      return getCustomer_address();
1385
 
1386
    case CUSTOMER_EMAIL:
1387
      return getCustomer_email();
1388
 
1389
    case STATUS:
1390
      return getStatus();
1391
 
1392
    case STATUS_DESCRIPTION:
1393
      return getStatusDescription();
1394
 
1395
    case TOTAL_AMOUNT:
1396
      return new Double(getTotal_amount());
1397
 
1398
    case TOTAL_WEIGHT:
1399
      return new Double(getTotal_weight());
1400
 
1401
    case INVOICE_NUMBER:
1402
      return getInvoice_number();
1403
 
1404
    case BILLED_BY:
1405
      return getBilled_by();
1406
 
1407
    case CREATED_TIMESTAMP:
1408
      return new Long(getCreated_timestamp());
1409
 
1410
    case ACCEPTED_TIMESTAMP:
1411
      return new Long(getAccepted_timestamp());
1412
 
1413
    case BILLING_TIMESTAMP:
1414
      return new Long(getBilling_timestamp());
1415
 
1416
    case SHIPPING_TIMESTAMP:
1417
      return new Long(getShipping_timestamp());
1418
 
1419
    case DELIVERY_TIMESTAMP:
1420
      return new Long(getDelivery_timestamp());
1421
 
640 chandransh 1422
    case JACKET_NUMBER:
1423
      return new Long(getJacket_number());
1424
 
668 chandransh 1425
    case CUSTOMER_CITY:
1426
      return getCustomer_city();
1427
 
1428
    case CUSTOMER_STATE:
1429
      return getCustomer_state();
1430
 
483 rajveer 1431
    }
1432
    throw new IllegalStateException();
1433
  }
1434
 
1435
  public Object getFieldValue(int fieldId) {
1436
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
1437
  }
1438
 
1439
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1440
  public boolean isSet(_Fields field) {
1441
    switch (field) {
1442
    case ID:
1443
      return isSetId();
1444
    case WAREHOUSE_ID:
1445
      return isSetWarehouse_id();
1446
    case LINEITEMS:
1447
      return isSetLineitems();
1448
    case LOGISTICS_PROVIDER_ID:
1449
      return isSetLogistics_provider_id();
1450
    case AIRWAYBILL_NO:
1451
      return isSetAirwaybill_no();
1452
    case TRACKING_ID:
1453
      return isSetTracking_id();
1454
    case EXPECTED_DELIVERY_TIME:
1455
      return isSetExpected_delivery_time();
1456
    case CUSTOMER_ID:
1457
      return isSetCustomer_id();
1458
    case CUSTOMER_NAME:
1459
      return isSetCustomer_name();
1460
    case CUSTOMER_MOBILENUMBER:
1461
      return isSetCustomer_mobilenumber();
1462
    case CUSTOMER_PINCODE:
1463
      return isSetCustomer_pincode();
1464
    case CUSTOMER_ADDRESS:
1465
      return isSetCustomer_address();
1466
    case CUSTOMER_EMAIL:
1467
      return isSetCustomer_email();
1468
    case STATUS:
1469
      return isSetStatus();
1470
    case STATUS_DESCRIPTION:
1471
      return isSetStatusDescription();
1472
    case TOTAL_AMOUNT:
1473
      return isSetTotal_amount();
1474
    case TOTAL_WEIGHT:
1475
      return isSetTotal_weight();
1476
    case INVOICE_NUMBER:
1477
      return isSetInvoice_number();
1478
    case BILLED_BY:
1479
      return isSetBilled_by();
1480
    case CREATED_TIMESTAMP:
1481
      return isSetCreated_timestamp();
1482
    case ACCEPTED_TIMESTAMP:
1483
      return isSetAccepted_timestamp();
1484
    case BILLING_TIMESTAMP:
1485
      return isSetBilling_timestamp();
1486
    case SHIPPING_TIMESTAMP:
1487
      return isSetShipping_timestamp();
1488
    case DELIVERY_TIMESTAMP:
1489
      return isSetDelivery_timestamp();
640 chandransh 1490
    case JACKET_NUMBER:
1491
      return isSetJacket_number();
668 chandransh 1492
    case CUSTOMER_CITY:
1493
      return isSetCustomer_city();
1494
    case CUSTOMER_STATE:
1495
      return isSetCustomer_state();
483 rajveer 1496
    }
1497
    throw new IllegalStateException();
1498
  }
1499
 
1500
  public boolean isSet(int fieldID) {
1501
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
1502
  }
1503
 
1504
  @Override
1505
  public boolean equals(Object that) {
1506
    if (that == null)
1507
      return false;
1508
    if (that instanceof Order)
1509
      return this.equals((Order)that);
1510
    return false;
1511
  }
1512
 
1513
  public boolean equals(Order that) {
1514
    if (that == null)
1515
      return false;
1516
 
1517
    boolean this_present_id = true;
1518
    boolean that_present_id = true;
1519
    if (this_present_id || that_present_id) {
1520
      if (!(this_present_id && that_present_id))
1521
        return false;
1522
      if (this.id != that.id)
1523
        return false;
1524
    }
1525
 
1526
    boolean this_present_warehouse_id = true;
1527
    boolean that_present_warehouse_id = true;
1528
    if (this_present_warehouse_id || that_present_warehouse_id) {
1529
      if (!(this_present_warehouse_id && that_present_warehouse_id))
1530
        return false;
1531
      if (this.warehouse_id != that.warehouse_id)
1532
        return false;
1533
    }
1534
 
1535
    boolean this_present_lineitems = true && this.isSetLineitems();
1536
    boolean that_present_lineitems = true && that.isSetLineitems();
1537
    if (this_present_lineitems || that_present_lineitems) {
1538
      if (!(this_present_lineitems && that_present_lineitems))
1539
        return false;
1540
      if (!this.lineitems.equals(that.lineitems))
1541
        return false;
1542
    }
1543
 
1544
    boolean this_present_logistics_provider_id = true;
1545
    boolean that_present_logistics_provider_id = true;
1546
    if (this_present_logistics_provider_id || that_present_logistics_provider_id) {
1547
      if (!(this_present_logistics_provider_id && that_present_logistics_provider_id))
1548
        return false;
1549
      if (this.logistics_provider_id != that.logistics_provider_id)
1550
        return false;
1551
    }
1552
 
1553
    boolean this_present_airwaybill_no = true && this.isSetAirwaybill_no();
1554
    boolean that_present_airwaybill_no = true && that.isSetAirwaybill_no();
1555
    if (this_present_airwaybill_no || that_present_airwaybill_no) {
1556
      if (!(this_present_airwaybill_no && that_present_airwaybill_no))
1557
        return false;
1558
      if (!this.airwaybill_no.equals(that.airwaybill_no))
1559
        return false;
1560
    }
1561
 
1562
    boolean this_present_tracking_id = true && this.isSetTracking_id();
1563
    boolean that_present_tracking_id = true && that.isSetTracking_id();
1564
    if (this_present_tracking_id || that_present_tracking_id) {
1565
      if (!(this_present_tracking_id && that_present_tracking_id))
1566
        return false;
1567
      if (!this.tracking_id.equals(that.tracking_id))
1568
        return false;
1569
    }
1570
 
1571
    boolean this_present_expected_delivery_time = true;
1572
    boolean that_present_expected_delivery_time = true;
1573
    if (this_present_expected_delivery_time || that_present_expected_delivery_time) {
1574
      if (!(this_present_expected_delivery_time && that_present_expected_delivery_time))
1575
        return false;
1576
      if (this.expected_delivery_time != that.expected_delivery_time)
1577
        return false;
1578
    }
1579
 
1580
    boolean this_present_customer_id = true;
1581
    boolean that_present_customer_id = true;
1582
    if (this_present_customer_id || that_present_customer_id) {
1583
      if (!(this_present_customer_id && that_present_customer_id))
1584
        return false;
1585
      if (this.customer_id != that.customer_id)
1586
        return false;
1587
    }
1588
 
1589
    boolean this_present_customer_name = true && this.isSetCustomer_name();
1590
    boolean that_present_customer_name = true && that.isSetCustomer_name();
1591
    if (this_present_customer_name || that_present_customer_name) {
1592
      if (!(this_present_customer_name && that_present_customer_name))
1593
        return false;
1594
      if (!this.customer_name.equals(that.customer_name))
1595
        return false;
1596
    }
1597
 
1598
    boolean this_present_customer_mobilenumber = true && this.isSetCustomer_mobilenumber();
1599
    boolean that_present_customer_mobilenumber = true && that.isSetCustomer_mobilenumber();
1600
    if (this_present_customer_mobilenumber || that_present_customer_mobilenumber) {
1601
      if (!(this_present_customer_mobilenumber && that_present_customer_mobilenumber))
1602
        return false;
1603
      if (!this.customer_mobilenumber.equals(that.customer_mobilenumber))
1604
        return false;
1605
    }
1606
 
1607
    boolean this_present_customer_pincode = true && this.isSetCustomer_pincode();
1608
    boolean that_present_customer_pincode = true && that.isSetCustomer_pincode();
1609
    if (this_present_customer_pincode || that_present_customer_pincode) {
1610
      if (!(this_present_customer_pincode && that_present_customer_pincode))
1611
        return false;
1612
      if (!this.customer_pincode.equals(that.customer_pincode))
1613
        return false;
1614
    }
1615
 
1616
    boolean this_present_customer_address = true && this.isSetCustomer_address();
1617
    boolean that_present_customer_address = true && that.isSetCustomer_address();
1618
    if (this_present_customer_address || that_present_customer_address) {
1619
      if (!(this_present_customer_address && that_present_customer_address))
1620
        return false;
1621
      if (!this.customer_address.equals(that.customer_address))
1622
        return false;
1623
    }
1624
 
1625
    boolean this_present_customer_email = true && this.isSetCustomer_email();
1626
    boolean that_present_customer_email = true && that.isSetCustomer_email();
1627
    if (this_present_customer_email || that_present_customer_email) {
1628
      if (!(this_present_customer_email && that_present_customer_email))
1629
        return false;
1630
      if (!this.customer_email.equals(that.customer_email))
1631
        return false;
1632
    }
1633
 
1634
    boolean this_present_status = true && this.isSetStatus();
1635
    boolean that_present_status = true && that.isSetStatus();
1636
    if (this_present_status || that_present_status) {
1637
      if (!(this_present_status && that_present_status))
1638
        return false;
1639
      if (!this.status.equals(that.status))
1640
        return false;
1641
    }
1642
 
1643
    boolean this_present_statusDescription = true && this.isSetStatusDescription();
1644
    boolean that_present_statusDescription = true && that.isSetStatusDescription();
1645
    if (this_present_statusDescription || that_present_statusDescription) {
1646
      if (!(this_present_statusDescription && that_present_statusDescription))
1647
        return false;
1648
      if (!this.statusDescription.equals(that.statusDescription))
1649
        return false;
1650
    }
1651
 
1652
    boolean this_present_total_amount = true;
1653
    boolean that_present_total_amount = true;
1654
    if (this_present_total_amount || that_present_total_amount) {
1655
      if (!(this_present_total_amount && that_present_total_amount))
1656
        return false;
1657
      if (this.total_amount != that.total_amount)
1658
        return false;
1659
    }
1660
 
1661
    boolean this_present_total_weight = true;
1662
    boolean that_present_total_weight = true;
1663
    if (this_present_total_weight || that_present_total_weight) {
1664
      if (!(this_present_total_weight && that_present_total_weight))
1665
        return false;
1666
      if (this.total_weight != that.total_weight)
1667
        return false;
1668
    }
1669
 
1670
    boolean this_present_invoice_number = true && this.isSetInvoice_number();
1671
    boolean that_present_invoice_number = true && that.isSetInvoice_number();
1672
    if (this_present_invoice_number || that_present_invoice_number) {
1673
      if (!(this_present_invoice_number && that_present_invoice_number))
1674
        return false;
1675
      if (!this.invoice_number.equals(that.invoice_number))
1676
        return false;
1677
    }
1678
 
1679
    boolean this_present_billed_by = true && this.isSetBilled_by();
1680
    boolean that_present_billed_by = true && that.isSetBilled_by();
1681
    if (this_present_billed_by || that_present_billed_by) {
1682
      if (!(this_present_billed_by && that_present_billed_by))
1683
        return false;
1684
      if (!this.billed_by.equals(that.billed_by))
1685
        return false;
1686
    }
1687
 
1688
    boolean this_present_created_timestamp = true;
1689
    boolean that_present_created_timestamp = true;
1690
    if (this_present_created_timestamp || that_present_created_timestamp) {
1691
      if (!(this_present_created_timestamp && that_present_created_timestamp))
1692
        return false;
1693
      if (this.created_timestamp != that.created_timestamp)
1694
        return false;
1695
    }
1696
 
1697
    boolean this_present_accepted_timestamp = true;
1698
    boolean that_present_accepted_timestamp = true;
1699
    if (this_present_accepted_timestamp || that_present_accepted_timestamp) {
1700
      if (!(this_present_accepted_timestamp && that_present_accepted_timestamp))
1701
        return false;
1702
      if (this.accepted_timestamp != that.accepted_timestamp)
1703
        return false;
1704
    }
1705
 
1706
    boolean this_present_billing_timestamp = true;
1707
    boolean that_present_billing_timestamp = true;
1708
    if (this_present_billing_timestamp || that_present_billing_timestamp) {
1709
      if (!(this_present_billing_timestamp && that_present_billing_timestamp))
1710
        return false;
1711
      if (this.billing_timestamp != that.billing_timestamp)
1712
        return false;
1713
    }
1714
 
1715
    boolean this_present_shipping_timestamp = true;
1716
    boolean that_present_shipping_timestamp = true;
1717
    if (this_present_shipping_timestamp || that_present_shipping_timestamp) {
1718
      if (!(this_present_shipping_timestamp && that_present_shipping_timestamp))
1719
        return false;
1720
      if (this.shipping_timestamp != that.shipping_timestamp)
1721
        return false;
1722
    }
1723
 
1724
    boolean this_present_delivery_timestamp = true;
1725
    boolean that_present_delivery_timestamp = true;
1726
    if (this_present_delivery_timestamp || that_present_delivery_timestamp) {
1727
      if (!(this_present_delivery_timestamp && that_present_delivery_timestamp))
1728
        return false;
1729
      if (this.delivery_timestamp != that.delivery_timestamp)
1730
        return false;
1731
    }
1732
 
640 chandransh 1733
    boolean this_present_jacket_number = true;
1734
    boolean that_present_jacket_number = true;
1735
    if (this_present_jacket_number || that_present_jacket_number) {
1736
      if (!(this_present_jacket_number && that_present_jacket_number))
1737
        return false;
1738
      if (this.jacket_number != that.jacket_number)
1739
        return false;
1740
    }
1741
 
668 chandransh 1742
    boolean this_present_customer_city = true && this.isSetCustomer_city();
1743
    boolean that_present_customer_city = true && that.isSetCustomer_city();
1744
    if (this_present_customer_city || that_present_customer_city) {
1745
      if (!(this_present_customer_city && that_present_customer_city))
1746
        return false;
1747
      if (!this.customer_city.equals(that.customer_city))
1748
        return false;
1749
    }
1750
 
1751
    boolean this_present_customer_state = true && this.isSetCustomer_state();
1752
    boolean that_present_customer_state = true && that.isSetCustomer_state();
1753
    if (this_present_customer_state || that_present_customer_state) {
1754
      if (!(this_present_customer_state && that_present_customer_state))
1755
        return false;
1756
      if (!this.customer_state.equals(that.customer_state))
1757
        return false;
1758
    }
1759
 
483 rajveer 1760
    return true;
1761
  }
1762
 
1763
  @Override
1764
  public int hashCode() {
1765
    return 0;
1766
  }
1767
 
1768
  public int compareTo(Order other) {
1769
    if (!getClass().equals(other.getClass())) {
1770
      return getClass().getName().compareTo(other.getClass().getName());
1771
    }
1772
 
1773
    int lastComparison = 0;
1774
    Order typedOther = (Order)other;
1775
 
1776
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
1777
    if (lastComparison != 0) {
1778
      return lastComparison;
1779
    }
1780
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
1781
    if (lastComparison != 0) {
1782
      return lastComparison;
1783
    }
1784
    lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(isSetWarehouse_id());
1785
    if (lastComparison != 0) {
1786
      return lastComparison;
1787
    }
1788
    lastComparison = TBaseHelper.compareTo(warehouse_id, typedOther.warehouse_id);
1789
    if (lastComparison != 0) {
1790
      return lastComparison;
1791
    }
1792
    lastComparison = Boolean.valueOf(isSetLineitems()).compareTo(isSetLineitems());
1793
    if (lastComparison != 0) {
1794
      return lastComparison;
1795
    }
1796
    lastComparison = TBaseHelper.compareTo(lineitems, typedOther.lineitems);
1797
    if (lastComparison != 0) {
1798
      return lastComparison;
1799
    }
1800
    lastComparison = Boolean.valueOf(isSetLogistics_provider_id()).compareTo(isSetLogistics_provider_id());
1801
    if (lastComparison != 0) {
1802
      return lastComparison;
1803
    }
1804
    lastComparison = TBaseHelper.compareTo(logistics_provider_id, typedOther.logistics_provider_id);
1805
    if (lastComparison != 0) {
1806
      return lastComparison;
1807
    }
1808
    lastComparison = Boolean.valueOf(isSetAirwaybill_no()).compareTo(isSetAirwaybill_no());
1809
    if (lastComparison != 0) {
1810
      return lastComparison;
1811
    }
1812
    lastComparison = TBaseHelper.compareTo(airwaybill_no, typedOther.airwaybill_no);
1813
    if (lastComparison != 0) {
1814
      return lastComparison;
1815
    }
1816
    lastComparison = Boolean.valueOf(isSetTracking_id()).compareTo(isSetTracking_id());
1817
    if (lastComparison != 0) {
1818
      return lastComparison;
1819
    }
1820
    lastComparison = TBaseHelper.compareTo(tracking_id, typedOther.tracking_id);
1821
    if (lastComparison != 0) {
1822
      return lastComparison;
1823
    }
1824
    lastComparison = Boolean.valueOf(isSetExpected_delivery_time()).compareTo(isSetExpected_delivery_time());
1825
    if (lastComparison != 0) {
1826
      return lastComparison;
1827
    }
1828
    lastComparison = TBaseHelper.compareTo(expected_delivery_time, typedOther.expected_delivery_time);
1829
    if (lastComparison != 0) {
1830
      return lastComparison;
1831
    }
1832
    lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(isSetCustomer_id());
1833
    if (lastComparison != 0) {
1834
      return lastComparison;
1835
    }
1836
    lastComparison = TBaseHelper.compareTo(customer_id, typedOther.customer_id);
1837
    if (lastComparison != 0) {
1838
      return lastComparison;
1839
    }
1840
    lastComparison = Boolean.valueOf(isSetCustomer_name()).compareTo(isSetCustomer_name());
1841
    if (lastComparison != 0) {
1842
      return lastComparison;
1843
    }
1844
    lastComparison = TBaseHelper.compareTo(customer_name, typedOther.customer_name);
1845
    if (lastComparison != 0) {
1846
      return lastComparison;
1847
    }
1848
    lastComparison = Boolean.valueOf(isSetCustomer_mobilenumber()).compareTo(isSetCustomer_mobilenumber());
1849
    if (lastComparison != 0) {
1850
      return lastComparison;
1851
    }
1852
    lastComparison = TBaseHelper.compareTo(customer_mobilenumber, typedOther.customer_mobilenumber);
1853
    if (lastComparison != 0) {
1854
      return lastComparison;
1855
    }
1856
    lastComparison = Boolean.valueOf(isSetCustomer_pincode()).compareTo(isSetCustomer_pincode());
1857
    if (lastComparison != 0) {
1858
      return lastComparison;
1859
    }
1860
    lastComparison = TBaseHelper.compareTo(customer_pincode, typedOther.customer_pincode);
1861
    if (lastComparison != 0) {
1862
      return lastComparison;
1863
    }
1864
    lastComparison = Boolean.valueOf(isSetCustomer_address()).compareTo(isSetCustomer_address());
1865
    if (lastComparison != 0) {
1866
      return lastComparison;
1867
    }
1868
    lastComparison = TBaseHelper.compareTo(customer_address, typedOther.customer_address);
1869
    if (lastComparison != 0) {
1870
      return lastComparison;
1871
    }
1872
    lastComparison = Boolean.valueOf(isSetCustomer_email()).compareTo(isSetCustomer_email());
1873
    if (lastComparison != 0) {
1874
      return lastComparison;
1875
    }
1876
    lastComparison = TBaseHelper.compareTo(customer_email, typedOther.customer_email);
1877
    if (lastComparison != 0) {
1878
      return lastComparison;
1879
    }
1880
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
1881
    if (lastComparison != 0) {
1882
      return lastComparison;
1883
    }
1884
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
1885
    if (lastComparison != 0) {
1886
      return lastComparison;
1887
    }
1888
    lastComparison = Boolean.valueOf(isSetStatusDescription()).compareTo(isSetStatusDescription());
1889
    if (lastComparison != 0) {
1890
      return lastComparison;
1891
    }
1892
    lastComparison = TBaseHelper.compareTo(statusDescription, typedOther.statusDescription);
1893
    if (lastComparison != 0) {
1894
      return lastComparison;
1895
    }
1896
    lastComparison = Boolean.valueOf(isSetTotal_amount()).compareTo(isSetTotal_amount());
1897
    if (lastComparison != 0) {
1898
      return lastComparison;
1899
    }
1900
    lastComparison = TBaseHelper.compareTo(total_amount, typedOther.total_amount);
1901
    if (lastComparison != 0) {
1902
      return lastComparison;
1903
    }
1904
    lastComparison = Boolean.valueOf(isSetTotal_weight()).compareTo(isSetTotal_weight());
1905
    if (lastComparison != 0) {
1906
      return lastComparison;
1907
    }
1908
    lastComparison = TBaseHelper.compareTo(total_weight, typedOther.total_weight);
1909
    if (lastComparison != 0) {
1910
      return lastComparison;
1911
    }
1912
    lastComparison = Boolean.valueOf(isSetInvoice_number()).compareTo(isSetInvoice_number());
1913
    if (lastComparison != 0) {
1914
      return lastComparison;
1915
    }
1916
    lastComparison = TBaseHelper.compareTo(invoice_number, typedOther.invoice_number);
1917
    if (lastComparison != 0) {
1918
      return lastComparison;
1919
    }
1920
    lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(isSetBilled_by());
1921
    if (lastComparison != 0) {
1922
      return lastComparison;
1923
    }
1924
    lastComparison = TBaseHelper.compareTo(billed_by, typedOther.billed_by);
1925
    if (lastComparison != 0) {
1926
      return lastComparison;
1927
    }
1928
    lastComparison = Boolean.valueOf(isSetCreated_timestamp()).compareTo(isSetCreated_timestamp());
1929
    if (lastComparison != 0) {
1930
      return lastComparison;
1931
    }
1932
    lastComparison = TBaseHelper.compareTo(created_timestamp, typedOther.created_timestamp);
1933
    if (lastComparison != 0) {
1934
      return lastComparison;
1935
    }
1936
    lastComparison = Boolean.valueOf(isSetAccepted_timestamp()).compareTo(isSetAccepted_timestamp());
1937
    if (lastComparison != 0) {
1938
      return lastComparison;
1939
    }
1940
    lastComparison = TBaseHelper.compareTo(accepted_timestamp, typedOther.accepted_timestamp);
1941
    if (lastComparison != 0) {
1942
      return lastComparison;
1943
    }
1944
    lastComparison = Boolean.valueOf(isSetBilling_timestamp()).compareTo(isSetBilling_timestamp());
1945
    if (lastComparison != 0) {
1946
      return lastComparison;
1947
    }
1948
    lastComparison = TBaseHelper.compareTo(billing_timestamp, typedOther.billing_timestamp);
1949
    if (lastComparison != 0) {
1950
      return lastComparison;
1951
    }
1952
    lastComparison = Boolean.valueOf(isSetShipping_timestamp()).compareTo(isSetShipping_timestamp());
1953
    if (lastComparison != 0) {
1954
      return lastComparison;
1955
    }
1956
    lastComparison = TBaseHelper.compareTo(shipping_timestamp, typedOther.shipping_timestamp);
1957
    if (lastComparison != 0) {
1958
      return lastComparison;
1959
    }
1960
    lastComparison = Boolean.valueOf(isSetDelivery_timestamp()).compareTo(isSetDelivery_timestamp());
1961
    if (lastComparison != 0) {
1962
      return lastComparison;
1963
    }
1964
    lastComparison = TBaseHelper.compareTo(delivery_timestamp, typedOther.delivery_timestamp);
1965
    if (lastComparison != 0) {
1966
      return lastComparison;
1967
    }
640 chandransh 1968
    lastComparison = Boolean.valueOf(isSetJacket_number()).compareTo(isSetJacket_number());
1969
    if (lastComparison != 0) {
1970
      return lastComparison;
1971
    }
1972
    lastComparison = TBaseHelper.compareTo(jacket_number, typedOther.jacket_number);
1973
    if (lastComparison != 0) {
1974
      return lastComparison;
1975
    }
668 chandransh 1976
    lastComparison = Boolean.valueOf(isSetCustomer_city()).compareTo(isSetCustomer_city());
1977
    if (lastComparison != 0) {
1978
      return lastComparison;
1979
    }
1980
    lastComparison = TBaseHelper.compareTo(customer_city, typedOther.customer_city);
1981
    if (lastComparison != 0) {
1982
      return lastComparison;
1983
    }
1984
    lastComparison = Boolean.valueOf(isSetCustomer_state()).compareTo(isSetCustomer_state());
1985
    if (lastComparison != 0) {
1986
      return lastComparison;
1987
    }
1988
    lastComparison = TBaseHelper.compareTo(customer_state, typedOther.customer_state);
1989
    if (lastComparison != 0) {
1990
      return lastComparison;
1991
    }
483 rajveer 1992
    return 0;
1993
  }
1994
 
1995
  public void read(TProtocol iprot) throws TException {
1996
    TField field;
1997
    iprot.readStructBegin();
1998
    while (true)
1999
    {
2000
      field = iprot.readFieldBegin();
2001
      if (field.type == TType.STOP) { 
2002
        break;
2003
      }
2004
      _Fields fieldId = _Fields.findByThriftId(field.id);
2005
      if (fieldId == null) {
2006
        TProtocolUtil.skip(iprot, field.type);
2007
      } else {
2008
        switch (fieldId) {
2009
          case ID:
2010
            if (field.type == TType.I64) {
2011
              this.id = iprot.readI64();
2012
              setIdIsSet(true);
2013
            } else { 
2014
              TProtocolUtil.skip(iprot, field.type);
2015
            }
2016
            break;
2017
          case WAREHOUSE_ID:
2018
            if (field.type == TType.I64) {
2019
              this.warehouse_id = iprot.readI64();
2020
              setWarehouse_idIsSet(true);
2021
            } else { 
2022
              TProtocolUtil.skip(iprot, field.type);
2023
            }
2024
            break;
2025
          case LINEITEMS:
2026
            if (field.type == TType.LIST) {
2027
              {
684 chandransh 2028
                TList _list0 = iprot.readListBegin();
2029
                this.lineitems = new ArrayList<LineItem>(_list0.size);
2030
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
483 rajveer 2031
                {
684 chandransh 2032
                  LineItem _elem2;
2033
                  _elem2 = new LineItem();
2034
                  _elem2.read(iprot);
2035
                  this.lineitems.add(_elem2);
483 rajveer 2036
                }
2037
                iprot.readListEnd();
2038
              }
2039
            } else { 
2040
              TProtocolUtil.skip(iprot, field.type);
2041
            }
2042
            break;
2043
          case LOGISTICS_PROVIDER_ID:
2044
            if (field.type == TType.I64) {
2045
              this.logistics_provider_id = iprot.readI64();
2046
              setLogistics_provider_idIsSet(true);
2047
            } else { 
2048
              TProtocolUtil.skip(iprot, field.type);
2049
            }
2050
            break;
2051
          case AIRWAYBILL_NO:
2052
            if (field.type == TType.STRING) {
2053
              this.airwaybill_no = iprot.readString();
2054
            } else { 
2055
              TProtocolUtil.skip(iprot, field.type);
2056
            }
2057
            break;
2058
          case TRACKING_ID:
2059
            if (field.type == TType.STRING) {
2060
              this.tracking_id = iprot.readString();
2061
            } else { 
2062
              TProtocolUtil.skip(iprot, field.type);
2063
            }
2064
            break;
2065
          case EXPECTED_DELIVERY_TIME:
2066
            if (field.type == TType.I64) {
2067
              this.expected_delivery_time = iprot.readI64();
2068
              setExpected_delivery_timeIsSet(true);
2069
            } else { 
2070
              TProtocolUtil.skip(iprot, field.type);
2071
            }
2072
            break;
2073
          case CUSTOMER_ID:
2074
            if (field.type == TType.I64) {
2075
              this.customer_id = iprot.readI64();
2076
              setCustomer_idIsSet(true);
2077
            } else { 
2078
              TProtocolUtil.skip(iprot, field.type);
2079
            }
2080
            break;
2081
          case CUSTOMER_NAME:
2082
            if (field.type == TType.STRING) {
2083
              this.customer_name = iprot.readString();
2084
            } else { 
2085
              TProtocolUtil.skip(iprot, field.type);
2086
            }
2087
            break;
2088
          case CUSTOMER_MOBILENUMBER:
2089
            if (field.type == TType.STRING) {
2090
              this.customer_mobilenumber = iprot.readString();
2091
            } else { 
2092
              TProtocolUtil.skip(iprot, field.type);
2093
            }
2094
            break;
2095
          case CUSTOMER_PINCODE:
2096
            if (field.type == TType.STRING) {
2097
              this.customer_pincode = iprot.readString();
2098
            } else { 
2099
              TProtocolUtil.skip(iprot, field.type);
2100
            }
2101
            break;
2102
          case CUSTOMER_ADDRESS:
2103
            if (field.type == TType.STRING) {
2104
              this.customer_address = iprot.readString();
2105
            } else { 
2106
              TProtocolUtil.skip(iprot, field.type);
2107
            }
2108
            break;
2109
          case CUSTOMER_EMAIL:
2110
            if (field.type == TType.STRING) {
2111
              this.customer_email = iprot.readString();
2112
            } else { 
2113
              TProtocolUtil.skip(iprot, field.type);
2114
            }
2115
            break;
2116
          case STATUS:
2117
            if (field.type == TType.I32) {
2118
              this.status = OrderStatus.findByValue(iprot.readI32());
2119
            } else { 
2120
              TProtocolUtil.skip(iprot, field.type);
2121
            }
2122
            break;
2123
          case STATUS_DESCRIPTION:
2124
            if (field.type == TType.STRING) {
2125
              this.statusDescription = iprot.readString();
2126
            } else { 
2127
              TProtocolUtil.skip(iprot, field.type);
2128
            }
2129
            break;
2130
          case TOTAL_AMOUNT:
2131
            if (field.type == TType.DOUBLE) {
2132
              this.total_amount = iprot.readDouble();
2133
              setTotal_amountIsSet(true);
2134
            } else { 
2135
              TProtocolUtil.skip(iprot, field.type);
2136
            }
2137
            break;
2138
          case TOTAL_WEIGHT:
2139
            if (field.type == TType.DOUBLE) {
2140
              this.total_weight = iprot.readDouble();
2141
              setTotal_weightIsSet(true);
2142
            } else { 
2143
              TProtocolUtil.skip(iprot, field.type);
2144
            }
2145
            break;
2146
          case INVOICE_NUMBER:
2147
            if (field.type == TType.STRING) {
2148
              this.invoice_number = iprot.readString();
2149
            } else { 
2150
              TProtocolUtil.skip(iprot, field.type);
2151
            }
2152
            break;
2153
          case BILLED_BY:
2154
            if (field.type == TType.STRING) {
2155
              this.billed_by = iprot.readString();
2156
            } else { 
2157
              TProtocolUtil.skip(iprot, field.type);
2158
            }
2159
            break;
2160
          case CREATED_TIMESTAMP:
2161
            if (field.type == TType.I64) {
2162
              this.created_timestamp = iprot.readI64();
2163
              setCreated_timestampIsSet(true);
2164
            } else { 
2165
              TProtocolUtil.skip(iprot, field.type);
2166
            }
2167
            break;
2168
          case ACCEPTED_TIMESTAMP:
2169
            if (field.type == TType.I64) {
2170
              this.accepted_timestamp = iprot.readI64();
2171
              setAccepted_timestampIsSet(true);
2172
            } else { 
2173
              TProtocolUtil.skip(iprot, field.type);
2174
            }
2175
            break;
2176
          case BILLING_TIMESTAMP:
2177
            if (field.type == TType.I64) {
2178
              this.billing_timestamp = iprot.readI64();
2179
              setBilling_timestampIsSet(true);
2180
            } else { 
2181
              TProtocolUtil.skip(iprot, field.type);
2182
            }
2183
            break;
2184
          case SHIPPING_TIMESTAMP:
2185
            if (field.type == TType.I64) {
2186
              this.shipping_timestamp = iprot.readI64();
2187
              setShipping_timestampIsSet(true);
2188
            } else { 
2189
              TProtocolUtil.skip(iprot, field.type);
2190
            }
2191
            break;
2192
          case DELIVERY_TIMESTAMP:
2193
            if (field.type == TType.I64) {
2194
              this.delivery_timestamp = iprot.readI64();
2195
              setDelivery_timestampIsSet(true);
2196
            } else { 
2197
              TProtocolUtil.skip(iprot, field.type);
2198
            }
2199
            break;
640 chandransh 2200
          case JACKET_NUMBER:
2201
            if (field.type == TType.I64) {
2202
              this.jacket_number = iprot.readI64();
2203
              setJacket_numberIsSet(true);
2204
            } else { 
2205
              TProtocolUtil.skip(iprot, field.type);
2206
            }
2207
            break;
668 chandransh 2208
          case CUSTOMER_CITY:
2209
            if (field.type == TType.STRING) {
2210
              this.customer_city = iprot.readString();
2211
            } else { 
2212
              TProtocolUtil.skip(iprot, field.type);
2213
            }
2214
            break;
2215
          case CUSTOMER_STATE:
2216
            if (field.type == TType.STRING) {
2217
              this.customer_state = iprot.readString();
2218
            } else { 
2219
              TProtocolUtil.skip(iprot, field.type);
2220
            }
2221
            break;
483 rajveer 2222
        }
2223
        iprot.readFieldEnd();
2224
      }
2225
    }
2226
    iprot.readStructEnd();
2227
    validate();
2228
  }
2229
 
2230
  public void write(TProtocol oprot) throws TException {
2231
    validate();
2232
 
2233
    oprot.writeStructBegin(STRUCT_DESC);
2234
    oprot.writeFieldBegin(ID_FIELD_DESC);
2235
    oprot.writeI64(this.id);
2236
    oprot.writeFieldEnd();
2237
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
2238
    oprot.writeI64(this.warehouse_id);
2239
    oprot.writeFieldEnd();
2240
    if (this.lineitems != null) {
2241
      oprot.writeFieldBegin(LINEITEMS_FIELD_DESC);
2242
      {
2243
        oprot.writeListBegin(new TList(TType.STRUCT, this.lineitems.size()));
684 chandransh 2244
        for (LineItem _iter3 : this.lineitems)
483 rajveer 2245
        {
684 chandransh 2246
          _iter3.write(oprot);
483 rajveer 2247
        }
2248
        oprot.writeListEnd();
2249
      }
2250
      oprot.writeFieldEnd();
2251
    }
2252
    oprot.writeFieldBegin(LOGISTICS_PROVIDER_ID_FIELD_DESC);
2253
    oprot.writeI64(this.logistics_provider_id);
2254
    oprot.writeFieldEnd();
2255
    if (this.airwaybill_no != null) {
2256
      oprot.writeFieldBegin(AIRWAYBILL_NO_FIELD_DESC);
2257
      oprot.writeString(this.airwaybill_no);
2258
      oprot.writeFieldEnd();
2259
    }
2260
    if (this.tracking_id != null) {
2261
      oprot.writeFieldBegin(TRACKING_ID_FIELD_DESC);
2262
      oprot.writeString(this.tracking_id);
2263
      oprot.writeFieldEnd();
2264
    }
2265
    oprot.writeFieldBegin(EXPECTED_DELIVERY_TIME_FIELD_DESC);
2266
    oprot.writeI64(this.expected_delivery_time);
2267
    oprot.writeFieldEnd();
2268
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
2269
    oprot.writeI64(this.customer_id);
2270
    oprot.writeFieldEnd();
2271
    if (this.customer_name != null) {
2272
      oprot.writeFieldBegin(CUSTOMER_NAME_FIELD_DESC);
2273
      oprot.writeString(this.customer_name);
2274
      oprot.writeFieldEnd();
2275
    }
2276
    if (this.customer_mobilenumber != null) {
2277
      oprot.writeFieldBegin(CUSTOMER_MOBILENUMBER_FIELD_DESC);
2278
      oprot.writeString(this.customer_mobilenumber);
2279
      oprot.writeFieldEnd();
2280
    }
2281
    if (this.customer_pincode != null) {
2282
      oprot.writeFieldBegin(CUSTOMER_PINCODE_FIELD_DESC);
2283
      oprot.writeString(this.customer_pincode);
2284
      oprot.writeFieldEnd();
2285
    }
2286
    if (this.customer_address != null) {
2287
      oprot.writeFieldBegin(CUSTOMER_ADDRESS_FIELD_DESC);
2288
      oprot.writeString(this.customer_address);
2289
      oprot.writeFieldEnd();
2290
    }
2291
    if (this.customer_email != null) {
2292
      oprot.writeFieldBegin(CUSTOMER_EMAIL_FIELD_DESC);
2293
      oprot.writeString(this.customer_email);
2294
      oprot.writeFieldEnd();
2295
    }
2296
    if (this.status != null) {
2297
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
2298
      oprot.writeI32(this.status.getValue());
2299
      oprot.writeFieldEnd();
2300
    }
2301
    if (this.statusDescription != null) {
2302
      oprot.writeFieldBegin(STATUS_DESCRIPTION_FIELD_DESC);
2303
      oprot.writeString(this.statusDescription);
2304
      oprot.writeFieldEnd();
2305
    }
2306
    oprot.writeFieldBegin(TOTAL_AMOUNT_FIELD_DESC);
2307
    oprot.writeDouble(this.total_amount);
2308
    oprot.writeFieldEnd();
2309
    oprot.writeFieldBegin(TOTAL_WEIGHT_FIELD_DESC);
2310
    oprot.writeDouble(this.total_weight);
2311
    oprot.writeFieldEnd();
2312
    if (this.invoice_number != null) {
2313
      oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
2314
      oprot.writeString(this.invoice_number);
2315
      oprot.writeFieldEnd();
2316
    }
2317
    if (this.billed_by != null) {
2318
      oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
2319
      oprot.writeString(this.billed_by);
2320
      oprot.writeFieldEnd();
2321
    }
2322
    oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
2323
    oprot.writeI64(this.created_timestamp);
2324
    oprot.writeFieldEnd();
2325
    oprot.writeFieldBegin(ACCEPTED_TIMESTAMP_FIELD_DESC);
2326
    oprot.writeI64(this.accepted_timestamp);
2327
    oprot.writeFieldEnd();
2328
    oprot.writeFieldBegin(BILLING_TIMESTAMP_FIELD_DESC);
2329
    oprot.writeI64(this.billing_timestamp);
2330
    oprot.writeFieldEnd();
2331
    oprot.writeFieldBegin(SHIPPING_TIMESTAMP_FIELD_DESC);
2332
    oprot.writeI64(this.shipping_timestamp);
2333
    oprot.writeFieldEnd();
2334
    oprot.writeFieldBegin(DELIVERY_TIMESTAMP_FIELD_DESC);
2335
    oprot.writeI64(this.delivery_timestamp);
2336
    oprot.writeFieldEnd();
640 chandransh 2337
    oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
2338
    oprot.writeI64(this.jacket_number);
2339
    oprot.writeFieldEnd();
668 chandransh 2340
    if (this.customer_city != null) {
2341
      oprot.writeFieldBegin(CUSTOMER_CITY_FIELD_DESC);
2342
      oprot.writeString(this.customer_city);
2343
      oprot.writeFieldEnd();
2344
    }
2345
    if (this.customer_state != null) {
2346
      oprot.writeFieldBegin(CUSTOMER_STATE_FIELD_DESC);
2347
      oprot.writeString(this.customer_state);
2348
      oprot.writeFieldEnd();
2349
    }
483 rajveer 2350
    oprot.writeFieldStop();
2351
    oprot.writeStructEnd();
2352
  }
2353
 
2354
  @Override
2355
  public String toString() {
2356
    StringBuilder sb = new StringBuilder("Order(");
2357
    boolean first = true;
2358
 
2359
    sb.append("id:");
2360
    sb.append(this.id);
2361
    first = false;
2362
    if (!first) sb.append(", ");
2363
    sb.append("warehouse_id:");
2364
    sb.append(this.warehouse_id);
2365
    first = false;
2366
    if (!first) sb.append(", ");
2367
    sb.append("lineitems:");
2368
    if (this.lineitems == null) {
2369
      sb.append("null");
2370
    } else {
2371
      sb.append(this.lineitems);
2372
    }
2373
    first = false;
2374
    if (!first) sb.append(", ");
2375
    sb.append("logistics_provider_id:");
2376
    sb.append(this.logistics_provider_id);
2377
    first = false;
2378
    if (!first) sb.append(", ");
2379
    sb.append("airwaybill_no:");
2380
    if (this.airwaybill_no == null) {
2381
      sb.append("null");
2382
    } else {
2383
      sb.append(this.airwaybill_no);
2384
    }
2385
    first = false;
2386
    if (!first) sb.append(", ");
2387
    sb.append("tracking_id:");
2388
    if (this.tracking_id == null) {
2389
      sb.append("null");
2390
    } else {
2391
      sb.append(this.tracking_id);
2392
    }
2393
    first = false;
2394
    if (!first) sb.append(", ");
2395
    sb.append("expected_delivery_time:");
2396
    sb.append(this.expected_delivery_time);
2397
    first = false;
2398
    if (!first) sb.append(", ");
2399
    sb.append("customer_id:");
2400
    sb.append(this.customer_id);
2401
    first = false;
2402
    if (!first) sb.append(", ");
2403
    sb.append("customer_name:");
2404
    if (this.customer_name == null) {
2405
      sb.append("null");
2406
    } else {
2407
      sb.append(this.customer_name);
2408
    }
2409
    first = false;
2410
    if (!first) sb.append(", ");
2411
    sb.append("customer_mobilenumber:");
2412
    if (this.customer_mobilenumber == null) {
2413
      sb.append("null");
2414
    } else {
2415
      sb.append(this.customer_mobilenumber);
2416
    }
2417
    first = false;
2418
    if (!first) sb.append(", ");
2419
    sb.append("customer_pincode:");
2420
    if (this.customer_pincode == null) {
2421
      sb.append("null");
2422
    } else {
2423
      sb.append(this.customer_pincode);
2424
    }
2425
    first = false;
2426
    if (!first) sb.append(", ");
2427
    sb.append("customer_address:");
2428
    if (this.customer_address == null) {
2429
      sb.append("null");
2430
    } else {
2431
      sb.append(this.customer_address);
2432
    }
2433
    first = false;
2434
    if (!first) sb.append(", ");
2435
    sb.append("customer_email:");
2436
    if (this.customer_email == null) {
2437
      sb.append("null");
2438
    } else {
2439
      sb.append(this.customer_email);
2440
    }
2441
    first = false;
2442
    if (!first) sb.append(", ");
2443
    sb.append("status:");
2444
    if (this.status == null) {
2445
      sb.append("null");
2446
    } else {
2447
      String status_name = status.name();
2448
      if (status_name != null) {
2449
        sb.append(status_name);
2450
        sb.append(" (");
2451
      }
2452
      sb.append(this.status);
2453
      if (status_name != null) {
2454
        sb.append(")");
2455
      }
2456
    }
2457
    first = false;
2458
    if (!first) sb.append(", ");
2459
    sb.append("statusDescription:");
2460
    if (this.statusDescription == null) {
2461
      sb.append("null");
2462
    } else {
2463
      sb.append(this.statusDescription);
2464
    }
2465
    first = false;
2466
    if (!first) sb.append(", ");
2467
    sb.append("total_amount:");
2468
    sb.append(this.total_amount);
2469
    first = false;
2470
    if (!first) sb.append(", ");
2471
    sb.append("total_weight:");
2472
    sb.append(this.total_weight);
2473
    first = false;
2474
    if (!first) sb.append(", ");
2475
    sb.append("invoice_number:");
2476
    if (this.invoice_number == null) {
2477
      sb.append("null");
2478
    } else {
2479
      sb.append(this.invoice_number);
2480
    }
2481
    first = false;
2482
    if (!first) sb.append(", ");
2483
    sb.append("billed_by:");
2484
    if (this.billed_by == null) {
2485
      sb.append("null");
2486
    } else {
2487
      sb.append(this.billed_by);
2488
    }
2489
    first = false;
2490
    if (!first) sb.append(", ");
2491
    sb.append("created_timestamp:");
2492
    sb.append(this.created_timestamp);
2493
    first = false;
2494
    if (!first) sb.append(", ");
2495
    sb.append("accepted_timestamp:");
2496
    sb.append(this.accepted_timestamp);
2497
    first = false;
2498
    if (!first) sb.append(", ");
2499
    sb.append("billing_timestamp:");
2500
    sb.append(this.billing_timestamp);
2501
    first = false;
2502
    if (!first) sb.append(", ");
2503
    sb.append("shipping_timestamp:");
2504
    sb.append(this.shipping_timestamp);
2505
    first = false;
2506
    if (!first) sb.append(", ");
2507
    sb.append("delivery_timestamp:");
2508
    sb.append(this.delivery_timestamp);
2509
    first = false;
640 chandransh 2510
    if (!first) sb.append(", ");
2511
    sb.append("jacket_number:");
2512
    sb.append(this.jacket_number);
2513
    first = false;
668 chandransh 2514
    if (!first) sb.append(", ");
2515
    sb.append("customer_city:");
2516
    if (this.customer_city == null) {
2517
      sb.append("null");
2518
    } else {
2519
      sb.append(this.customer_city);
2520
    }
2521
    first = false;
2522
    if (!first) sb.append(", ");
2523
    sb.append("customer_state:");
2524
    if (this.customer_state == null) {
2525
      sb.append("null");
2526
    } else {
2527
      sb.append(this.customer_state);
2528
    }
2529
    first = false;
483 rajveer 2530
    sb.append(")");
2531
    return sb.toString();
2532
  }
2533
 
2534
  public void validate() throws TException {
2535
    // check for required fields
2536
  }
2537
 
2538
}
2539