Subversion Repositories SmartDukaan

Rev

Rev 3106 | Rev 3269 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3028 mandeep.dh 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.crm;
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 Ticket implements TBase<Ticket._Fields>, java.io.Serializable, Cloneable, Comparable<Ticket> {
27
  private static final TStruct STRUCT_DESC = new TStruct("Ticket");
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
30
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)2);
31
  private static final TField OPEN_DATE_FIELD_DESC = new TField("openDate", TType.I64, (short)3);
32
  private static final TField CLOSE_DATE_FIELD_DESC = new TField("closeDate", TType.I64, (short)4);
3106 mandeep.dh 33
  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)5);
34
  private static final TField PRIORITY_FIELD_DESC = new TField("priority", TType.I32, (short)6);
35
  private static final TField CATEGORY_FIELD_DESC = new TField("category", TType.I32, (short)7);
36
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)8);
37
  private static final TField ASSIGNEE_ID_FIELD_DESC = new TField("assigneeId", TType.I64, (short)9);
38
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)10);
39
  private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)11);
40
  private static final TField AIRWAY_BILL_NO_FIELD_DESC = new TField("airwayBillNo", TType.STRING, (short)12);
41
  private static final TField PRODUCT_NAME_FIELD_DESC = new TField("productName", TType.STRING, (short)13);
3028 mandeep.dh 42
 
43
  private long id;
44
  private long customerId;
45
  private long openDate;
46
  private long closeDate;
3106 mandeep.dh 47
  private String description;
48
  private TicketPriority priority;
49
  private TicketCategory category;
50
  private TicketStatus status;
51
  private long assigneeId;
3028 mandeep.dh 52
  private long creatorId;
53
  private long orderId;
54
  private String airwayBillNo;
55
  private String productName;
56
 
57
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58
  public enum _Fields implements TFieldIdEnum {
59
    ID((short)1, "id"),
60
    CUSTOMER_ID((short)2, "customerId"),
61
    OPEN_DATE((short)3, "openDate"),
62
    CLOSE_DATE((short)4, "closeDate"),
3106 mandeep.dh 63
    DESCRIPTION((short)5, "description"),
64
    /**
65
     * 
66
     * @see TicketPriority
67
     */
68
    PRIORITY((short)6, "priority"),
69
    /**
70
     * 
71
     * @see TicketCategory
72
     */
73
    CATEGORY((short)7, "category"),
74
    /**
75
     * 
76
     * @see TicketStatus
77
     */
78
    STATUS((short)8, "status"),
79
    ASSIGNEE_ID((short)9, "assigneeId"),
80
    CREATOR_ID((short)10, "creatorId"),
81
    ORDER_ID((short)11, "orderId"),
82
    AIRWAY_BILL_NO((short)12, "airwayBillNo"),
83
    PRODUCT_NAME((short)13, "productName");
3028 mandeep.dh 84
 
85
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
86
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
87
 
88
    static {
89
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
90
        byId.put((int)field._thriftId, field);
91
        byName.put(field.getFieldName(), field);
92
      }
93
    }
94
 
95
    /**
96
     * Find the _Fields constant that matches fieldId, or null if its not found.
97
     */
98
    public static _Fields findByThriftId(int fieldId) {
99
      return byId.get(fieldId);
100
    }
101
 
102
    /**
103
     * Find the _Fields constant that matches fieldId, throwing an exception
104
     * if it is not found.
105
     */
106
    public static _Fields findByThriftIdOrThrow(int fieldId) {
107
      _Fields fields = findByThriftId(fieldId);
108
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
109
      return fields;
110
    }
111
 
112
    /**
113
     * Find the _Fields constant that matches name, or null if its not found.
114
     */
115
    public static _Fields findByName(String name) {
116
      return byName.get(name);
117
    }
118
 
119
    private final short _thriftId;
120
    private final String _fieldName;
121
 
122
    _Fields(short thriftId, String fieldName) {
123
      _thriftId = thriftId;
124
      _fieldName = fieldName;
125
    }
126
 
127
    public short getThriftFieldId() {
128
      return _thriftId;
129
    }
130
 
131
    public String getFieldName() {
132
      return _fieldName;
133
    }
134
  }
135
 
136
  // isset id assignments
137
  private static final int __ID_ISSET_ID = 0;
138
  private static final int __CUSTOMERID_ISSET_ID = 1;
139
  private static final int __OPENDATE_ISSET_ID = 2;
140
  private static final int __CLOSEDATE_ISSET_ID = 3;
3106 mandeep.dh 141
  private static final int __ASSIGNEEID_ISSET_ID = 4;
142
  private static final int __CREATORID_ISSET_ID = 5;
3028 mandeep.dh 143
  private static final int __ORDERID_ISSET_ID = 6;
144
  private BitSet __isset_bit_vector = new BitSet(7);
145
 
146
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
147
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
148
        new FieldValueMetaData(TType.I64)));
149
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
150
        new FieldValueMetaData(TType.I64)));
151
    put(_Fields.OPEN_DATE, new FieldMetaData("openDate", TFieldRequirementType.DEFAULT, 
152
        new FieldValueMetaData(TType.I64)));
3168 mandeep.dh 153
    put(_Fields.CLOSE_DATE, new FieldMetaData("closeDate", TFieldRequirementType.OPTIONAL, 
3028 mandeep.dh 154
        new FieldValueMetaData(TType.I64)));
3106 mandeep.dh 155
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
3028 mandeep.dh 156
        new FieldValueMetaData(TType.STRING)));
3106 mandeep.dh 157
    put(_Fields.PRIORITY, new FieldMetaData("priority", TFieldRequirementType.DEFAULT, 
158
        new EnumMetaData(TType.ENUM, TicketPriority.class)));
