Subversion Repositories SmartDukaan

Rev

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

Rev 3269 Rev 3390
Line 26... Line 26...
26
public class Ticket implements TBase<Ticket._Fields>, java.io.Serializable, Cloneable, Comparable<Ticket> {
26
public class Ticket implements TBase<Ticket._Fields>, java.io.Serializable, Cloneable, Comparable<Ticket> {
27
  private static final TStruct STRUCT_DESC = new TStruct("Ticket");
27
  private static final TStruct STRUCT_DESC = new TStruct("Ticket");
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 CUSTOMER_EMAIL_ID_FIELD_DESC = new TField("customerEmailId", TType.STRING, (short)3);
-
 
32
  private static final TField OPEN_DATE_FIELD_DESC = new TField("openDate", TType.I64, (short)4);
31
  private static final TField OPEN_DATE_FIELD_DESC = new TField("openDate", TType.I64, (short)3);
33
  private static final TField CLOSE_DATE_FIELD_DESC = new TField("closeDate", TType.I64, (short)5);
32
  private static final TField CLOSE_DATE_FIELD_DESC = new TField("closeDate", TType.I64, (short)4);
34
  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)6);
33
  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)5);
35
  private static final TField PRIORITY_FIELD_DESC = new TField("priority", TType.I32, (short)7);
34
  private static final TField PRIORITY_FIELD_DESC = new TField("priority", TType.I32, (short)6);
36
  private static final TField CATEGORY_FIELD_DESC = new TField("category", TType.I32, (short)8);
35
  private static final TField CATEGORY_FIELD_DESC = new TField("category", TType.I32, (short)7);
37
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)9);
36
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)8);
38
  private static final TField ASSIGNEE_ID_FIELD_DESC = new TField("assigneeId", TType.I64, (short)10);
37
  private static final TField ASSIGNEE_ID_FIELD_DESC = new TField("assigneeId", TType.I64, (short)9);
39
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)11);
38
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)10);
40
  private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)12);
39
  private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)11);
41
  private static final TField AIRWAY_BILL_NO_FIELD_DESC = new TField("airwayBillNo", TType.STRING, (short)13);
40
  private static final TField AIRWAY_BILL_NO_FIELD_DESC = new TField("airwayBillNo", TType.STRING, (short)12);
42
  private static final TField PRODUCT_NAME_FIELD_DESC = new TField("productName", TType.STRING, (short)14);
41
  private static final TField PRODUCT_NAME_FIELD_DESC = new TField("productName", TType.STRING, (short)13);
-
 
42
  private static final TField CUSTOMER_MOBILE_NUMBER_FIELD_DESC = new TField("customerMobileNumber", TType.STRING, (short)14);
-
 
43
  private static final TField CUSTOMER_EMAIL_ID_FIELD_DESC = new TField("customerEmailId", TType.STRING, (short)15);
-
 
44
  private static final TField CUSTOMER_NAME_FIELD_DESC = new TField("customerName", TType.STRING, (short)16);
-
 
45
  private static final TField ASSIGNEE_FIELD_DESC = new TField("assignee", TType.STRUCT, (short)17);
-
 
46
  private static final TField CREATOR_FIELD_DESC = new TField("creator", TType.STRUCT, (short)18);
43
 
47
 
44
  private long id;
48
  private long id;
45
  private long customerId;
49
  private long customerId;
46
  private String customerEmailId;
-
 
47
  private long openDate;
50
  private long openDate;
48
  private long closeDate;
51
  private long closeDate;
49
  private String description;
52
  private String description;
50
  private TicketPriority priority;
53
  private TicketPriority priority;
51
  private TicketCategory category;
54
  private TicketCategory category;
Line 53... Line 56...
53
  private long assigneeId;
56
  private long assigneeId;
54
  private long creatorId;
57
  private long creatorId;
55
  private long orderId;
58
  private long orderId;
56
  private String airwayBillNo;
59
  private String airwayBillNo;
57
  private String productName;
60
  private String productName;
-
 
61
  private String customerMobileNumber;
-
 
62
  private String customerEmailId;
-
 
63
  private String customerName;
-
 
64
  private Agent assignee;
-
 
65
  private Agent creator;
58
 
66
 
59
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
67
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60
  public enum _Fields implements TFieldIdEnum {
68
  public enum _Fields implements TFieldIdEnum {
61
    ID((short)1, "id"),
69
    ID((short)1, "id"),
62
    CUSTOMER_ID((short)2, "customerId"),
70
    CUSTOMER_ID((short)2, "customerId"),
63
    CUSTOMER_EMAIL_ID((short)3, "customerEmailId"),
-
 
64
    OPEN_DATE((short)4, "openDate"),
71
    OPEN_DATE((short)3, "openDate"),
65
    CLOSE_DATE((short)5, "closeDate"),
72
    CLOSE_DATE((short)4, "closeDate"),
66
    DESCRIPTION((short)6, "description"),
73
    DESCRIPTION((short)5, "description"),
67
    /**
74
    /**
68
     * 
75
     * 
69
     * @see TicketPriority
76
     * @see TicketPriority
70
     */
77
     */
71
    PRIORITY((short)7, "priority"),
78
    PRIORITY((short)6, "priority"),
72
    /**
79
    /**
73
     * 
80
     * 
74
     * @see TicketCategory
81
     * @see TicketCategory
75
     */
82
     */
76
    CATEGORY((short)8, "category"),
83
    CATEGORY((short)7, "category"),
77
    /**
84
    /**
78
     * 
85
     * 
79
     * @see TicketStatus
86
     * @see TicketStatus
80
     */
87
     */
81
    STATUS((short)9, "status"),
88
    STATUS((short)8, "status"),
82
    ASSIGNEE_ID((short)10, "assigneeId"),
89
    ASSIGNEE_ID((short)9, "assigneeId"),
83
    CREATOR_ID((short)11, "creatorId"),
90
    CREATOR_ID((short)10, "creatorId"),
84
    ORDER_ID((short)12, "orderId"),
91
    ORDER_ID((short)11, "orderId"),
85
    AIRWAY_BILL_NO((short)13, "airwayBillNo"),
92
    AIRWAY_BILL_NO((short)12, "airwayBillNo"),
86
    PRODUCT_NAME((short)14, "productName");
93
    PRODUCT_NAME((short)13, "productName"),
-
 
94
    CUSTOMER_MOBILE_NUMBER((short)14, "customerMobileNumber"),
-
 
95
    CUSTOMER_EMAIL_ID((short)15, "customerEmailId"),
-
 
96
    CUSTOMER_NAME((short)16, "customerName"),
-
 
97
    ASSIGNEE((short)17, "assignee"),
-
 
98
    CREATOR((short)18, "creator");
87
 
99
 
88
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
100
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
89
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
101
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
90
 
102
 
91
    static {
103
    static {
Line 149... Line 161...
149
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
161
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
150
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
162
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
151
        new FieldValueMetaData(TType.I64)));
163
        new FieldValueMetaData(TType.I64)));
