Subversion Repositories SmartDukaan

Rev

Rev 3028 | Rev 3168 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3028 Rev 3106
Line 28... Line 28...
28
 
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
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);
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);
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);
32
  private static final TField CLOSE_DATE_FIELD_DESC = new TField("closeDate", TType.I64, (short)4);
33
  private static final TField SUBJECT_FIELD_DESC = new TField("subject", TType.STRING, (short)5);
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);
34
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (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);
35
  private static final TField RECEIPIENT_ID_FIELD_DESC = new TField("receipientId", TType.I64, (short)7);
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);
36
  private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)8);
39
  private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)11);
37
  private static final TField AIRWAY_BILL_NO_FIELD_DESC = new TField("airwayBillNo", TType.STRING, (short)9);
40
  private static final TField AIRWAY_BILL_NO_FIELD_DESC = new TField("airwayBillNo", TType.STRING, (short)12);
38
  private static final TField PRODUCT_NAME_FIELD_DESC = new TField("productName", TType.STRING, (short)10);
41
  private static final TField PRODUCT_NAME_FIELD_DESC = new TField("productName", TType.STRING, (short)13);
39
 
42
 
40
  private long id;
43
  private long id;
41
  private long customerId;
44
  private long customerId;
42
  private long openDate;
45
  private long openDate;
43
  private long closeDate;
46
  private long closeDate;
44
  private String subject;
47
  private String description;
-
 
48
  private TicketPriority priority;
-
 
49
  private TicketCategory category;
-
 
50
  private TicketStatus status;
-
 
51
  private long assigneeId;
45
  private long creatorId;
52
  private long creatorId;
46
  private long receipientId;
-
 
47
  private long orderId;
53
  private long orderId;
48
  private String airwayBillNo;
54
  private String airwayBillNo;
49
  private String productName;
55
  private String productName;
50
 
56
 
51
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52
  public enum _Fields implements TFieldIdEnum {
58
  public enum _Fields implements TFieldIdEnum {
53
    ID((short)1, "id"),
59
    ID((short)1, "id"),
54
    CUSTOMER_ID((short)2, "customerId"),
60
    CUSTOMER_ID((short)2, "customerId"),
55
    OPEN_DATE((short)3, "openDate"),
61
    OPEN_DATE((short)3, "openDate"),
56
    CLOSE_DATE((short)4, "closeDate"),
62
    CLOSE_DATE((short)4, "closeDate"),
-
 
63
    DESCRIPTION((short)5, "description"),
-
 
64
    /**
-
 
65
     * 
-
 
66
     * @see TicketPriority
-
 
67
     */
57
    SUBJECT((short)5, "subject"),
68
    PRIORITY((short)6, "priority"),
-
 
69
    /**
-
 
70
     * 
-
 
71
     * @see TicketCategory
-
 
72
     */
58
    CREATOR_ID((short)6, "creatorId"),
73
    CATEGORY((short)7, "category"),
-
 
74
    /**
-
 
75
     * 
-
 
76
     * @see TicketStatus
-
 
77
     */
-
 
78
    STATUS((short)8, "status"),
59
    RECEIPIENT_ID((short)7, "receipientId"),
79
    ASSIGNEE_ID((short)9, "assigneeId"),
-
 
80
    CREATOR_ID((short)10, "creatorId"),
60
    ORDER_ID((short)8, "orderId"),
81
    ORDER_ID((short)11, "orderId"),
61
    AIRWAY_BILL_NO((short)9, "airwayBillNo"),
82
    AIRWAY_BILL_NO((short)12, "airwayBillNo"),
62
    PRODUCT_NAME((short)10, "productName");
83
    PRODUCT_NAME((short)13, "productName");
63
 
84
 
64
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
85
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
65
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
86
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
66
 
87
 
67
    static {
88
    static {
Line 115... Line 136...
115
  // isset id assignments
136
  // isset id assignments
116
  private static final int __ID_ISSET_ID = 0;
137
  private static final int __ID_ISSET_ID = 0;
117
  private static final int __CUSTOMERID_ISSET_ID = 1;
138
  private static final int __CUSTOMERID_ISSET_ID = 1;
118
  private static final int __OPENDATE_ISSET_ID = 2;
139
  private static final int __OPENDATE_ISSET_ID = 2;
119
  private static final int __CLOSEDATE_ISSET_ID = 3;
140
  private static final int __CLOSEDATE_ISSET_ID = 3;
120
  private static final int __CREATORID_ISSET_ID = 4;
141
  private static final int __ASSIGNEEID_ISSET_ID = 4;
121
  private static final int __RECEIPIENTID_ISSET_ID = 5;
142
  private static final int __CREATORID_ISSET_ID = 5;
122
  private static final int __ORDERID_ISSET_ID = 6;
143
  private static final int __ORDERID_ISSET_ID = 6;
123
  private BitSet __isset_bit_vector = new BitSet(7);
144
  private BitSet __isset_bit_vector = new BitSet(7);
124
 
145
 
125
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
146
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
126
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
147
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
Line 129... Line 150...
129
        new FieldValueMetaData(TType.I64)));
150
        new FieldValueMetaData(TType.I64)));