159
    put(_Fields.CATEGORY, new FieldMetaData("category", TFieldRequirementType.DEFAULT, 
160
        new EnumMetaData(TType.ENUM, TicketCategory.class)));
161
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
162
        new EnumMetaData(TType.ENUM, TicketStatus.class)));
3168 mandeep.dh 163
    put(_Fields.ASSIGNEE_ID, new FieldMetaData("assigneeId", TFieldRequirementType.OPTIONAL, 
3106 mandeep.dh 164
        new FieldValueMetaData(TType.I64)));
3028 mandeep.dh 165
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
166
        new FieldValueMetaData(TType.I64)));
3168 mandeep.dh 167
    put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.OPTIONAL, 
3028 mandeep.dh 168
        new FieldValueMetaData(TType.I64)));
3168 mandeep.dh 169
    put(_Fields.AIRWAY_BILL_NO, new FieldMetaData("airwayBillNo", TFieldRequirementType.OPTIONAL, 
3028 mandeep.dh 170
        new FieldValueMetaData(TType.STRING)));
3168 mandeep.dh 171
    put(_Fields.PRODUCT_NAME, new FieldMetaData("productName", TFieldRequirementType.OPTIONAL, 
3028 mandeep.dh 172
        new FieldValueMetaData(TType.STRING)));
173
  }});
174
 
175
  static {
176
    FieldMetaData.addStructMetaDataMap(Ticket.class, metaDataMap);
177
  }
178
 
179
  public Ticket() {
180
  }
181
 
182
  public Ticket(
183
    long id,
184
    long customerId,
185
    long openDate,
3106 mandeep.dh 186
    String description,
187
    TicketPriority priority,
188
    TicketCategory category,
189
    TicketStatus status,
3168 mandeep.dh 190
    long creatorId)
3028 mandeep.dh 191
  {
192
    this();
193
    this.id = id;
194
    setIdIsSet(true);
195
    this.customerId = customerId;
196
    setCustomerIdIsSet(true);
197
    this.openDate = openDate;
198
    setOpenDateIsSet(true);
3106 mandeep.dh 199
    this.description = description;
200
    this.priority = priority;
201
    this.category = category;
202
    this.status = status;
3028 mandeep.dh 203
    this.creatorId = creatorId;
204
    setCreatorIdIsSet(true);
205
  }
206
 
207
  /**
208
   * Performs a deep copy on <i>other</i>.
209
   */
210
  public Ticket(Ticket other) {
211
    __isset_bit_vector.clear();
212
    __isset_bit_vector.or(other.__isset_bit_vector);
213
    this.id = other.id;
214
    this.customerId = other.customerId;
215
    this.openDate = other.openDate;
216
    this.closeDate = other.closeDate;
3106 mandeep.dh 217
    if (other.isSetDescription()) {
218
      this.description = other.description;
3028 mandeep.dh 219
    }
3106 mandeep.dh 220
    if (other.isSetPriority()) {
221
      this.priority = other.priority;
222
    }
223
    if (other.isSetCategory()) {
224
      this.category = other.category;
225
    }
226
    if (other.isSetStatus()) {
227
      this.status = other.status;
228
    }
229
    this.assigneeId = other.assigneeId;
3028 mandeep.dh 230
    this.creatorId = other.creatorId;
231
    this.orderId = other.orderId;
232
    if (other.isSetAirwayBillNo()) {
233
      this.airwayBillNo = other.airwayBillNo;
234
    }
235
    if (other.isSetProductName()) {
236
      this.productName = other.productName;
237
    }
238
  }
239
 
240
  public Ticket deepCopy() {
241
    return new Ticket(this);
242
  }
243
 
244
  @Deprecated
245
  public Ticket clone() {
246
    return new Ticket(this);
247
  }
248
 
249
  public long getId() {
250
    return this.id;
251
  }
252
 
253
  public Ticket setId(long id) {
254
    this.id = id;
255
    setIdIsSet(true);
256
    return this;
257
  }
258
 
259
  public void unsetId() {
260
    __isset_bit_vector.clear(__ID_ISSET_ID);
261
  }
262
 
263
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
264
  public boolean isSetId() {
265
    return __isset_bit_vector.get(__ID_ISSET_ID);
266
  }
267
 
268
  public void setIdIsSet(boolean value) {
269
    __isset_bit_vector.set(__ID_ISSET_ID, value);
270
  }
271
 
272
  public long getCustomerId() {
273
    return this.customerId;
274
  }
275
 
276
  public Ticket setCustomerId(long customerId) {
277
    this.customerId = customerId;
278
    setCustomerIdIsSet(true);
279
    return this;
280
  }
281
 
282
  public void unsetCustomerId() {
283
    __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
284
  }
285
 
286
  /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
287
  public boolean isSetCustomerId() {
288
    return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
289
  }
290
 
291
  public void setCustomerIdIsSet(boolean value) {
292
    __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
293
  }
294
 
295
  public long getOpenDate() {
296
    return this.openDate;
297
  }
298
 
299
  public Ticket setOpenDate(long openDate) {
300
    this.openDate = openDate;
301
    setOpenDateIsSet(true);
302
    return this;
303
  }
304
 
305
  public void unsetOpenDate() {
306
    __isset_bit_vector.clear(__OPENDATE_ISSET_ID);
307
  }
308
 
309
  /** Returns true if field openDate is set (has been asigned a value) and false otherwise */
310
  public boolean isSetOpenDate() {
311
    return __isset_bit_vector.get(__OPENDATE_ISSET_ID);
312
  }
313
 
314
  public void setOpenDateIsSet(boolean value) {
315
    __isset_bit_vector.set(__OPENDATE_ISSET_ID, value);
316
  }
317
 
318
  public long getCloseDate() {
319
    return this.closeDate;
320
  }
321
 
322
  public Ticket setCloseDate(long closeDate) {
323
    this.closeDate = closeDate;
324
    setCloseDateIsSet(true);
325
    return this;
326
  }