152
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.OPTIONAL, 
164
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.OPTIONAL, 
153
        new FieldValueMetaData(TType.I64)));
165
        new FieldValueMetaData(TType.I64)));
154
    put(_Fields.CUSTOMER_EMAIL_ID, new FieldMetaData("customerEmailId", TFieldRequirementType.OPTIONAL, 
-
 
155
        new FieldValueMetaData(TType.STRING)));
-
 
156
    put(_Fields.OPEN_DATE, new FieldMetaData("openDate", TFieldRequirementType.DEFAULT, 
166
    put(_Fields.OPEN_DATE, new FieldMetaData("openDate", TFieldRequirementType.DEFAULT, 
157
        new FieldValueMetaData(TType.I64)));
167
        new FieldValueMetaData(TType.I64)));
158
    put(_Fields.CLOSE_DATE, new FieldMetaData("closeDate", TFieldRequirementType.OPTIONAL, 
168
    put(_Fields.CLOSE_DATE, new FieldMetaData("closeDate", TFieldRequirementType.OPTIONAL, 
159
        new FieldValueMetaData(TType.I64)));
169
        new FieldValueMetaData(TType.I64)));
160
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.OPTIONAL, 
170
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.OPTIONAL, 
Line 173... Line 183...
173
        new FieldValueMetaData(TType.I64)));
183
        new FieldValueMetaData(TType.I64)));
174
    put(_Fields.AIRWAY_BILL_NO, new FieldMetaData("airwayBillNo", TFieldRequirementType.OPTIONAL, 
184
    put(_Fields.AIRWAY_BILL_NO, new FieldMetaData("airwayBillNo", TFieldRequirementType.OPTIONAL, 
175
        new FieldValueMetaData(TType.STRING)));
185
        new FieldValueMetaData(TType.STRING)));
176
    put(_Fields.PRODUCT_NAME, new FieldMetaData("productName", TFieldRequirementType.OPTIONAL, 
186
    put(_Fields.PRODUCT_NAME, new FieldMetaData("productName", TFieldRequirementType.OPTIONAL, 
177
        new FieldValueMetaData(TType.STRING)));
187
        new FieldValueMetaData(TType.STRING)));
-
 
188
    put(_Fields.CUSTOMER_MOBILE_NUMBER, new FieldMetaData("customerMobileNumber", TFieldRequirementType.OPTIONAL, 
-
 
189
        new FieldValueMetaData(TType.STRING)));
-
 
190
    put(_Fields.CUSTOMER_EMAIL_ID, new FieldMetaData("customerEmailId", TFieldRequirementType.OPTIONAL, 
-
 
191
        new FieldValueMetaData(TType.STRING)));
-
 
192
    put(_Fields.CUSTOMER_NAME, new FieldMetaData("customerName", TFieldRequirementType.OPTIONAL, 
-
 
193
        new FieldValueMetaData(TType.STRING)));
-
 
194
    put(_Fields.ASSIGNEE, new FieldMetaData("assignee", TFieldRequirementType.OPTIONAL, 
-
 
195
        new StructMetaData(TType.STRUCT, Agent.class)));
-
 
196
    put(_Fields.CREATOR, new FieldMetaData("creator", TFieldRequirementType.OPTIONAL, 
-
 
197
        new StructMetaData(TType.STRUCT, Agent.class)));
178
  }});
198
  }});
179
 
199
 
180
  static {
200
  static {
181
    FieldMetaData.addStructMetaDataMap(Ticket.class, metaDataMap);
201
    FieldMetaData.addStructMetaDataMap(Ticket.class, metaDataMap);
182
  }
202
  }
Line 210... Line 230...
210
  public Ticket(Ticket other) {
230
  public Ticket(Ticket other) {
211
    __isset_bit_vector.clear();
231
    __isset_bit_vector.clear();
212
    __isset_bit_vector.or(other.__isset_bit_vector);
232
    __isset_bit_vector.or(other.__isset_bit_vector);
213
    this.id = other.id;
233
    this.id = other.id;
214
    this.customerId = other.customerId;
234
    this.customerId = other.customerId;
215
    if (other.isSetCustomerEmailId()) {
-
 
216
      this.customerEmailId = other.customerEmailId;
-
 
217
    }
-
 
218
    this.openDate = other.openDate;
235
    this.openDate = other.openDate;
219
    this.closeDate = other.closeDate;
236
    this.closeDate = other.closeDate;
220
    if (other.isSetDescription()) {
237
    if (other.isSetDescription()) {
221
      this.description = other.description;
238
      this.description = other.description;
222
    }
239
    }
Line 236... Line 253...
236
      this.airwayBillNo = other.airwayBillNo;
253
      this.airwayBillNo = other.airwayBillNo;
237
    }
254
    }