130
    put(_Fields.OPEN_DATE, new FieldMetaData("openDate", TFieldRequirementType.DEFAULT, 
151
    put(_Fields.OPEN_DATE, new FieldMetaData("openDate", TFieldRequirementType.DEFAULT, 
131
        new FieldValueMetaData(TType.I64)));
152
        new FieldValueMetaData(TType.I64)));
132
    put(_Fields.CLOSE_DATE, new FieldMetaData("closeDate", TFieldRequirementType.DEFAULT, 
153
    put(_Fields.CLOSE_DATE, new FieldMetaData("closeDate", TFieldRequirementType.DEFAULT, 
133
        new FieldValueMetaData(TType.I64)));
154
        new FieldValueMetaData(TType.I64)));
134
    put(_Fields.SUBJECT, new FieldMetaData("subject", TFieldRequirementType.DEFAULT, 
155
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
135
        new FieldValueMetaData(TType.STRING)));
156
        new FieldValueMetaData(TType.STRING)));
-
 
157
    put(_Fields.PRIORITY, new FieldMetaData("priority", TFieldRequirementType.DEFAULT, 
-
 
158
        new EnumMetaData(TType.ENUM, TicketPriority.class)));
136
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
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)));
-
 
163
    put(_Fields.ASSIGNEE_ID, new FieldMetaData("assigneeId", TFieldRequirementType.DEFAULT, 
137
        new FieldValueMetaData(TType.I64)));
164
        new FieldValueMetaData(TType.I64)));
138
    put(_Fields.RECEIPIENT_ID, new FieldMetaData("receipientId", TFieldRequirementType.DEFAULT, 
165
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
139
        new FieldValueMetaData(TType.I64)));
166
        new FieldValueMetaData(TType.I64)));
140
    put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
167
    put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
141
        new FieldValueMetaData(TType.I64)));
168
        new FieldValueMetaData(TType.I64)));
142
    put(_Fields.AIRWAY_BILL_NO, new FieldMetaData("airwayBillNo", TFieldRequirementType.DEFAULT, 
169
    put(_Fields.AIRWAY_BILL_NO, new FieldMetaData("airwayBillNo", TFieldRequirementType.DEFAULT, 
143
        new FieldValueMetaData(TType.STRING)));
170
        new FieldValueMetaData(TType.STRING)));
Line 155... Line 182...
155
  public Ticket(
182
  public Ticket(
156
    long id,
183
    long id,
157
    long customerId,
184
    long customerId,
158
    long openDate,
185
    long openDate,
159
    long closeDate,
186
    long closeDate,
160
    String subject,
187
    String description,
-
 
188
    TicketPriority priority,
-
 
189
    TicketCategory category,
-
 
190
    TicketStatus status,
-
 
191
    long assigneeId,
161
    long creatorId,
192
    long creatorId,
162
    long receipientId,
-
 
163
    long orderId,
193
    long orderId,
164
    String airwayBillNo,
194
    String airwayBillNo,
165
    String productName)
195
    String productName)
166
  {
196
  {
167
    this();
197
    this();
Line 171... Line 201...
171
    setCustomerIdIsSet(true);
201
    setCustomerIdIsSet(true);
172
    this.openDate = openDate;
202
    this.openDate = openDate;
173
    setOpenDateIsSet(true);
203
    setOpenDateIsSet(true);
174
    this.closeDate = closeDate;
204
    this.closeDate = closeDate;
175
    setCloseDateIsSet(true);
205
    setCloseDateIsSet(true);
-
 
206
    this.description = description;
-
 
207
    this.priority = priority;
-
 
208
    this.category = category;
176
    this.subject = subject;
209
    this.status = status;
-
 
210
    this.assigneeId = assigneeId;
-
 
211
    setAssigneeIdIsSet(true);
177
    this.creatorId = creatorId;
212
    this.creatorId = creatorId;
178
    setCreatorIdIsSet(true);
213
    setCreatorIdIsSet(true);
179
    this.receipientId = receipientId;
-
 
180
    setReceipientIdIsSet(true);
-
 
181
    this.orderId = orderId;
214
    this.orderId = orderId;
182
    setOrderIdIsSet(true);
215
    setOrderIdIsSet(true);
183
    this.airwayBillNo = airwayBillNo;
216
    this.airwayBillNo = airwayBillNo;
184
    this.productName = productName;
217
    this.productName = productName;
185
  }
218
  }
Line 192... Line 225...
192
    __isset_bit_vector.or(other.__isset_bit_vector);
225
    __isset_bit_vector.or(other.__isset_bit_vector);
193
    this.id = other.id;
226
    this.id = other.id;
194
    this.customerId = other.customerId;
227
    this.customerId = other.customerId;
195
    this.openDate = other.openDate;
228
    this.openDate = other.openDate;
196
    this.closeDate = other.closeDate;
229
    this.closeDate = other.closeDate;
-
 
230
    if (other.isSetDescription()) {
-
 
231
      this.description = other.description;
-
 
232
    }