327
 
328
  public void unsetCloseDate() {
329
    __isset_bit_vector.clear(__CLOSEDATE_ISSET_ID);
330
  }
331
 
332
  /** Returns true if field closeDate is set (has been asigned a value) and false otherwise */
333
  public boolean isSetCloseDate() {
334
    return __isset_bit_vector.get(__CLOSEDATE_ISSET_ID);
335
  }
336
 
337
  public void setCloseDateIsSet(boolean value) {
338
    __isset_bit_vector.set(__CLOSEDATE_ISSET_ID, value);
339
  }
340
 
3106 mandeep.dh 341
  public String getDescription() {
342
    return this.description;
3028 mandeep.dh 343
  }
344
 
3106 mandeep.dh 345
  public Ticket setDescription(String description) {
346
    this.description = description;
3028 mandeep.dh 347
    return this;
348
  }
349
 
3106 mandeep.dh 350
  public void unsetDescription() {
351
    this.description = null;
3028 mandeep.dh 352
  }
353
 
3106 mandeep.dh 354
  /** Returns true if field description is set (has been asigned a value) and false otherwise */
355
  public boolean isSetDescription() {
356
    return this.description != null;
3028 mandeep.dh 357
  }
358
 
3106 mandeep.dh 359
  public void setDescriptionIsSet(boolean value) {
3028 mandeep.dh 360
    if (!value) {
3106 mandeep.dh 361
      this.description = null;
3028 mandeep.dh 362
    }
363
  }
364
 
3106 mandeep.dh 365
  /**
366
   * 
367
   * @see TicketPriority
368
   */
369
  public TicketPriority getPriority() {
370
    return this.priority;
371
  }
372
 
373
  /**
374
   * 
375
   * @see TicketPriority
376
   */
377
  public Ticket setPriority(TicketPriority priority) {
378
    this.priority = priority;
379
    return this;
380
  }
381
 
382
  public void unsetPriority() {
383
    this.priority = null;
384
  }
385
 
386
  /** Returns true if field priority is set (has been asigned a value) and false otherwise */
387
  public boolean isSetPriority() {
388
    return this.priority != null;
389
  }
390
 
391
  public void setPriorityIsSet(boolean value) {
392
    if (!value) {
393
      this.priority = null;
394
    }
395
  }
396
 
397
  /**
398
   * 
399
   * @see TicketCategory
400
   */
401
  public TicketCategory getCategory() {
402
    return this.category;
403
  }
404
 
405
  /**
406
   * 
407
   * @see TicketCategory
408
   */
409
  public Ticket setCategory(TicketCategory category) {
410
    this.category = category;
411
    return this;
412
  }
413
 
414
  public void unsetCategory() {
415
    this.category = null;
416
  }
417
 
418
  /** Returns true if field category is set (has been asigned a value) and false otherwise */
419
  public boolean isSetCategory() {
420
    return this.category != null;
421
  }
422
 
423
  public void setCategoryIsSet(boolean value) {
424
    if (!value) {
425
      this.category = null;
426
    }
427
  }
428
 
429
  /**
430
   * 
431
   * @see TicketStatus
432
   */
433
  public TicketStatus getStatus() {
434
    return this.status;
435
  }
436
 
437
  /**
438
   * 
439
   * @see TicketStatus
440
   */
441
  public Ticket setStatus(TicketStatus status) {
442
    this.status = status;
443
    return this;
444
  }
445
 
446
  public void unsetStatus() {
447
    this.status = null;
448
  }
449
 
450
  /** Returns true if field status is set (has been asigned a value) and false otherwise */
451
  public boolean isSetStatus() {
452
    return this.status != null;
453
  }
454
 
455
  public void setStatusIsSet(boolean value) {
456
    if (!value) {
457
      this.status = null;
458
    }
459
  }
460
 
461
  public long getAssigneeId() {
462
    return this.assigneeId;
463
  }
464
 
465
  public Ticket setAssigneeId(long assigneeId) {
466
    this.assigneeId = assigneeId;
467
    setAssigneeIdIsSet(true);
468
    return this;
469
  }
470
 
471
  public void unsetAssigneeId() {
472
    __isset_bit_vector.clear(__ASSIGNEEID_ISSET_ID);
473
  }
474
 
475
  /** Returns true if field assigneeId is set (has been asigned a value) and false otherwise */
476
  public boolean isSetAssigneeId() {
477
    return __isset_bit_vector.get(__ASSIGNEEID_ISSET_ID);
478
  }
479
 
480
  public void setAssigneeIdIsSet(boolean value) {
481
    __isset_bit_vector.set(__ASSIGNEEID_ISSET_ID, value);
482
  }
483
 
3028 mandeep.dh 484
  public long getCreatorId() {
485
    return this.creatorId;
486
  }
487
 
488
  public Ticket setCreatorId(long creatorId) {
489
    this.creatorId = creatorId;
490
    setCreatorIdIsSet(true);
491
    return this;
492
  }
493
 
494
  public void unsetCreatorId() {
495
    __isset_bit_vector.clear(__CREATORID_ISSET_ID);
496
  }
497
 
498
  /** Returns true if field creatorId is set (has been asigned a value) and false otherwise */
499
  public boolean isSetCreatorId() {
500
    return __isset_bit_vector.get(__CREATORID_ISSET_ID);
501
  }
502
 
503
  public void setCreatorIdIsSet(boolean value) {
504
    __isset_bit_vector.set(__CREATORID_ISSET_ID, value);
505
  }
506
 
507
  public long getOrderId() {
508
    return this.orderId;
509
  }
510
 
511
  public Ticket setOrderId(long orderId) {
512
    this.orderId = orderId;
513
    setOrderIdIsSet(true);
514
    return this;
515
  }
516
 