238
    if (other.isSetProductName()) {
255
    if (other.isSetProductName()) {
239
      this.productName = other.productName;
256
      this.productName = other.productName;
240
    }
257
    }
-
 
258
    if (other.isSetCustomerMobileNumber()) {
-
 
259
      this.customerMobileNumber = other.customerMobileNumber;
-
 
260
    }
-
 
261
    if (other.isSetCustomerEmailId()) {
-
 
262
      this.customerEmailId = other.customerEmailId;
-
 
263
    }
-
 
264
    if (other.isSetCustomerName()) {
-
 
265
      this.customerName = other.customerName;
-
 
266
    }
-
 
267
    if (other.isSetAssignee()) {
-
 
268
      this.assignee = new Agent(other.assignee);
-
 
269
    }
-
 
270
    if (other.isSetCreator()) {
-
 
271
      this.creator = new Agent(other.creator);
-
 
272
    }
241
  }
273
  }
242
 
274
 
243
  public Ticket deepCopy() {
275
  public Ticket deepCopy() {
244
    return new Ticket(this);
276
    return new Ticket(this);
245
  }
277
  }
Line 293... Line 325...
293
 
325
 
294
  public void setCustomerIdIsSet(boolean value) {
326
  public void setCustomerIdIsSet(boolean value) {
295
    __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
327
    __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
296
  }
328
  }
297
 
329
 
298
  public String getCustomerEmailId() {
-
 
299
    return this.customerEmailId;
-
 
300
  }
-
 
301
 
-
 
302
  public Ticket setCustomerEmailId(String customerEmailId) {
-
 
303
    this.customerEmailId = customerEmailId;
-
 
304
    return this;
-
 
305
  }
-
 
306
 
-
 
307
  public void unsetCustomerEmailId() {
-
 
308
    this.customerEmailId = null;
-
 
309
  }
-
 
310
 
-
 
311
  /** Returns true if field customerEmailId is set (has been asigned a value) and false otherwise */
-
 
312
  public boolean isSetCustomerEmailId() {
-
 
313
    return this.customerEmailId != null;
-
 
314
  }
-
 
315
 
-
 
316
  public void setCustomerEmailIdIsSet(boolean value) {
-
 
317
    if (!value) {
-
 
318
      this.customerEmailId = null;
-
 
319
    }
-
 
320
  }
-
 
321
 
-
 
322
  public long getOpenDate() {
330
  public long getOpenDate() {
323
    return this.openDate;
331
    return this.openDate;
324
  }
332
  }
325
 
333
 
326
  public Ticket setOpenDate(long openDate) {
334
  public Ticket setOpenDate(long openDate) {
Line 600... Line 608...
600
    if (!value) {
608
    if (!value) {
601
      this.productName = null;
609
      this.productName = null;
602
    }
610
    }
603
  }
611
  }
604
 
612
 
-
 
613
  public String getCustomerMobileNumber() {
-
 
614
    return this.customerMobileNumber;
-
 
615
  }
-
 
616
 
-
 
617
  public Ticket setCustomerMobileNumber(String customerMobileNumber) {
-
 
618
    this.customerMobileNumber = customerMobileNumber;
-
 
619
    return this;
-
 
620
  }
-
 
621
 
-
 
622
  public void unsetCustomerMobileNumber() {
-
 
623
    this.customerMobileNumber = null;
-
 
624
  }
-
 
625
 
-
 
626
  /** Returns true if field customerMobileNumber is set (has been asigned a value) and false otherwise */
-
 
627
  public boolean isSetCustomerMobileNumber() {
-
 
628
    return this.customerMobileNumber != null;
-
 
629
  }
-
 
630
 
-
 
631
  public void setCustomerMobileNumberIsSet(boolean value) {
-
 
632
    if (!value) {
-
 
633
      this.customerMobileNumber = null;
-
 
634
    }
-
 
635
  }
-
 
636
 
-
 
637
  public String getCustomerEmailId() {
-
 
638
    return this.customerEmailId;
-
 
639
  }
-
 
640
 
-
 
641
  public Ticket setCustomerEmailId(String customerEmailId) {
-
 
642
    this.customerEmailId = customerEmailId;
-
 
643
    return this;
-
 
644
  }
-
 
645
 
-
 
646
  public void unsetCustomerEmailId() {
-
 
647
    this.customerEmailId = null;
-
 
648
  }
-
 
649
 
-
 
650
  /** Returns true if field customerEmailId is set (has been asigned a value) and false otherwise */
-
 
651
  public boolean isSetCustomerEmailId() {
-
 
652
    return this.customerEmailId != null;
-
 
653
  }
-
 
654
 
-
 
655
  public void setCustomerEmailIdIsSet(boolean value) {
-
 
656
    if (!value) {
-
 
657
      this.customerEmailId = null;
-
 
658
    }
-
 
659
  }
-
 
660
 
-
 
661
  public String getCustomerName() {
-
 
662
    return this.customerName;
-
 
663
  }
-
 
664
 
-
 
665
  public Ticket setCustomerName(String customerName) {
-
 
666
    this.customerName = customerName;
-
 
667
    return this;
-
 
668
  }
-
 
669
 
-
 
670
  public void unsetCustomerName() {
-
 
671
    this.customerName = null;
-
 
672
  }
-
 
673
 
-
 
674
  /** Returns true if field customerName is set (has been asigned a value) and false otherwise */
-
 