197
    if (other.isSetSubject()) {
233
    if (other.isSetPriority()) {
198
      this.subject = other.subject;
234
      this.priority = other.priority;
-
 
235
    }
-
 
236
    if (other.isSetCategory()) {
-
 
237
      this.category = other.category;
199
    }
238
    }
-
 
239
    if (other.isSetStatus()) {
-
 
240
      this.status = other.status;
-
 
241
    }
-
 
242
    this.assigneeId = other.assigneeId;
200
    this.creatorId = other.creatorId;
243
    this.creatorId = other.creatorId;
201
    this.receipientId = other.receipientId;
-
 
202
    this.orderId = other.orderId;
244
    this.orderId = other.orderId;
203
    if (other.isSetAirwayBillNo()) {
245
    if (other.isSetAirwayBillNo()) {
204
      this.airwayBillNo = other.airwayBillNo;
246
      this.airwayBillNo = other.airwayBillNo;
205
    }
247
    }
206
    if (other.isSetProductName()) {
248
    if (other.isSetProductName()) {
Line 307... Line 349...
307
 
349
 
308
  public void setCloseDateIsSet(boolean value) {
350
  public void setCloseDateIsSet(boolean value) {
309
    __isset_bit_vector.set(__CLOSEDATE_ISSET_ID, value);
351
    __isset_bit_vector.set(__CLOSEDATE_ISSET_ID, value);
310
  }
352
  }
311
 
353
 
312
  public String getSubject() {
354
  public String getDescription() {
-
 
355
    return this.description;
-
 
356
  }
-
 
357
 
-
 
358
  public Ticket setDescription(String description) {
-
 
359
    this.description = description;
-
 
360
    return this;
-
 
361
  }
-
 
362
 
-
 
363
  public void unsetDescription() {
-
 
364
    this.description = null;
-
 
365
  }
-
 
366
 
-
 
367
  /** Returns true if field description is set (has been asigned a value) and false otherwise */
-
 
368
  public boolean isSetDescription() {
-
 
369
    return this.description != null;
-
 
370
  }
-
 
371
 
-
 
372
  public void setDescriptionIsSet(boolean value) {
-
 
373
    if (!value) {
-
 
374
      this.description = null;
-
 
375
    }
-
 
376
  }
-
 
377
 
-
 
378
  /**
-
 
379
   * 
-
 
380
   * @see TicketPriority
-
 
381
   */
-
 
382
  public TicketPriority getPriority() {
313
    return this.subject;
383
    return this.priority;
-
 
384
  }
-
 
385
 
-
 
386
  /**
-
 
387
   * 
-
 
388
   * @see TicketPriority
-
 
389
   */
-
 
390
  public Ticket setPriority(TicketPriority priority) {
-
 
391
    this.priority = priority;
-
 
392
    return this;
-
 
393
  }
-
 
394
 
-
 
395
  public void unsetPriority() {
-
 
396
    this.priority = null;
-
 
397
  }
-
 
398
 
-
 
399
  /** Returns true if field priority is set (has been asigned a value) and false otherwise */
-
 
400
  public boolean isSetPriority() {
-
 
401
    return this.priority != null;
-
 
402
  }
-
 
403
 
-
 
404
  public void setPriorityIsSet(boolean value) {
-
 
405
    if (!value) {
-
 
406
      this.priority = null;
-
 
407
    }
-
 
408
  }
-
 
409
 
-
 
410
  /**
-
 
411
   * 
-
 
412
   * @see TicketCategory
-
 
413
   */
-
 
414
  public TicketCategory getCategory() {
-
 
415
    return this.category;
-
 
416
  }
-
 
417
 
-
 
418
  /**
-
 
419
   * 
-
 
420
   * @see TicketCategory
-
 
421
   */
-
 
422
  public Ticket setCategory(TicketCategory category) {
-
 
423
    this.category = category;
-
 
424
    return this;
-
 
425
  }
-
 
426
 
-
 
427
  public void unsetCategory() {
-
 
428
    this.category = null;
-
 
429
  }
-
 
430
 
-
 
431
  /** Returns true if field category is set (has been asigned a value) and false otherwise */
-
 
432
  public boolean isSetCategory() {
-
 
433
    return this.category != null;
314
  }
434
  }
315
 
435
 
-
 
436
  public void setCategoryIsSet(boolean value) {
-
 
437
    if (!value) {
-
 
438
      this.category = null;
-
 
439
    }
-
 
440
  }
-
 
441
 
-
 
442
  /**
-
 
443
   * 
-
 
444
   * @see TicketStatus
-
 
445
   */
-
 
446
  public TicketStatus getStatus() {
-
 
447
    return this.status;
-
 
448
  }
-
 
449
 
-
 
450
  /**
-
 
451
   * 
-
 
452
   * @see TicketStatus
-
 
453
   */
316
  public Ticket setSubject(String subject) {
454
  public Ticket setStatus(TicketStatus status) {
317
    this.subject = subject;
455
    this.status = status;
318
    return this;
456
    return this;
319
  }
457
  }
320
 
458
 
321
  public void unsetSubject() {
459
  public void unsetStatus() {
322
    this.subject = null;
460
    this.status = null;
323
  }
461
  }
324
 
462
 
325
  /** Returns true if field subject is set (has been asigned a value) and false otherwise */
463
  /** Returns true if field status is set (has been asigned a value) and false otherwise */
326
  public boolean isSetSubject() {
464
  public boolean isSetStatus() {
327
    return this.subject != null;
465
    return this.status != null;
328
  }
466
  }
329
 
467
 
330
  public void setSubjectIsSet(boolean value) {
468
  public void setStatusIsSet(boolean value) {
331
    if (!value) {
469
    if (!value) {
332
      this.subject = null;
470
      this.status = null;
333
    }
471
    }
334
  }
472
  }
335
 
473
 
-
 
474
  public long getAssigneeId() {
-
 
475
    return this.assigneeId;
-
 
476
  }
-
 
477
 
-
 
478
  public Ticket setAssigneeId(long assigneeId) {
-
 
479
    this.assigneeId = assigneeId;
-
 
480
    setAssigneeIdIsSet(true);
-
 
481
    return this;
-
 
482
  }
-
 
483
 
-
 
484
  public void unsetAssigneeId() {
-
 
485
    __isset_bit_vector.clear(__ASSIGNEEID_ISSET_ID);
-
 
486
  }
-
 
487
 
-
 
488
  /** Returns true if field assigneeId is set (has been asigned a value) and false otherwise */
-
 
489
  public boolean isSetAssigneeId() {
-
 
490
    return __isset_bit_vector.get(__ASSIGNEEID_ISSET_ID);
-
 
491
  }
-
 
492
 
-
 
493
  public void setAssigneeIdIsSet(boolean value) {
-
 
494
    __isset_bit_vector.set(__ASSIGNEEID_ISSET_ID, value);
-
 
495
  }
-
 
496
 
336
  public long getCreatorId() {
497
  public long getCreatorId() {
337
    return this.creatorId;
498
    return this.creatorId;
338
  }
499
  }
339
 
500
 
340
  public Ticket setCreatorId(long creatorId) {
501
  public Ticket setCreatorId(long creatorId) {
Line 354... Line 515...
354
 
515
 
355
  public void setCreatorIdIsSet(boolean value) {
516
  public void setCreatorIdIsSet(boolean value) {
356
    __isset_bit_vector.set(__CREATORID_ISSET_ID, value);
517
    __isset_bit_vector.set(__CREATORID_ISSET_ID, value);
357
  }
518
  }
358
 
519
 
359
  public long getReceipientId() {
-
 
360
    return this.receipientId;
-
 
361
  }
-
 
362
 
-
 
363
  public Ticket setReceipientId(long receipientId) {
-
 
364
    this.receipientId = receipientId;
-
 
365
    setReceipientIdIsSet(true);
-
 
366
    return this;
-
 
367
  }
-
 
368
 
-
 
369
  public void unsetReceipientId() {
-
 
370
    __isset_bit_vector.clear(__RECEIPIENTID_ISSET_ID);
-
 
371
  }
-
 
372
 
-
 
373
  /** Returns true if field receipientId is set (has been asigned a value) and false otherwise */
-
 
374
  public boolean isSetReceipientId() {
-
 
375
    return __isset_bit_vector.get(__RECEIPIENTID_ISSET_ID);
-
 
376
  }
-
 
377
 
-
 
378
  public void setReceipientIdIsSet(boolean value) {
-
 
379
    __isset_bit_vector.set(__RECEIPIENTID_ISSET_ID, value);
-
 
380
  }
-
 
381
 
-
 
382
  public long getOrderId() {
520
  public long getOrderId() {
383
    return this.orderId;
521
    return this.orderId;
384
  }
522
  }
385
 
523
 
386
  public Ticket setOrderId(long orderId) {
524
  public Ticket setOrderId(long orderId) {
Line 482... Line 620...
482
      } else {
620
      } else {
483
        setCloseDate((Long)value);
621
        setCloseDate((Long)value);
484
      }
622
      }
485
      break;
623
      break;
486
 
624
 
487
    case SUBJECT:
625
    case DESCRIPTION:
488
      if (value == null) {
626
      if (value == null) {
489
        unsetSubject();
627
        unsetDescription();
490
      } else {
628
      } else {
491
        setSubject((String)value);
629
        setDescription((String)value);
492
      }
630
      }
493
      break;
631
      break;
494
 
632
 
495
    case CREATOR_ID:
633
    case PRIORITY:
496
      if (value == null) {
634
      if (value == null) {
497
        unsetCreatorId();
635
        unsetPriority();
498
      } else {
636
      } else {
499
        setCreatorId((Long)value);
637
        setPriority((TicketPriority)value);
500
      }
638
      }
501
      break;
639
      break;
502
 
640
 
503
    case RECEIPIENT_ID:
641
    case CATEGORY:
504
      if (value == null) {
642
      if (value == null) {
505
        unsetReceipientId();
643
        unsetCategory();
506
      } else {
644
      } else {
-
 
645
        setCategory((TicketCategory)value);
-
 
646
      }
-
 
647
      break;
-
 
648
 
-
 
649
    case STATUS:
-
 
650
      if (value == null) {
-
 
651
        unsetStatus();
-
 
652
      } else {
-
 
653
        setStatus((TicketStatus)value);
-
 
654
      }
-
 
655
      break;
-
 
656
 
-
 
657
    case ASSIGNEE_ID:
-
 
658
      if (value == null) {
-
 
659
        unsetAssigneeId();
-
 
660
      } else {
507
        setReceipientId((Long)value);
661
        setAssigneeId((Long)value);
-
 
662
      }
-
 
663
      break;
-
 
664
 
-
 
665
    case CREATOR_ID:
-
 
666
      if (value == null) {
-
 
667
        unsetCreatorId();
-
 
668
      } else {
-
 
669
        setCreatorId((Long)value);
508
      }
670
      }
509
      break;
671
      break;
510
 
672
 
511
    case ORDER_ID:
673
    case ORDER_ID:
512
      if (value == null) {
674
      if (value == null) {
Line 551... Line 713...
551
      return new Long(getOpenDate());
713
      return new Long(getOpenDate());
552
 
714
 
553
    case CLOSE_DATE:
715
    case CLOSE_DATE:
554
      return new Long(getCloseDate());
716
      return new Long(getCloseDate());
555
 
717
 
-
 
718
    case DESCRIPTION:
-
 
719
      return getDescription();
-
 
720
 
-
 
721
    case PRIORITY:
-
 
722
      return getPriority();
-
 
723
 
-
 
724
    case CATEGORY:
-
 
725
      return getCategory();
-
 
726
 
556
    case SUBJECT:
727
    case STATUS:
557
      return getSubject();
728
      return getStatus();
-
 
729
 
-
 
730
    case ASSIGNEE_ID:
-
 
731
      return new Long(getAssigneeId());
558
 
732
 
559
    case CREATOR_ID:
733
    case CREATOR_ID:
560
      return new Long(getCreatorId());
734
      return new Long(getCreatorId());
561
 
735
 
562
    case RECEIPIENT_ID:
-
 
563
      return new Long(getReceipientId());
-
 
564
 
-
 
565
    case ORDER_ID:
736
    case ORDER_ID:
566
      return new Long(getOrderId());
737
      return new Long(getOrderId());
567
 
738
 
568
    case AIRWAY_BILL_NO:
739
    case AIRWAY_BILL_NO:
569
      return getAirwayBillNo();
740
      return getAirwayBillNo();
Line 588... Line 759...
588
      return isSetCustomerId();
759
      return isSetCustomerId();
589
    case OPEN_DATE:
760
    case OPEN_DATE:
590
      return isSetOpenDate();
761
      return isSetOpenDate();
591
    case CLOSE_DATE:
762
    case CLOSE_DATE:
592
      return isSetCloseDate();
763
      return isSetCloseDate();
-
 
764
    case DESCRIPTION:
-
 
765
      return isSetDescription();
-
 
766
    case PRIORITY:
-
 
767
      return isSetPriority();
-
 
768
    case CATEGORY:
-
 
769
      return isSetCategory();
593
    case SUBJECT:
770
    case STATUS:
594
      return isSetSubject();
771
      return isSetStatus();
-
 
772
    case ASSIGNEE_ID:
-
 
773
      return isSetAssigneeId();
595
    case CREATOR_ID:
774
    case CREATOR_ID:
596
      return isSetCreatorId();
775
      return isSetCreatorId();
597
    case RECEIPIENT_ID:
-
 
598
      return isSetReceipientId();
-
 
599
    case ORDER_ID:
776
    case ORDER_ID:
600
      return isSetOrderId();
777
      return isSetOrderId();
601
    case AIRWAY_BILL_NO:
778
    case AIRWAY_BILL_NO:
602
      return isSetAirwayBillNo();
779
      return isSetAirwayBillNo();
603
    case PRODUCT_NAME:
780
    case PRODUCT_NAME:
Line 657... Line 834...
657
        return false;
834
        return false;
658
      if (this.closeDate != that.closeDate)
835
      if (this.closeDate != that.closeDate)
659
        return false;
836
        return false;
660
    }
837
    }
661
 
838
 
-
 
839
    boolean this_present_description = true && this.isSetDescription();
-
 
840
    boolean that_present_description = true && that.isSetDescription();
-
 
841
    if (this_present_description || that_present_description) {
-
 
842
      if (!(this_present_description && that_present_description))
-
 
843
        return false;
-
 
844
      if (!this.description.equals(that.description))
-
 
845
        return false;
-
 
846
    }
-
 
847
 
-
 
848
    boolean this_present_priority = true && this.isSetPriority();
-
 
849
    boolean that_present_priority = true && that.isSetPriority();
-
 
850
    if (this_present_priority || that_present_priority) {
-
 
851
      if (!(this_present_priority && that_present_priority))
-
 
852
        return false;
-
 
853
      if (!this.priority.equals(that.priority))
-
 
854
        return false;
-
 
855
    }
-
 
856
 
-
 
857
    boolean this_present_category = true && this.isSetCategory();
-
 
858
    boolean that_present_category = true && that.isSetCategory();
-
 
859
    if (this_present_category || that_present_category) {
-
 
860
      if (!(this_present_category && that_present_category))
-
 
861
        return false;
-
 
862
      if (!this.category.equals(that.category))
-
 
863
        return false;
-
 
864
    }
-
 
865
 
662
    boolean this_present_subject = true && this.isSetSubject();
866
    boolean this_present_status = true && this.isSetStatus();
663
    boolean that_present_subject = true && that.isSetSubject();
867
    boolean that_present_status = true && that.isSetStatus();
664
    if (this_present_subject || that_present_subject) {
868
    if (this_present_status || that_present_status) {
665
      if (!(this_present_subject && that_present_subject))
869
      if (!(this_present_status && that_present_status))
666
        return false;
870
        return false;
667
      if (!this.subject.equals(that.subject))
871
      if (!this.status.equals(that.status))
-
 
872
        return false;
-
 
873
    }
-
 
874
 
-
 
875
    boolean this_present_assigneeId = true;
-
 
876
    boolean that_present_assigneeId = true;
-
 
877
    if (this_present_assigneeId || that_present_assigneeId) {
-
 
878
      if (!(this_present_assigneeId && that_present_assigneeId))
-
 
879
        return false;
-
 
880
      if (this.assigneeId != that.assigneeId)
668
        return false;
881
        return false;
669
    }
882
    }
670
 
883
 
671
    boolean this_present_creatorId = true;
884
    boolean this_present_creatorId = true;
672
    boolean that_present_creatorId = true;
885
    boolean that_present_creatorId = true;
Line 675... Line 888...
675
        return false;
888
        return false;
676
      if (this.creatorId != that.creatorId)
889
      if (this.creatorId != that.creatorId)
677
        return false;
890
        return false;
678
    }
891
    }
679
 
892
 
680
    boolean this_present_receipientId = true;
-
 
681
    boolean that_present_receipientId = true;
-
 
682
    if (this_present_receipientId || that_present_receipientId) {
-
 
683
      if (!(this_present_receipientId && that_present_receipientId))
-
 
684
        return false;
-
 
685
      if (this.receipientId != that.receipientId)
-
 
686
        return false;
-
 
687
    }
-
 
688
 
-
 
689
    boolean this_present_orderId = true;
893
    boolean this_present_orderId = true;
690
    boolean that_present_orderId = true;
894
    boolean that_present_orderId = true;
691
    if (this_present_orderId || that_present_orderId) {
895
    if (this_present_orderId || that_present_orderId) {
692
      if (!(this_present_orderId && that_present_orderId))
896
      if (!(this_present_orderId && that_present_orderId))
693
        return false;
897
        return false;
Line 759... Line 963...
759
    }
963
    }
760
    lastComparison = TBaseHelper.compareTo(closeDate, typedOther.closeDate);
964
    lastComparison = TBaseHelper.compareTo(closeDate, typedOther.closeDate);
761
    if (lastComparison != 0) {
965
    if (lastComparison != 0) {
762
      return lastComparison;
966
      return lastComparison;
763
    }
967
    }
764
    lastComparison = Boolean.valueOf(isSetSubject()).compareTo(isSetSubject());
968
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
765
    if (lastComparison != 0) {
969
    if (lastComparison != 0) {
766
      return lastComparison;
970
      return lastComparison;
767
    }
971
    }
768
    lastComparison = TBaseHelper.compareTo(subject, typedOther.subject);
972
    lastComparison = TBaseHelper.compareTo(description, typedOther.description);
769
    if (lastComparison != 0) {
973
    if (lastComparison != 0) {
770
      return lastComparison;
974
      return lastComparison;
771
    }
975
    }
772
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
976
    lastComparison = Boolean.valueOf(isSetPriority()).compareTo(isSetPriority());
773
    if (lastComparison != 0) {
977
    if (lastComparison != 0) {
774
      return lastComparison;
978
      return lastComparison;
775
    }
979
    }
-
 
980
    lastComparison = TBaseHelper.compareTo(priority, typedOther.priority);
-
 
981
    if (lastComparison != 0) {
-
 
982
      return lastComparison;
-
 
983
    }
-
 
984
    lastComparison = Boolean.valueOf(isSetCategory()).compareTo(isSetCategory());
-
 
985
    if (lastComparison != 0) {
-
 
986
      return lastComparison;
-
 
987
    }
776
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
988
    lastComparison = TBaseHelper.compareTo(category, typedOther.category);
-
 
989
    if (lastComparison != 0) {
-
 
990
      return lastComparison;
-
 
991
    }
-
 
992
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
777
    if (lastComparison != 0) {
993
    if (lastComparison != 0) {
778
      return lastComparison;
994
      return lastComparison;
779
    }
995
    }
780
    lastComparison = Boolean.valueOf(isSetReceipientId()).compareTo(isSetReceipientId());
996
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
781
    if (lastComparison != 0) {
997
    if (lastComparison != 0) {
782
      return lastComparison;
998
      return lastComparison;
783
    }
999
    }
-
 
1000
    lastComparison = Boolean.valueOf(isSetAssigneeId()).compareTo(isSetAssigneeId());
-
 
1001
    if (lastComparison != 0) {
-
 
1002
      return lastComparison;
-
 
1003
    }
784
    lastComparison = TBaseHelper.compareTo(receipientId, typedOther.receipientId);
1004
    lastComparison = TBaseHelper.compareTo(assigneeId, typedOther.assigneeId);
-
 
1005
    if (lastComparison != 0) {
-
 
1006
      return lastComparison;
-
 
1007
    }
-
 
1008
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
-
 
1009
    if (lastComparison != 0) {
-
 
1010
      return lastComparison;
-
 
1011
    }
-
 
1012
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
785
    if (lastComparison != 0) {
1013
    if (lastComparison != 0) {
786
      return lastComparison;
1014
      return lastComparison;
787
    }
1015
    }
788
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
1016
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
789
    if (lastComparison != 0) {
1017
    if (lastComparison != 0) {
Line 856... Line 1084...
856
              setCloseDateIsSet(true);
1084
              setCloseDateIsSet(true);
857
            } else { 
1085
            } else { 
858
              TProtocolUtil.skip(iprot, field.type);
1086
              TProtocolUtil.skip(iprot, field.type);
859
            }
1087
            }
860
            break;
1088
            break;
861
          case SUBJECT:
1089
          case DESCRIPTION:
862
            if (field.type == TType.STRING) {
1090
            if (field.type == TType.STRING) {
863
              this.subject = iprot.readString();
1091
              this.description = iprot.readString();
864
            } else { 
1092
            } else { 
865
              TProtocolUtil.skip(iprot, field.type);
1093
              TProtocolUtil.skip(iprot, field.type);
866
            }
1094
            }
867
            break;
1095
            break;
868
          case CREATOR_ID:
1096
          case PRIORITY:
-
 
1097
            if (field.type == TType.I32) {
-
 
1098
              this.priority = TicketPriority.findByValue(iprot.readI32());
-
 
1099
            } else { 
-
 
1100
              TProtocolUtil.skip(iprot, field.type);
-
 
1101
            }
-
 
1102
            break;
-
 
1103
          case CATEGORY:
-
 
1104
            if (field.type == TType.I32) {
-
 
1105
              this.category = TicketCategory.findByValue(iprot.readI32());
-
 
1106
            } else { 
-
 
1107
              TProtocolUtil.skip(iprot, field.type);
-
 
1108
            }
-
 
1109
            break;
-
 
1110
          case STATUS:
-
 
1111
            if (field.type == TType.I32) {
-
 
1112
              this.status = TicketStatus.findByValue(iprot.readI32());
-
 
1113
            } else { 
-
 
1114
              TProtocolUtil.skip(iprot, field.type);
-
 
1115
            }
-
 
1116
            break;
-
 
1117
          case ASSIGNEE_ID:
869
            if (field.type == TType.I64) {
1118
            if (field.type == TType.I64) {
870
              this.creatorId = iprot.readI64();
1119
              this.assigneeId = iprot.readI64();
871
              setCreatorIdIsSet(true);
1120
              setAssigneeIdIsSet(true);
872
            } else { 
1121
            } else { 
873
              TProtocolUtil.skip(iprot, field.type);
1122
              TProtocolUtil.skip(iprot, field.type);
874
            }
1123
            }
875
            break;
1124
            break;
876
          case RECEIPIENT_ID:
1125
          case CREATOR_ID:
877
            if (field.type == TType.I64) {
1126
            if (field.type == TType.I64) {
878
              this.receipientId = iprot.readI64();
1127
              this.creatorId = iprot.readI64();
879
              setReceipientIdIsSet(true);
1128
              setCreatorIdIsSet(true);
880
            } else { 
1129
            } else { 
881
              TProtocolUtil.skip(iprot, field.type);
1130
              TProtocolUtil.skip(iprot, field.type);
882
            }
1131
            }
883
            break;
1132
            break;
884
          case ORDER_ID:
1133
          case ORDER_ID:
Line 925... Line 1174...
925
    oprot.writeI64(this.openDate);
1174
    oprot.writeI64(this.openDate);
926
    oprot.writeFieldEnd();
1175
    oprot.writeFieldEnd();
927
    oprot.writeFieldBegin(CLOSE_DATE_FIELD_DESC);
1176
    oprot.writeFieldBegin(CLOSE_DATE_FIELD_DESC);
928
    oprot.writeI64(this.closeDate);
1177
    oprot.writeI64(this.closeDate);
929
    oprot.writeFieldEnd();
1178
    oprot.writeFieldEnd();
930
    if (this.subject != null) {
1179
    if (this.description != null) {
931
      oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
1180
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
932
      oprot.writeString(this.subject);
1181
      oprot.writeString(this.description);
-
 
1182
      oprot.writeFieldEnd();
-
 
1183
    }
-
 
1184
    if (this.priority != null) {
-
 
1185
      oprot.writeFieldBegin(PRIORITY_FIELD_DESC);
-
 
1186
      oprot.writeI32(this.priority.getValue());
933
      oprot.writeFieldEnd();
1187
      oprot.writeFieldEnd();
934
    }
1188
    }
-
 
1189
    if (this.category != null) {
-
 
1190
      oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
-
 
1191
      oprot.writeI32(this.category.getValue());
-
 
1192
      oprot.writeFieldEnd();
-
 
1193
    }
-
 
1194
    if (this.status != null) {
-
 
1195
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
1196
      oprot.writeI32(this.status.getValue());
-
 
1197
      oprot.writeFieldEnd();
-
 
1198
    }
-
 
1199
    oprot.writeFieldBegin(ASSIGNEE_ID_FIELD_DESC);
-
 
1200
    oprot.writeI64(this.assigneeId);
-
 
1201
    oprot.writeFieldEnd();
935
    oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
1202
    oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
936
    oprot.writeI64(this.creatorId);
1203
    oprot.writeI64(this.creatorId);
937
    oprot.writeFieldEnd();
1204
    oprot.writeFieldEnd();
938
    oprot.writeFieldBegin(RECEIPIENT_ID_FIELD_DESC);
-
 
939
    oprot.writeI64(this.receipientId);
-
 
940
    oprot.writeFieldEnd();
-
 
941
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
1205
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
942
    oprot.writeI64(this.orderId);
1206
    oprot.writeI64(this.orderId);
943
    oprot.writeFieldEnd();
1207
    oprot.writeFieldEnd();
944
    if (this.airwayBillNo != null) {
1208
    if (this.airwayBillNo != null) {
945
      oprot.writeFieldBegin(AIRWAY_BILL_NO_FIELD_DESC);
1209
      oprot.writeFieldBegin(AIRWAY_BILL_NO_FIELD_DESC);
Line 974... Line 1238...
974
    if (!first) sb.append(", ");
1238
    if (!first) sb.append(", ");
975
    sb.append("closeDate:");
1239
    sb.append("closeDate:");
976
    sb.append(this.closeDate);
1240
    sb.append(this.closeDate);
977
    first = false;
1241
    first = false;
978
    if (!first) sb.append(", ");
1242
    if (!first) sb.append(", ");
979
    sb.append("subject:");
1243
    sb.append("description:");
980
    if (this.subject == null) {
1244
    if (this.description == null) {
981
      sb.append("null");
1245
      sb.append("null");
982
    } else {
1246
    } else {
983
      sb.append(this.subject);
1247
      sb.append(this.description);
984
    }
1248
    }
985
    first = false;
1249
    first = false;
986
    if (!first) sb.append(", ");
1250
    if (!first) sb.append(", ");
987
    sb.append("creatorId:");
1251
    sb.append("priority:");
-
 
1252
    if (this.priority == null) {
-
 
1253
      sb.append("null");
-
 
1254
    } else {
-
 
1255
      String priority_name = priority.name();
-
 
1256
      if (priority_name != null) {
-
 
1257
        sb.append(priority_name);
-
 
1258
        sb.append(" (");
-
 
1259
      }
988
    sb.append(this.creatorId);
1260
      sb.append(this.priority);
-
 
1261
      if (priority_name != null) {
-
 
1262
        sb.append(")");
-
 
1263
      }
-
 
1264
    }
989
    first = false;
1265
    first = false;
990
    if (!first) sb.append(", ");
1266
    if (!first) sb.append(", ");
-
 
1267
    sb.append("category:");
-
 
1268
    if (this.category == null) {
-
 
1269
      sb.append("null");
-
 
1270
    } else {
-
 
1271
      String category_name = category.name();
-
 
1272
      if (category_name != null) {
-
 
1273
        sb.append(category_name);
-
 
1274
        sb.append(" (");
-
 
1275
      }
-
 
1276
      sb.append(this.category);
-
 
1277
      if (category_name != null) {
-
 
1278
        sb.append(")");
-
 
1279
      }
-
 
1280
    }
-
 
1281
    first = false;
-
 
1282
    if (!first) sb.append(", ");
-
 
1283
    sb.append("status:");
-
 
1284
    if (this.status == null) {
-
 
1285
      sb.append("null");
-
 
1286
    } else {
-
 
1287
      String status_name = status.name();
-
 
1288
      if (status_name != null) {
-
 
1289
        sb.append(status_name);
-
 
1290
        sb.append(" (");
-
 
1291
      }
-
 
1292
      sb.append(this.status);
-
 
1293
      if (status_name != null) {
-
 
1294
        sb.append(")");
-
 
1295
      }
-
 
1296
    }
-
 
1297
    first = false;
-
 
1298
    if (!first) sb.append(", ");
991
    sb.append("receipientId:");
1299
    sb.append("assigneeId:");
992
    sb.append(this.receipientId);
1300
    sb.append(this.assigneeId);
-
 
1301
    first = false;
-
 
1302
    if (!first) sb.append(", ");
-
 
1303
    sb.append("creatorId:");
-
 
1304
    sb.append(this.creatorId);
993
    first = false;
1305
    first = false;
994
    if (!first) sb.append(", ");
1306
    if (!first) sb.append(", ");
995
    sb.append("orderId:");
1307
    sb.append("orderId:");
996
    sb.append(this.orderId);
1308
    sb.append(this.orderId);
997
    first = false;
1309
    first = false;