517
  public void unsetOrderId() {
518
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
519
  }
520
 
521
  /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
522
  public boolean isSetOrderId() {
523
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
524
  }
525
 
526
  public void setOrderIdIsSet(boolean value) {
527
    __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
528
  }
529
 
530
  public String getAirwayBillNo() {
531
    return this.airwayBillNo;
532
  }
533
 
534
  public Ticket setAirwayBillNo(String airwayBillNo) {
535
    this.airwayBillNo = airwayBillNo;
536
    return this;
537
  }
538
 
539
  public void unsetAirwayBillNo() {
540
    this.airwayBillNo = null;
541
  }
542
 
543
  /** Returns true if field airwayBillNo is set (has been asigned a value) and false otherwise */
544
  public boolean isSetAirwayBillNo() {
545
    return this.airwayBillNo != null;
546
  }
547
 
548
  public void setAirwayBillNoIsSet(boolean value) {
549
    if (!value) {
550
      this.airwayBillNo = null;
551
    }
552
  }
553
 
554
  public String getProductName() {
555
    return this.productName;
556
  }
557
 
558
  public Ticket setProductName(String productName) {
559
    this.productName = productName;
560
    return this;
561
  }
562
 
563
  public void unsetProductName() {
564
    this.productName = null;
565
  }
566
 
567
  /** Returns true if field productName is set (has been asigned a value) and false otherwise */
568
  public boolean isSetProductName() {
569
    return this.productName != null;
570
  }
571
 
572
  public void setProductNameIsSet(boolean value) {
573
    if (!value) {
574
      this.productName = null;
575
    }
576
  }
577
 
578
  public void setFieldValue(_Fields field, Object value) {
579
    switch (field) {
580
    case ID:
581
      if (value == null) {
582
        unsetId();
583
      } else {
584
        setId((Long)value);
585
      }
586
      break;
587
 
588
    case CUSTOMER_ID:
589
      if (value == null) {
590
        unsetCustomerId();
591
      } else {
592
        setCustomerId((Long)value);
593
      }
594
      break;
595
 
596
    case OPEN_DATE:
597
      if (value == null) {
598
        unsetOpenDate();
599
      } else {
600
        setOpenDate((Long)value);
601
      }
602
      break;
603
 
604
    case CLOSE_DATE:
605
      if (value == null) {
606
        unsetCloseDate();
607
      } else {
608
        setCloseDate((Long)value);
609
      }
610
      break;
611
 
3106 mandeep.dh 612
    case DESCRIPTION:
3028 mandeep.dh 613
      if (value == null) {
3106 mandeep.dh 614
        unsetDescription();
3028 mandeep.dh 615
      } else {
3106 mandeep.dh 616
        setDescription((String)value);
3028 mandeep.dh 617
      }
618
      break;
619
 
3106 mandeep.dh 620
    case PRIORITY:
3028 mandeep.dh 621
      if (value == null) {
3106 mandeep.dh 622
        unsetPriority();
3028 mandeep.dh 623
      } else {
3106 mandeep.dh 624
        setPriority((TicketPriority)value);
3028 mandeep.dh 625
      }
626
      break;
627
 
3106 mandeep.dh 628
    case CATEGORY:
3028 mandeep.dh 629
      if (value == null) {
3106 mandeep.dh 630
        unsetCategory();
3028 mandeep.dh 631
      } else {
3106 mandeep.dh 632
        setCategory((TicketCategory)value);
3028 mandeep.dh 633
      }
634
      break;
635
 
3106 mandeep.dh 636
    case STATUS:
637
      if (value == null) {
638
        unsetStatus();
639
      } else {
640
        setStatus((TicketStatus)value);
641
      }
642
      break;
643
 
644
    case ASSIGNEE_ID:
645
      if (value == null) {
646
        unsetAssigneeId();
647
      } else {
648
        setAssigneeId((Long)value);
649
      }
650
      break;
651
 
652
    case CREATOR_ID:
653
      if (value == null) {
654
        unsetCreatorId();
655
      } else {
656
        setCreatorId((Long)value);
657
      }
658
      break;
659
 
3028 mandeep.dh 660
    case ORDER_ID:
661
      if (value == null) {
662
        unsetOrderId();
663
      } else {
664
        setOrderId((Long)value);
665
      }
666
      break;
667
 
668
    case AIRWAY_BILL_NO:
669
      if (value == null) {
670
        unsetAirwayBillNo();
671
      } else {
672
        setAirwayBillNo((String)value);
673
      }
674
      break;
675
 
676
    case PRODUCT_NAME:
677
      if (value == null) {
678
        unsetProductName();
679
      } else {
680
        setProductName((String)value);
681
      }
682
      break;
683
 
684
    }
685
  }
686
 
687
  public void setFieldValue(int fieldID, Object value) {
688
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
689
  }
690
 
691
  public Object getFieldValue(_Fields field) {
692
    switch (field) {
693
    case ID:
694
      return new Long(getId());
695
 
696
    case CUSTOMER_ID:
697
      return new Long(getCustomerId());
698
 
699
    case OPEN_DATE:
700
      return new Long(getOpenDate());
701
 
702
    case CLOSE_DATE:
703
      return new Long(getCloseDate());
704
 
3106 mandeep.dh 705
    case DESCRIPTION:
706
      return getDescription();
3028 mandeep.dh 707
 
3106 mandeep.dh 708
    case PRIORITY:
709
      return getPriority();
710
 
711
    case CATEGORY:
712
      return getCategory();
713
 
714
    case STATUS:
715
      return getStatus();
716
 
717
    case ASSIGNEE_ID:
718
      return new Long(getAssigneeId());
719
 
3028 mandeep.dh 720
    case CREATOR_ID:
721
      return new Long(getCreatorId());
722
 
723
    case ORDER_ID:
724
      return new Long(getOrderId());
725
 
726
    case AIRWAY_BILL_NO:
727
      return getAirwayBillNo();
728
 
729
    case PRODUCT_NAME:
730
      return getProductName();
731
 
732
    }
733
    throw new IllegalStateException();
734
  }