675
  public boolean isSetCustomerName() {
-
 
676
    return this.customerName != null;
-
 
677
  }
-
 
678
 
-
 
679
  public void setCustomerNameIsSet(boolean value) {
-
 
680
    if (!value) {
-
 
681
      this.customerName = null;
-
 
682
    }
-
 
683
  }
-
 
684
 
-
 
685
  public Agent getAssignee() {
-
 
686
    return this.assignee;
-
 
687
  }
-
 
688
 
-
 
689
  public Ticket setAssignee(Agent assignee) {
-
 
690
    this.assignee = assignee;
-
 
691
    return this;
-
 
692
  }
-
 
693
 
-
 
694
  public void unsetAssignee() {
-
 
695
    this.assignee = null;
-
 
696
  }
-
 
697
 
-
 
698
  /** Returns true if field assignee is set (has been asigned a value) and false otherwise */
-
 
699
  public boolean isSetAssignee() {
-
 
700
    return this.assignee != null;
-
 
701
  }
-
 
702
 
-
 
703
  public void setAssigneeIsSet(boolean value) {
-
 
704
    if (!value) {
-
 
705
      this.assignee = null;
-
 
706
    }
-
 
707
  }
-
 
708
 
-
 
709
  public Agent getCreator() {
-
 
710
    return this.creator;
-
 
711
  }
-
 
712
 
-
 
713
  public Ticket setCreator(Agent creator) {
-
 
714
    this.creator = creator;
-
 
715
    return this;
-
 
716
  }
-
 
717
 
-
 
718
  public void unsetCreator() {
-
 
719
    this.creator = null;
-
 
720
  }
-
 
721
 
-
 
722
  /** Returns true if field creator is set (has been asigned a value) and false otherwise */
-
 
723
  public boolean isSetCreator() {
-
 
724
    return this.creator != null;
-
 
725
  }
-
 
726
 
-
 
727
  public void setCreatorIsSet(boolean value) {
-
 
728
    if (!value) {
-
 
729
      this.creator = null;
-
 
730
    }
-
 
731
  }
-
 
732
 
605
  public void setFieldValue(_Fields field, Object value) {
733
  public void setFieldValue(_Fields field, Object value) {
606
    switch (field) {
734
    switch (field) {
607
    case ID:
735
    case ID:
608
      if (value == null) {
736
      if (value == null) {
609
        unsetId();
737
        unsetId();
Line 618... Line 746...
618
      } else {
746
      } else {
619
        setCustomerId((Long)value);
747
        setCustomerId((Long)value);
620
      }
748
      }
621
      break;
749
      break;
622
 
750
 
623
    case CUSTOMER_EMAIL_ID:
-
 
624
      if (value == null) {
-
 
625
        unsetCustomerEmailId();
-
 
626
      } else {
-
 
627
        setCustomerEmailId((String)value);
-
 
628
      }
-
 
629
      break;
-
 
630
 
-
 
631
    case OPEN_DATE:
751
    case OPEN_DATE:
632
      if (value == null) {
752
      if (value == null) {
633
        unsetOpenDate();
753
        unsetOpenDate();
634
      } else {
754
      } else {
635
        setOpenDate((Long)value);
755
        setOpenDate((Long)value);
Line 714... Line 834...
714
      } else {
834
      } else {
715
        setProductName((String)value);
835
        setProductName((String)value);
716
      }
836
      }
717
      break;
837
      break;
718
 
838
 
-
 
839
    case CUSTOMER_MOBILE_NUMBER:
-
 
840
      if (value == null) {
-
 
841
        unsetCustomerMobileNumber();
-
 
842
      } else {
-
 
843
        setCustomerMobileNumber((String)value);
-
 
844
      }
-
 
845
      break;
-
 
846
 
-
 
847
    case CUSTOMER_EMAIL_ID:
-
 
848
      if (value == null) {
-
 
849
        unsetCustomerEmailId();
-
 
850
      } else {
-
 
851
        setCustomerEmailId((String)value);
-
 
852
      }
-
 
853
      break;
-
 
854
 
-
 
855
    case CUSTOMER_NAME:
-
 
856
      if (value == null) {
-
 
857
        unsetCustomerName();
-
 
858
      } else {
-
 
859
        setCustomerName((String)value);
-
 
860
      }
-
 
861
      break;
-
 
862
 
-
 
863
    case ASSIGNEE:
-
 
864
      if (value == null) {
-
 
865
        unsetAssignee();
-
 
866
      } else {
-
 
867
        setAssignee((Agent)value);
-
 
868
      }
-
 
869
      break;
-
 
870
 
-
 
871
    case CREATOR:
-
 
872
      if (value == null) {
-
 
873
        unsetCreator();
-
 
874
      } else {
-
 
875
        setCreator((Agent)value);
-
 
876
      }
-
 
877
      break;
-
 
878
 
719
    }
879
    }
720
  }
880
  }
721
 
881
 
722
  public void setFieldValue(int fieldID, Object value) {
882
  public void setFieldValue(int fieldID, Object value) {
723
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
883
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 729... Line 889...
729
      return new Long(getId());
889
      return new Long(getId());
730
 
890
 
731
    case CUSTOMER_ID:
891
    case CUSTOMER_ID:
732
      return new Long(getCustomerId());
892
      return new Long(getCustomerId());
733
 
893
 
734
    case CUSTOMER_EMAIL_ID:
-
 
735
      return getCustomerEmailId();
-
 
736
 
-
 
737
    case OPEN_DATE:
894
    case OPEN_DATE:
738
      return new Long(getOpenDate());
895
      return new Long(getOpenDate());
739
 
896
 
740
    case CLOSE_DATE:
897
    case CLOSE_DATE:
741
      return new Long(getCloseDate());
898
      return new Long(getCloseDate());
Line 765... Line 922...
765
      return getAirwayBillNo();
922
      return getAirwayBillNo();
766
 
923
 
767
    case PRODUCT_NAME:
924
    case PRODUCT_NAME:
768
      return getProductName();
925
      return getProductName();
769
 
926
 
-
 
927
    case CUSTOMER_MOBILE_NUMBER:
-
 
928
      return getCustomerMobileNumber();
-
 
929
 
-
 
930
    case CUSTOMER_EMAIL_ID:
-
 
931
      return getCustomerEmailId();
-
 
932
 
-
 
933
    case CUSTOMER_NAME:
-
 
934
      return getCustomerName();
-
 
935
 
-
 
936
    case ASSIGNEE:
-
 
937
      return getAssignee();
-
 
938
 
-
 
939
    case CREATOR:
-
 
940
      return getCreator();
-
 
941
 
770
    }
942
    }
771
    throw new IllegalStateException();
943
    throw new IllegalStateException();
772
  }
944
  }
773
 
945
 
774
  public Object getFieldValue(int fieldId) {
946
  public Object getFieldValue(int fieldId) {
Line 780... Line 952...
780
    switch (field) {
952
    switch (field) {
781
    case ID:
953
    case ID:
782
      return isSetId();
954
      return isSetId();
783
    case CUSTOMER_ID:
955
    case CUSTOMER_ID:
784
      return isSetCustomerId();
956
      return isSetCustomerId();
785
    case CUSTOMER_EMAIL_ID:
-
 
786
      return isSetCustomerEmailId();
-
 
787
    case OPEN_DATE:
957
    case OPEN_DATE:
788
      return isSetOpenDate();
958
      return isSetOpenDate();
789
    case CLOSE_DATE:
959
    case CLOSE_DATE:
790
      return isSetCloseDate();
960
      return isSetCloseDate();
791
    case DESCRIPTION:
961
    case DESCRIPTION:
Line 804... Line 974...
804
      return isSetOrderId();
974
      return isSetOrderId();
805
    case AIRWAY_BILL_NO:
975
    case AIRWAY_BILL_NO:
806
      return isSetAirwayBillNo();
976
      return isSetAirwayBillNo();
807
    case PRODUCT_NAME:
977
    case PRODUCT_NAME:
808
      return isSetProductName();
978
      return isSetProductName();
-
 
979
    case CUSTOMER_MOBILE_NUMBER:
-
 
980
      return isSetCustomerMobileNumber();
-
 
981
    case CUSTOMER_EMAIL_ID:
-
 
982
      return isSetCustomerEmailId();
-
 
983
    case CUSTOMER_NAME:
-
 
984
      return isSetCustomerName();
-
 
985
    case ASSIGNEE:
-
 
986
      return isSetAssignee();
-
 
987
    case CREATOR:
-
 
988
      return isSetCreator();
809
    }
989
    }
810
    throw new IllegalStateException();
990
    throw new IllegalStateException();
811
  }
991
  }
812
 
992
 
813
  public boolean isSet(int fieldID) {
993
  public boolean isSet(int fieldID) {
Line 843... Line 1023...
843
        return false;
1023
        return false;
844
      if (this.customerId != that.customerId)
1024
      if (this.customerId != that.customerId)
845
        return false;
1025
        return false;
846
    }
1026
    }
847
 
1027
 
848
    boolean this_present_customerEmailId = true && this.isSetCustomerEmailId();
-
 
849
    boolean that_present_customerEmailId = true && that.isSetCustomerEmailId();
-
 
850
    if (this_present_customerEmailId || that_present_customerEmailId) {
-
 
851
      if (!(this_present_customerEmailId && that_present_customerEmailId))
-
 
852
        return false;
-
 
853
      if (!this.customerEmailId.equals(that.customerEmailId))
-
 
854
        return false;
-
 
855
    }
-
 
856
 
-
 
857
    boolean this_present_openDate = true;
1028
    boolean this_present_openDate = true;
858
    boolean that_present_openDate = true;
1029
    boolean that_present_openDate = true;
859
    if (this_present_openDate || that_present_openDate) {
1030
    if (this_present_openDate || that_present_openDate) {
860
      if (!(this_present_openDate && that_present_openDate))
1031
      if (!(this_present_openDate && that_present_openDate))
861
        return false;
1032
        return false;
Line 951... Line 1122...
951
        return false;
1122
        return false;
952
      if (!this.productName.equals(that.productName))
1123
      if (!this.productName.equals(that.productName))
953
        return false;
1124
        return false;
954
    }
1125
    }
955
 
1126
 
-
 
1127
    boolean this_present_customerMobileNumber = true && this.isSetCustomerMobileNumber();
-
 
1128
    boolean that_present_customerMobileNumber = true && that.isSetCustomerMobileNumber();
-
 
1129
    if (this_present_customerMobileNumber || that_present_customerMobileNumber) {
-
 
1130
      if (!(this_present_customerMobileNumber && that_present_customerMobileNumber))
-
 
1131
        return false;
-
 
1132
      if (!this.customerMobileNumber.equals(that.customerMobileNumber))
-
 
1133
        return false;
-
 
1134
    }
-
 
1135
 
-
 
1136
    boolean this_present_customerEmailId = true && this.isSetCustomerEmailId();
-
 
1137
    boolean that_present_customerEmailId = true && that.isSetCustomerEmailId();
-
 
1138
    if (this_present_customerEmailId || that_present_customerEmailId) {
-
 
1139
      if (!(this_present_customerEmailId && that_present_customerEmailId))
-
 
1140
        return false;
-
 
1141
      if (!this.customerEmailId.equals(that.customerEmailId))
-
 
1142
        return false;
-
 
1143
    }