735
 
736
  public Object getFieldValue(int fieldId) {
737
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
738
  }
739
 
740
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
741
  public boolean isSet(_Fields field) {
742
    switch (field) {
743
    case ID:
744
      return isSetId();
745
    case CUSTOMER_ID:
746
      return isSetCustomerId();
747
    case OPEN_DATE:
748
      return isSetOpenDate();
749
    case CLOSE_DATE:
750
      return isSetCloseDate();
3106 mandeep.dh 751
    case DESCRIPTION:
752
      return isSetDescription();
753
    case PRIORITY:
754
      return isSetPriority();
755
    case CATEGORY:
756
      return isSetCategory();
757
    case STATUS:
758
      return isSetStatus();
759
    case ASSIGNEE_ID:
760
      return isSetAssigneeId();
3028 mandeep.dh 761
    case CREATOR_ID:
762
      return isSetCreatorId();
763
    case ORDER_ID:
764
      return isSetOrderId();
765
    case AIRWAY_BILL_NO:
766
      return isSetAirwayBillNo();
767
    case PRODUCT_NAME:
768
      return isSetProductName();
769
    }
770
    throw new IllegalStateException();
771
  }
772
 
773
  public boolean isSet(int fieldID) {
774
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
775
  }
776
 
777
  @Override
778
  public boolean equals(Object that) {
779
    if (that == null)
780
      return false;
781
    if (that instanceof Ticket)
782
      return this.equals((Ticket)that);
783
    return false;
784
  }
785
 
786
  public boolean equals(Ticket that) {
787
    if (that == null)
788
      return false;
789
 
790
    boolean this_present_id = true;
791
    boolean that_present_id = true;
792
    if (this_present_id || that_present_id) {
793
      if (!(this_present_id && that_present_id))
794
        return false;
795
      if (this.id != that.id)
796
        return false;
797
    }
798
 
799
    boolean this_present_customerId = true;
800
    boolean that_present_customerId = true;
801
    if (this_present_customerId || that_present_customerId) {
802
      if (!(this_present_customerId && that_present_customerId))
803
        return false;
804
      if (this.customerId != that.customerId)
805
        return false;
806
    }
807
 
808
    boolean this_present_openDate = true;
809
    boolean that_present_openDate = true;
810
    if (this_present_openDate || that_present_openDate) {
811
      if (!(this_present_openDate && that_present_openDate))
812
        return false;
813
      if (this.openDate != that.openDate)
814
        return false;
815
    }
816
 
3168 mandeep.dh 817
    boolean this_present_closeDate = true && this.isSetCloseDate();
818
    boolean that_present_closeDate = true && that.isSetCloseDate();
3028 mandeep.dh 819
    if (this_present_closeDate || that_present_closeDate) {
820
      if (!(this_present_closeDate && that_present_closeDate))
821
        return false;
822
      if (this.closeDate != that.closeDate)
823
        return false;
824
    }
825
 
3106 mandeep.dh 826
    boolean this_present_description = true && this.isSetDescription();
827
    boolean that_present_description = true && that.isSetDescription();
828
    if (this_present_description || that_present_description) {
829
      if (!(this_present_description && that_present_description))
3028 mandeep.dh 830
        return false;
3106 mandeep.dh 831
      if (!this.description.equals(that.description))
3028 mandeep.dh 832
        return false;
833
    }
834
 
3106 mandeep.dh 835
    boolean this_present_priority = true && this.isSetPriority();
836
    boolean that_present_priority = true && that.isSetPriority();
837
    if (this_present_priority || that_present_priority) {
838
      if (!(this_present_priority && that_present_priority))
839
        return false;
840
      if (!this.priority.equals(that.priority))
841
        return false;
842
    }
843
 
844
    boolean this_present_category = true && this.isSetCategory();
845
    boolean that_present_category = true && that.isSetCategory();
846
    if (this_present_category || that_present_category) {
847
      if (!(this_present_category && that_present_category))
848
        return false;
849
      if (!this.category.equals(that.category))
850
        return false;
851
    }
852
 
853
    boolean this_present_status = true && this.isSetStatus();
854
    boolean that_present_status = true && that.isSetStatus();
855
    if (this_present_status || that_present_status) {
856
      if (!(this_present_status && that_present_status))
857
        return false;
858
      if (!this.status.equals(that.status))
859
        return false;
860
    }
861
 
3168 mandeep.dh 862
    boolean this_present_assigneeId = true && this.isSetAssigneeId();
863
    boolean that_present_assigneeId = true && that.isSetAssigneeId();
3106 mandeep.dh 864
    if (this_present_assigneeId || that_present_assigneeId) {
865
      if (!(this_present_assigneeId && that_present_assigneeId))
866
        return false;
867
      if (this.assigneeId != that.assigneeId)
868
        return false;
869
    }
870
 
3028 mandeep.dh 871
    boolean this_present_creatorId = true;
872
    boolean that_present_creatorId = true;
873
    if (this_present_creatorId || that_present_creatorId) {
874
      if (!(this_present_creatorId && that_present_creatorId))
875
        return false;
876
      if (this.creatorId != that.creatorId)
877
        return false;
878
    }
879
 
3168 mandeep.dh 880
    boolean this_present_orderId = true && this.isSetOrderId();
881
    boolean that_present_orderId = true && that.isSetOrderId();
3028 mandeep.dh 882
    if (this_present_orderId || that_present_orderId) {
883
      if (!(this_present_orderId && that_present_orderId))
884
        return false;
885
      if (this.orderId != that.orderId)
886
        return false;
887
    }
888
 
889
    boolean this_present_airwayBillNo = true && this.isSetAirwayBillNo();
890
    boolean that_present_airwayBillNo = true && that.isSetAirwayBillNo();
891
    if (this_present_airwayBillNo || that_present_airwayBillNo) {
892
      if (!(this_present_airwayBillNo && that_present_airwayBillNo))
893
        return false;
894
      if (!this.airwayBillNo.equals(that.airwayBillNo))
895
        return false;
896
    }
897
 
898
    boolean this_present_productName = true && this.isSetProductName();
899
    boolean that_present_productName = true && that.isSetProductName();
900
    if (this_present_productName || that_present_productName) {
901
      if (!(this_present_productName && that_present_productName))
902
        return false;
903
      if (!this.productName.equals(that.productName))
904
        return false;
905
    }
906
 
907
    return true;
908
  }