-
 
1144
 
-
 
1145
    boolean this_present_customerName = true && this.isSetCustomerName();
-
 
1146
    boolean that_present_customerName = true && that.isSetCustomerName();
-
 
1147
    if (this_present_customerName || that_present_customerName) {
-
 
1148
      if (!(this_present_customerName && that_present_customerName))
-
 
1149
        return false;
-
 
1150
      if (!this.customerName.equals(that.customerName))
-
 
1151
        return false;
-
 
1152
    }
-
 
1153
 
-
 
1154
    boolean this_present_assignee = true && this.isSetAssignee();
-
 
1155
    boolean that_present_assignee = true && that.isSetAssignee();
-
 
1156
    if (this_present_assignee || that_present_assignee) {
-
 
1157
      if (!(this_present_assignee && that_present_assignee))
-
 
1158
        return false;
-
 
1159
      if (!this.assignee.equals(that.assignee))
-
 
1160
        return false;
-
 
1161
    }
-
 
1162
 
-
 
1163
    boolean this_present_creator = true && this.isSetCreator();
-
 
1164
    boolean that_present_creator = true && that.isSetCreator();
-
 
1165
    if (this_present_creator || that_present_creator) {
-
 
1166
      if (!(this_present_creator && that_present_creator))
-
 
1167
        return false;
-
 
1168
      if (!this.creator.equals(that.creator))
-
 
1169
        return false;
-
 
1170
    }
-
 
1171
 
956
    return true;
1172
    return true;
957
  }
1173
  }
958
 
1174
 
959
  @Override
1175
  @Override
960
  public int hashCode() {
1176
  public int hashCode() {
Line 983... Line 1199...
983
    }
1199
    }
984
    lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
1200
    lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
985
    if (lastComparison != 0) {
1201
    if (lastComparison != 0) {
986
      return lastComparison;
1202
      return lastComparison;
987
    }
1203
    }
988
    lastComparison = Boolean.valueOf(isSetCustomerEmailId()).compareTo(isSetCustomerEmailId());
-
 
989
    if (lastComparison != 0) {
-
 
990
      return lastComparison;
-
 
991
    }
-
 
992
    lastComparison = TBaseHelper.compareTo(customerEmailId, typedOther.customerEmailId);
-
 
993
    if (lastComparison != 0) {
-
 
994
      return lastComparison;
-
 
995
    }
-
 
996
    lastComparison = Boolean.valueOf(isSetOpenDate()).compareTo(isSetOpenDate());
1204
    lastComparison = Boolean.valueOf(isSetOpenDate()).compareTo(isSetOpenDate());
997
    if (lastComparison != 0) {
1205
    if (lastComparison != 0) {
998
      return lastComparison;
1206
      return lastComparison;
999
    }
1207
    }
1000
    lastComparison = TBaseHelper.compareTo(openDate, typedOther.openDate);
1208
    lastComparison = TBaseHelper.compareTo(openDate, typedOther.openDate);
Line 1079... Line 1287...
1079
    }
1287
    }
1080
    lastComparison = TBaseHelper.compareTo(productName, typedOther.productName);
1288
    lastComparison = TBaseHelper.compareTo(productName, typedOther.productName);
1081
    if (lastComparison != 0) {
1289
    if (lastComparison != 0) {
1082
      return lastComparison;
1290
      return lastComparison;
1083
    }
1291
    }
-
 
1292
    lastComparison = Boolean.valueOf(isSetCustomerMobileNumber()).compareTo(isSetCustomerMobileNumber());
-
 
1293
    if (lastComparison != 0) {
-
 
1294
      return lastComparison;
-
 
1295
    }
-
 
1296
    lastComparison = TBaseHelper.compareTo(customerMobileNumber, typedOther.customerMobileNumber);
-
 
1297
    if (lastComparison != 0) {
-
 
1298
      return lastComparison;
-
 
1299
    }
-
 
1300
    lastComparison = Boolean.valueOf(isSetCustomerEmailId()).compareTo(isSetCustomerEmailId());
-
 
1301
    if (lastComparison != 0) {
-
 
1302
      return lastComparison;
-
 
1303
    }
-
 
1304
    lastComparison = TBaseHelper.compareTo(customerEmailId, typedOther.customerEmailId);
-
 
1305
    if (lastComparison != 0) {
-
 
1306
      return lastComparison;
-
 
1307
    }
-
 
1308
    lastComparison = Boolean.valueOf(isSetCustomerName()).compareTo(isSetCustomerName());
-
 
1309
    if (lastComparison != 0) {
-
 
1310
      return lastComparison;
-
 
1311
    }
-
 
1312
    lastComparison = TBaseHelper.compareTo(customerName, typedOther.customerName);
-
 
1313
    if (lastComparison != 0) {
-
 
1314
      return lastComparison;
-
 
1315
    }
-
 
1316
    lastComparison = Boolean.valueOf(isSetAssignee()).compareTo(isSetAssignee());
-
 
1317
    if (lastComparison != 0) {
-
 
1318
      return lastComparison;
-
 
1319
    }
-
 
1320
    lastComparison = TBaseHelper.compareTo(assignee, typedOther.assignee);
-
 
1321
    if (lastComparison != 0) {
-
 
1322
      return lastComparison;
-
 
1323
    }
-
 
1324
    lastComparison = Boolean.valueOf(isSetCreator()).compareTo(isSetCreator());
-
 
1325
    if (lastComparison != 0) {
-
 
1326
      return lastComparison;
-
 
1327
    }
-
 
1328
    lastComparison = TBaseHelper.compareTo(creator, typedOther.creator);
-
 
1329
    if (lastComparison != 0) {
-
 
1330
      return lastComparison;
-
 
1331
    }