909
 
910
  @Override
911
  public int hashCode() {
912
    return 0;
913
  }
914
 
915
  public int compareTo(Ticket other) {
916
    if (!getClass().equals(other.getClass())) {
917
      return getClass().getName().compareTo(other.getClass().getName());
918
    }
919
 
920
    int lastComparison = 0;
921
    Ticket typedOther = (Ticket)other;
922
 
923
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
924
    if (lastComparison != 0) {
925
      return lastComparison;
926
    }
927
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
928
    if (lastComparison != 0) {
929
      return lastComparison;
930
    }
931
    lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
932
    if (lastComparison != 0) {
933
      return lastComparison;
934
    }
935
    lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
936
    if (lastComparison != 0) {
937
      return lastComparison;
938
    }
939
    lastComparison = Boolean.valueOf(isSetOpenDate()).compareTo(isSetOpenDate());
940
    if (lastComparison != 0) {
941
      return lastComparison;
942
    }
943
    lastComparison = TBaseHelper.compareTo(openDate, typedOther.openDate);
944
    if (lastComparison != 0) {
945
      return lastComparison;
946
    }
947
    lastComparison = Boolean.valueOf(isSetCloseDate()).compareTo(isSetCloseDate());
948
    if (lastComparison != 0) {
949
      return lastComparison;
950
    }
951
    lastComparison = TBaseHelper.compareTo(closeDate, typedOther.closeDate);
952
    if (lastComparison != 0) {
953
      return lastComparison;
954
    }
3106 mandeep.dh 955
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
3028 mandeep.dh 956
    if (lastComparison != 0) {
957
      return lastComparison;
958
    }
3106 mandeep.dh 959
    lastComparison = TBaseHelper.compareTo(description, typedOther.description);
3028 mandeep.dh 960
    if (lastComparison != 0) {
961
      return lastComparison;
962
    }
3106 mandeep.dh 963
    lastComparison = Boolean.valueOf(isSetPriority()).compareTo(isSetPriority());
3028 mandeep.dh 964
    if (lastComparison != 0) {
965
      return lastComparison;
966
    }
3106 mandeep.dh 967
    lastComparison = TBaseHelper.compareTo(priority, typedOther.priority);
3028 mandeep.dh 968
    if (lastComparison != 0) {
969
      return lastComparison;
970
    }
3106 mandeep.dh 971
    lastComparison = Boolean.valueOf(isSetCategory()).compareTo(isSetCategory());
3028 mandeep.dh 972
    if (lastComparison != 0) {
973
      return lastComparison;
974
    }
3106 mandeep.dh 975
    lastComparison = TBaseHelper.compareTo(category, typedOther.category);
3028 mandeep.dh 976
    if (lastComparison != 0) {
977
      return lastComparison;
978
    }
3106 mandeep.dh 979
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
980
    if (lastComparison != 0) {
981
      return lastComparison;
982
    }
983
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
984
    if (lastComparison != 0) {
985
      return lastComparison;
986
    }
987
    lastComparison = Boolean.valueOf(isSetAssigneeId()).compareTo(isSetAssigneeId());
988
    if (lastComparison != 0) {
989
      return lastComparison;
990
    }
991
    lastComparison = TBaseHelper.compareTo(assigneeId, typedOther.assigneeId);
992
    if (lastComparison != 0) {
993
      return lastComparison;
994
    }
995
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
996
    if (lastComparison != 0) {
997
      return lastComparison;
998
    }
999
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
1000
    if (lastComparison != 0) {
1001
      return lastComparison;
1002
    }
3028 mandeep.dh 1003
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
1004
    if (lastComparison != 0) {
1005
      return lastComparison;
1006
    }
1007
    lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
1008
    if (lastComparison != 0) {
1009
      return lastComparison;
1010
    }
1011
    lastComparison = Boolean.valueOf(isSetAirwayBillNo()).compareTo(isSetAirwayBillNo());
1012
    if (lastComparison != 0) {
1013
      return lastComparison;
1014
    }
1015
    lastComparison = TBaseHelper.compareTo(airwayBillNo, typedOther.airwayBillNo);
1016
    if (lastComparison != 0) {
1017
      return lastComparison;
1018
    }
1019
    lastComparison = Boolean.valueOf(isSetProductName()).compareTo(isSetProductName());
1020
    if (lastComparison != 0) {
1021
      return lastComparison;
1022
    }
1023
    lastComparison = TBaseHelper.compareTo(productName, typedOther.productName);
1024
    if (lastComparison != 0) {
1025
      return lastComparison;
1026
    }
1027
    return 0;
1028
  }
1029
 