1084
    return 0;
1332
    return 0;
1085
  }
1333
  }
1086
 
1334
 
1087
  public void read(TProtocol iprot) throws TException {
1335
  public void read(TProtocol iprot) throws TException {
1088
    TField field;
1336
    TField field;
Line 1112... Line 1360...
1112
              setCustomerIdIsSet(true);
1360
              setCustomerIdIsSet(true);
1113
            } else { 
1361
            } else { 
1114
              TProtocolUtil.skip(iprot, field.type);
1362
              TProtocolUtil.skip(iprot, field.type);
1115
            }
1363
            }
1116
            break;
1364
            break;
1117
          case CUSTOMER_EMAIL_ID:
-
 
1118
            if (field.type == TType.STRING) {
-
 
1119
              this.customerEmailId = iprot.readString();
-
 
1120
            } else { 
-
 
1121
              TProtocolUtil.skip(iprot, field.type);
-
 
1122
            }
-
 
1123
            break;
-
 
1124
          case OPEN_DATE:
1365
          case OPEN_DATE:
1125
            if (field.type == TType.I64) {
1366
            if (field.type == TType.I64) {
1126
              this.openDate = iprot.readI64();
1367
              this.openDate = iprot.readI64();
1127
              setOpenDateIsSet(true);
1368
              setOpenDateIsSet(true);
1128
            } else { 
1369
            } else { 
Line 1201... Line 1442...
1201
              this.productName = iprot.readString();
1442
              this.productName = iprot.readString();
1202
            } else { 
1443
            } else { 
1203
              TProtocolUtil.skip(iprot, field.type);
1444
              TProtocolUtil.skip(iprot, field.type);
1204
            }
1445
            }
1205
            break;
1446
            break;
-
 
1447
          case CUSTOMER_MOBILE_NUMBER:
-
 
1448
            if (field.type == TType.STRING) {
-
 
1449
              this.customerMobileNumber = iprot.readString();
-
 
1450
            } else { 
-
 
1451
              TProtocolUtil.skip(iprot, field.type);
-
 
1452
            }
-
 
1453
            break;
-
 
1454
          case CUSTOMER_EMAIL_ID:
-
 
1455
            if (field.type == TType.STRING) {
-
 
1456
              this.customerEmailId = iprot.readString();
-
 
1457
            } else { 
-
 
1458
              TProtocolUtil.skip(iprot, field.type);
-
 
1459
            }
-
 
1460
            break;
-
 
1461
          case CUSTOMER_NAME:
-
 
1462
            if (field.type == TType.STRING) {
-
 
1463
              this.customerName = iprot.readString();
-
 
1464
            } else { 
-
 
1465
              TProtocolUtil.skip(iprot, field.type);
-
 
1466
            }
-
 
1467
            break;
-
 
1468
          case ASSIGNEE:
-
 
1469
            if (field.type == TType.STRUCT) {
-
 
1470
              this.assignee = new Agent();
-
 
1471
              this.assignee.read(iprot);
-
 
1472
            } else { 
-
 
1473
              TProtocolUtil.skip(iprot, field.type);
-
 
1474
            }
-
 
1475
            break;
-
 
1476
          case CREATOR:
-
 
1477
            if (field.type == TType.STRUCT) {
-
 
1478
              this.creator = new Agent();
-
 
1479
              this.creator.read(iprot);
-
 
1480
            } else { 
-
 
1481
              TProtocolUtil.skip(iprot, field.type);
-
 
1482
            }
-
 
1483
            break;
1206
        }
1484
        }
1207
        iprot.readFieldEnd();
1485
        iprot.readFieldEnd();
1208
      }
1486
      }
1209
    }
1487
    }
1210
    iprot.readStructEnd();
1488
    iprot.readStructEnd();
Line 1221... Line 1499...
1221
    if (isSetCustomerId()) {
1499
    if (isSetCustomerId()) {
1222
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1500
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1223
      oprot.writeI64(this.customerId);
1501
      oprot.writeI64(this.customerId);
1224
      oprot.writeFieldEnd();
1502
      oprot.writeFieldEnd();
1225
    }
1503
    }
1226
    if (this.customerEmailId != null) {
-
 
1227
      if (isSetCustomerEmailId()) {
-
 
1228
        oprot.writeFieldBegin(CUSTOMER_EMAIL_ID_FIELD_DESC);
-
 
1229
        oprot.writeString(this.customerEmailId);
-
 
1230
        oprot.writeFieldEnd();
-
 
1231
      }
-
 
1232
    }
-
 
1233
    oprot.writeFieldBegin(OPEN_DATE_FIELD_DESC);
1504
    oprot.writeFieldBegin(OPEN_DATE_FIELD_DESC);
1234
    oprot.writeI64(this.openDate);
1505
    oprot.writeI64(this.openDate);
1235
    oprot.writeFieldEnd();
1506
    oprot.writeFieldEnd();
1236
    if (isSetCloseDate()) {
1507
    if (isSetCloseDate()) {
1237
      oprot.writeFieldBegin(CLOSE_DATE_FIELD_DESC);
1508
      oprot.writeFieldBegin(CLOSE_DATE_FIELD_DESC);
Line 1285... Line 1556...
1285
        oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
1556
        oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
1286
        oprot.writeString(this.productName);
1557
        oprot.writeString(this.productName);
1287
        oprot.writeFieldEnd();
1558
        oprot.writeFieldEnd();
1288
      }
1559
      }
1289
    }
1560
    }
-
 
1561
    if (this.customerMobileNumber != null) {
-
 
1562
      if (isSetCustomerMobileNumber()) {
-
 
1563
        oprot.writeFieldBegin(CUSTOMER_MOBILE_NUMBER_FIELD_DESC);
-
 
1564
        oprot.writeString(this.customerMobileNumber);
-
 
1565
        oprot.writeFieldEnd();
-
 
1566
      }
-
 
1567
    }