1030
  public void read(TProtocol iprot) throws TException {
1031
    TField field;
1032
    iprot.readStructBegin();
1033
    while (true)
1034
    {
1035
      field = iprot.readFieldBegin();
1036
      if (field.type == TType.STOP) { 
1037
        break;
1038
      }
1039
      _Fields fieldId = _Fields.findByThriftId(field.id);
1040
      if (fieldId == null) {
1041
        TProtocolUtil.skip(iprot, field.type);
1042
      } else {
1043
        switch (fieldId) {
1044
          case ID:
1045
            if (field.type == TType.I64) {
1046
              this.id = iprot.readI64();
1047
              setIdIsSet(true);
1048
            } else { 
1049
              TProtocolUtil.skip(iprot, field.type);
1050
            }
1051
            break;
1052
          case CUSTOMER_ID:
1053
            if (field.type == TType.I64) {
1054
              this.customerId = iprot.readI64();
1055
              setCustomerIdIsSet(true);
1056
            } else { 
1057
              TProtocolUtil.skip(iprot, field.type);
1058
            }
1059
            break;
1060
          case OPEN_DATE:
1061
            if (field.type == TType.I64) {
1062
              this.openDate = iprot.readI64();
1063
              setOpenDateIsSet(true);
1064
            } else { 
1065
              TProtocolUtil.skip(iprot, field.type);
1066
            }
1067
            break;
1068
          case CLOSE_DATE:
1069
            if (field.type == TType.I64) {
1070
              this.closeDate = iprot.readI64();
1071
              setCloseDateIsSet(true);
1072
            } else { 
1073
              TProtocolUtil.skip(iprot, field.type);
1074
            }
1075
            break;
3106 mandeep.dh 1076
          case DESCRIPTION:
3028 mandeep.dh 1077
            if (field.type == TType.STRING) {
3106 mandeep.dh 1078
              this.description = iprot.readString();
3028 mandeep.dh 1079
            } else { 
1080
              TProtocolUtil.skip(iprot, field.type);
1081
            }
1082
            break;
3106 mandeep.dh 1083
          case PRIORITY:
1084
            if (field.type == TType.I32) {
1085
              this.priority = TicketPriority.findByValue(iprot.readI32());
1086
            } else { 
1087
              TProtocolUtil.skip(iprot, field.type);
1088
            }
1089
            break;
1090
          case CATEGORY:
1091
            if (field.type == TType.I32) {
1092
              this.category = TicketCategory.findByValue(iprot.readI32());
1093
            } else { 
1094
              TProtocolUtil.skip(iprot, field.type);
1095
            }
1096
            break;
1097
          case STATUS:
1098
            if (field.type == TType.I32) {
1099
              this.status = TicketStatus.findByValue(iprot.readI32());
1100
            } else { 
1101
              TProtocolUtil.skip(iprot, field.type);
1102
            }
1103
            break;
1104
          case ASSIGNEE_ID:
3028 mandeep.dh 1105
            if (field.type == TType.I64) {
3106 mandeep.dh 1106
              this.assigneeId = iprot.readI64();
1107
              setAssigneeIdIsSet(true);
3028 mandeep.dh 1108
            } else { 
1109
              TProtocolUtil.skip(iprot, field.type);
1110
            }
1111
            break;
3106 mandeep.dh 1112
          case CREATOR_ID:
3028 mandeep.dh 1113
            if (field.type == TType.I64) {
3106 mandeep.dh 1114
              this.creatorId = iprot.readI64();
1115
              setCreatorIdIsSet(true);
3028 mandeep.dh 1116
            } else { 
1117
              TProtocolUtil.skip(iprot, field.type);
1118
            }
1119
            break;
1120
          case ORDER_ID:
1121
            if (field.type == TType.I64) {
1122
              this.orderId = iprot.readI64();
1123
              setOrderIdIsSet(true);
1124
            } else { 
1125
              TProtocolUtil.skip(iprot, field.type);
1126
            }
1127
            break;
1128
          case AIRWAY_BILL_NO:
1129
            if (field.type == TType.STRING) {
1130
              this.airwayBillNo = iprot.readString();
1131
            } else { 
1132
              TProtocolUtil.skip(iprot, field.type);
1133
            }
1134
            break;
1135
          case PRODUCT_NAME:
1136
            if (field.type == TType.STRING) {
1137
              this.productName = iprot.readString();
1138
            } else { 
1139
              TProtocolUtil.skip(iprot, field.type);
1140
            }
1141
            break;
1142
        }
1143
        iprot.readFieldEnd();
1144
      }
1145
    }
1146
    iprot.readStructEnd();
1147
    validate();
1148
  }
1149
 
1150
  public void write(TProtocol oprot) throws TException {
1151
    validate();
1152
 
1153
    oprot.writeStructBegin(STRUCT_DESC);
1154
    oprot.writeFieldBegin(ID_FIELD_DESC);
1155
    oprot.writeI64(this.id);
1156
    oprot.writeFieldEnd();
1157
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1158
    oprot.writeI64(this.customerId);
1159
    oprot.writeFieldEnd();
1160
    oprot.writeFieldBegin(OPEN_DATE_FIELD_DESC);
1161
    oprot.writeI64(this.openDate);
1162
    oprot.writeFieldEnd();
3168 mandeep.dh 1163
    if (isSetCloseDate()) {
1164
      oprot.writeFieldBegin(CLOSE_DATE_FIELD_DESC);
1165
      oprot.writeI64(this.closeDate);
1166
      oprot.writeFieldEnd();
1167
    }
3106 mandeep.dh 1168
    if (this.description != null) {
1169
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
1170
      oprot.writeString(this.description);
3028 mandeep.dh 1171
      oprot.writeFieldEnd();
1172
    }
3106 mandeep.dh 1173
    if (this.priority != null) {
1174
      oprot.writeFieldBegin(PRIORITY_FIELD_DESC);
1175
      oprot.writeI32(this.priority.getValue());
1176
      oprot.writeFieldEnd();
1177
    }
1178
    if (this.category != null) {
1179
      oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
1180
      oprot.writeI32(this.category.getValue());
1181
      oprot.writeFieldEnd();
1182
    }
1183
    if (this.status != null) {
1184
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
1185
      oprot.writeI32(this.status.getValue());
1186
      oprot.writeFieldEnd();
1187
    }
3168 mandeep.dh 1188
    if (isSetAssigneeId()) {
1189
      oprot.writeFieldBegin(ASSIGNEE_ID_FIELD_DESC);
1190
      oprot.writeI64(this.assigneeId);
1191
      oprot.writeFieldEnd();
1192
    }
3028 mandeep.dh 1193
    oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
1194
    oprot.writeI64(this.creatorId);
1195
    oprot.writeFieldEnd();
3168 mandeep.dh 1196
    if (isSetOrderId()) {
1197
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
1198
      oprot.writeI64(this.orderId);
3028 mandeep.dh 1199
      oprot.writeFieldEnd();
1200
    }
3168 mandeep.dh 1201
    if (this.airwayBillNo != null) {
1202
      if (isSetAirwayBillNo()) {
1203
        oprot.writeFieldBegin(AIRWAY_BILL_NO_FIELD_DESC);
1204
        oprot.writeString(this.airwayBillNo);
1205
        oprot.writeFieldEnd();
1206
      }
1207
    }
3028 mandeep.dh 1208
    if (this.productName != null) {
3168 mandeep.dh 1209
      if (isSetProductName()) {
1210
        oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
1211
        oprot.writeString(this.productName);
1212
        oprot.writeFieldEnd();
1213
      }
3028 mandeep.dh 1214
    }
1215
    oprot.writeFieldStop();
1216
    oprot.writeStructEnd();
1217
  }