-
 
1568
    if (this.customerEmailId != null) {
-
 
1569
      if (isSetCustomerEmailId()) {
-
 
1570
        oprot.writeFieldBegin(CUSTOMER_EMAIL_ID_FIELD_DESC);
-
 
1571
        oprot.writeString(this.customerEmailId);
-
 
1572
        oprot.writeFieldEnd();
-
 
1573
      }
-
 
1574
    }
-
 
1575
    if (this.customerName != null) {
-
 
1576
      if (isSetCustomerName()) {
-
 
1577
        oprot.writeFieldBegin(CUSTOMER_NAME_FIELD_DESC);
-
 
1578
        oprot.writeString(this.customerName);
-
 
1579
        oprot.writeFieldEnd();
-
 
1580
      }
-
 
1581
    }
-
 
1582
    if (this.assignee != null) {
-
 
1583
      if (isSetAssignee()) {
-
 
1584
        oprot.writeFieldBegin(ASSIGNEE_FIELD_DESC);
-
 
1585
        this.assignee.write(oprot);
-
 
1586
        oprot.writeFieldEnd();
-
 
1587
      }
-
 
1588
    }
-
 
1589
    if (this.creator != null) {
-
 
1590
      if (isSetCreator()) {
-
 
1591
        oprot.writeFieldBegin(CREATOR_FIELD_DESC);
-
 
1592
        this.creator.write(oprot);
-
 
1593
        oprot.writeFieldEnd();
-
 
1594
      }
-
 
1595
    }
1290
    oprot.writeFieldStop();
1596
    oprot.writeFieldStop();
1291
    oprot.writeStructEnd();
1597
    oprot.writeStructEnd();
1292
  }
1598
  }
1293
 
1599
 
1294
  @Override
1600
  @Override
Line 1303... Line 1609...
1303
      if (!first) sb.append(", ");
1609
      if (!first) sb.append(", ");
1304
      sb.append("customerId:");
1610
      sb.append("customerId:");
1305
      sb.append(this.customerId);
1611
      sb.append(this.customerId);
1306
      first = false;
1612
      first = false;
1307
    }
1613
    }
1308
    if (isSetCustomerEmailId()) {
-
 
1309
      if (!first) sb.append(", ");
-
 
1310
      sb.append("customerEmailId:");
-
 
1311
      if (this.customerEmailId == null) {
-
 
1312
        sb.append("null");
-
 
1313
      } else {
-
 
1314
        sb.append(this.customerEmailId);
-
 
1315
      }
-
 
1316
      first = false;
-
 
1317
    }
-
 
1318
    if (!first) sb.append(", ");
1614
    if (!first) sb.append(", ");
1319
    sb.append("openDate:");
1615
    sb.append("openDate:");
1320
    sb.append(this.openDate);
1616
    sb.append(this.openDate);
1321
    first = false;
1617
    first = false;
1322
    if (isSetCloseDate()) {
1618
    if (isSetCloseDate()) {
Line 1417... Line 1713...
1417
      } else {
1713
      } else {
1418
        sb.append(this.productName);
1714
        sb.append(this.productName);
1419
      }
1715
      }
1420
      first = false;
1716
      first = false;
1421
    }
1717
    }
-
 
1718
    if (isSetCustomerMobileNumber()) {
-
 
1719
      if (!first) sb.append(", ");
-
 
1720
      sb.append("customerMobileNumber:");
-
 
1721
      if (this.customerMobileNumber == null) {
-
 
1722
        sb.append("null");
-
 
1723
      } else {
-
 
1724
        sb.append(this.customerMobileNumber);
-
 
1725
      }
-
 
1726
      first = false;
-
 
1727
    }
-
 
1728
    if (isSetCustomerEmailId()) {
-
 
1729
      if (!first) sb.append(", ");
-
 
1730
      sb.append("customerEmailId:");
-
 
1731
      if (this.customerEmailId == null) {
-
 
1732
        sb.append("null");
-
 
1733
      } else {
-
 
1734
        sb.append(this.customerEmailId);
-
 
1735
      }
-
 
1736
      first = false;
-
 
1737
    }
-
 
1738
    if (isSetCustomerName()) {
-
 
1739
      if (!first) sb.append(", ");
-
 
1740
      sb.append("customerName:");
-
 
1741
      if (this.customerName == null) {
-
 
1742
        sb.append("null");
-
 
1743
      } else {
-
 
1744
        sb.append(this.customerName);
-
 
1745
      }
-
 
1746
      first = false;
-
 
1747
    }
-
 
1748
    if (isSetAssignee()) {
-
 
1749
      if (!first) sb.append(", ");
-
 
1750
      sb.append("assignee:");
-
 
1751
      if (this.assignee == null) {
-
 
1752
        sb.append("null");
-
 
1753
      } else {
-
 
1754
        sb.append(this.assignee);
-
 
1755
      }
-
 
1756
      first = false;
-
 
1757
    }
-
 
1758
    if (isSetCreator()) {
-
 
1759
      if (!first) sb.append(", ");
-
 
1760
      sb.append("creator:");
-
 
1761
      if (this.creator == null) {
-
 
1762
        sb.append("null");
-
 
1763
      } else {
-
 
1764
        sb.append(this.creator);
-
 
1765
      }
-
 
1766
      first = false;
-
 
1767
    }
1422
    sb.append(")");
1768
    sb.append(")");
1423
    return sb.toString();
1769
    return sb.toString();
1424
  }
1770
  }
1425
 
1771
 
1426
  public void validate() throws TException {
1772
  public void validate() throws TException {