1218
 
1219
  @Override
1220
  public String toString() {
1221
    StringBuilder sb = new StringBuilder("Ticket(");
1222
    boolean first = true;
1223
 
1224
    sb.append("id:");
1225
    sb.append(this.id);
1226
    first = false;
1227
    if (!first) sb.append(", ");
1228
    sb.append("customerId:");
1229
    sb.append(this.customerId);
1230
    first = false;
1231
    if (!first) sb.append(", ");
1232
    sb.append("openDate:");
1233
    sb.append(this.openDate);
1234
    first = false;
3168 mandeep.dh 1235
    if (isSetCloseDate()) {
1236
      if (!first) sb.append(", ");
1237
      sb.append("closeDate:");
1238
      sb.append(this.closeDate);
1239
      first = false;
1240
    }
3028 mandeep.dh 1241
    if (!first) sb.append(", ");
3106 mandeep.dh 1242
    sb.append("description:");
1243
    if (this.description == null) {
3028 mandeep.dh 1244
      sb.append("null");
1245
    } else {
3106 mandeep.dh 1246
      sb.append(this.description);
3028 mandeep.dh 1247
    }
1248
    first = false;
1249
    if (!first) sb.append(", ");
3106 mandeep.dh 1250
    sb.append("priority:");
1251
    if (this.priority == null) {
1252
      sb.append("null");
1253
    } else {
1254
      String priority_name = priority.name();
1255
      if (priority_name != null) {
1256
        sb.append(priority_name);
1257
        sb.append(" (");
1258
      }
1259
      sb.append(this.priority);
1260
      if (priority_name != null) {
1261
        sb.append(")");
1262
      }
1263
    }
1264
    first = false;
1265
    if (!first) sb.append(", ");
1266
    sb.append("category:");
1267
    if (this.category == null) {
1268
      sb.append("null");
1269
    } else {
1270
      String category_name = category.name();
1271
      if (category_name != null) {
1272
        sb.append(category_name);
1273
        sb.append(" (");
1274
      }
1275
      sb.append(this.category);
1276
      if (category_name != null) {
1277
        sb.append(")");
1278
      }
1279
    }
1280
    first = false;
1281
    if (!first) sb.append(", ");
1282
    sb.append("status:");
1283
    if (this.status == null) {
1284
      sb.append("null");
1285
    } else {
1286
      String status_name = status.name();
1287
      if (status_name != null) {
1288
        sb.append(status_name);
1289
        sb.append(" (");
1290
      }
1291
      sb.append(this.status);
1292
      if (status_name != null) {
1293
        sb.append(")");
1294
      }
1295
    }
1296
    first = false;
3168 mandeep.dh 1297
    if (isSetAssigneeId()) {
1298
      if (!first) sb.append(", ");
1299
      sb.append("assigneeId:");
1300
      sb.append(this.assigneeId);
1301
      first = false;
1302
    }
3106 mandeep.dh 1303
    if (!first) sb.append(", ");
3028 mandeep.dh 1304
    sb.append("creatorId:");
1305
    sb.append(this.creatorId);
1306
    first = false;
3168 mandeep.dh 1307
    if (isSetOrderId()) {
1308
      if (!first) sb.append(", ");
1309
      sb.append("orderId:");
1310
      sb.append(this.orderId);
1311
      first = false;
3028 mandeep.dh 1312
    }
3168 mandeep.dh 1313
    if (isSetAirwayBillNo()) {
1314
      if (!first) sb.append(", ");
1315
      sb.append("airwayBillNo:");
1316
      if (this.airwayBillNo == null) {
1317
        sb.append("null");
1318
      } else {
1319
        sb.append(this.airwayBillNo);
1320
      }
1321
      first = false;
3028 mandeep.dh 1322
    }
3168 mandeep.dh 1323
    if (isSetProductName()) {
1324
      if (!first) sb.append(", ");
1325
      sb.append("productName:");
1326
      if (this.productName == null) {
1327
        sb.append("null");
1328
      } else {
1329
        sb.append(this.productName);
1330
      }
1331
      first = false;
1332
    }
3028 mandeep.dh 1333
    sb.append(")");
1334
    return sb.toString();
1335
  }
1336
 
1337
  public void validate() throws TException {
1338
    // check for required fields
1339
  }
1340
 
1341
}
1342