Subversion Repositories SmartDukaan

Rev

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

Rev 3390 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.crm;
6
package in.shop2020.crm;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
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> {
23
public class Ticket implements org.apache.thrift.TBase<Ticket, Ticket._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("Ticket");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Ticket");
28
 
25
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)2);
31
  private static final TField OPEN_DATE_FIELD_DESC = new TField("openDate", TType.I64, (short)3);
28
  private static final org.apache.thrift.protocol.TField OPEN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("openDate", org.apache.thrift.protocol.TType.I64, (short)3);
32
  private static final TField CLOSE_DATE_FIELD_DESC = new TField("closeDate", TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField CLOSE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("closeDate", org.apache.thrift.protocol.TType.I64, (short)4);
33
  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)5);
30
  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)5);
34
  private static final TField PRIORITY_FIELD_DESC = new TField("priority", TType.I32, (short)6);
31
  private static final org.apache.thrift.protocol.TField PRIORITY_FIELD_DESC = new org.apache.thrift.protocol.TField("priority", org.apache.thrift.protocol.TType.I32, (short)6);
35
  private static final TField CATEGORY_FIELD_DESC = new TField("category", TType.I32, (short)7);
32
  private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I32, (short)7);
36
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)8);
33
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)8);
37
  private static final TField ASSIGNEE_ID_FIELD_DESC = new TField("assigneeId", TType.I64, (short)9);
34
  private static final org.apache.thrift.protocol.TField ASSIGNEE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("assigneeId", org.apache.thrift.protocol.TType.I64, (short)9);
38
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)10);
35
  private static final org.apache.thrift.protocol.TField CREATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creatorId", org.apache.thrift.protocol.TType.I64, (short)10);
39
  private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)11);
36
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)11);
40
  private static final TField AIRWAY_BILL_NO_FIELD_DESC = new TField("airwayBillNo", TType.STRING, (short)12);
37
  private static final org.apache.thrift.protocol.TField AIRWAY_BILL_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("airwayBillNo", org.apache.thrift.protocol.TType.STRING, (short)12);
41
  private static final TField PRODUCT_NAME_FIELD_DESC = new TField("productName", TType.STRING, (short)13);
38
  private static final org.apache.thrift.protocol.TField PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("productName", org.apache.thrift.protocol.TType.STRING, (short)13);
42
  private static final TField CUSTOMER_MOBILE_NUMBER_FIELD_DESC = new TField("customerMobileNumber", TType.STRING, (short)14);
39
  private static final org.apache.thrift.protocol.TField CUSTOMER_MOBILE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("customerMobileNumber", org.apache.thrift.protocol.TType.STRING, (short)14);
43
  private static final TField CUSTOMER_EMAIL_ID_FIELD_DESC = new TField("customerEmailId", TType.STRING, (short)15);
40
  private static final org.apache.thrift.protocol.TField CUSTOMER_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerEmailId", org.apache.thrift.protocol.TType.STRING, (short)15);
44
  private static final TField CUSTOMER_NAME_FIELD_DESC = new TField("customerName", TType.STRING, (short)16);
41
  private static final org.apache.thrift.protocol.TField CUSTOMER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("customerName", org.apache.thrift.protocol.TType.STRING, (short)16);
45
  private static final TField ASSIGNEE_FIELD_DESC = new TField("assignee", TType.STRUCT, (short)17);
42
  private static final org.apache.thrift.protocol.TField ASSIGNEE_FIELD_DESC = new org.apache.thrift.protocol.TField("assignee", org.apache.thrift.protocol.TType.STRUCT, (short)17);
46
  private static final TField CREATOR_FIELD_DESC = new TField("creator", TType.STRUCT, (short)18);
43
  private static final org.apache.thrift.protocol.TField CREATOR_FIELD_DESC = new org.apache.thrift.protocol.TField("creator", org.apache.thrift.protocol.TType.STRUCT, (short)18);
47
 
44
 
48
  private long id;
45
  private long id; // required
49
  private long customerId;
46
  private long customerId; // required
50
  private long openDate;
47
  private long openDate; // required
51
  private long closeDate;
48
  private long closeDate; // required
52
  private String description;
49
  private String description; // required
53
  private TicketPriority priority;
50
  private TicketPriority priority; // required
54
  private TicketCategory category;
51
  private TicketCategory category; // required
55
  private TicketStatus status;
52
  private TicketStatus status; // required
56
  private long assigneeId;
53
  private long assigneeId; // required
57
  private long creatorId;
54
  private long creatorId; // required
58
  private long orderId;
55
  private long orderId; // required
59
  private String airwayBillNo;
56
  private String airwayBillNo; // required
60
  private String productName;
57
  private String productName; // required
61
  private String customerMobileNumber;
58
  private String customerMobileNumber; // required
62
  private String customerEmailId;
59
  private String customerEmailId; // required
63
  private String customerName;
60
  private String customerName; // required
64
  private Agent assignee;
61
  private Agent assignee; // required
65
  private Agent creator;
62
  private Agent creator; // required
66
 
63
 
67
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
68
  public enum _Fields implements TFieldIdEnum {
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
69
    ID((short)1, "id"),
66
    ID((short)1, "id"),
70
    CUSTOMER_ID((short)2, "customerId"),
67
    CUSTOMER_ID((short)2, "customerId"),
71
    OPEN_DATE((short)3, "openDate"),
68
    OPEN_DATE((short)3, "openDate"),
72
    CLOSE_DATE((short)4, "closeDate"),
69
    CLOSE_DATE((short)4, "closeDate"),
73
    DESCRIPTION((short)5, "description"),
70
    DESCRIPTION((short)5, "description"),
Line 95... Line 92...
95
    CUSTOMER_EMAIL_ID((short)15, "customerEmailId"),
92
    CUSTOMER_EMAIL_ID((short)15, "customerEmailId"),
96
    CUSTOMER_NAME((short)16, "customerName"),
93
    CUSTOMER_NAME((short)16, "customerName"),
97
    ASSIGNEE((short)17, "assignee"),
94
    ASSIGNEE((short)17, "assignee"),
98
    CREATOR((short)18, "creator");
95
    CREATOR((short)18, "creator");
99
 
96
 
100
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
101
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
97
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
102
 
98
 
103
    static {
99
    static {
104
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
100
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
105
        byId.put((int)field._thriftId, field);
-
 
106
        byName.put(field.getFieldName(), field);
101
        byName.put(field.getFieldName(), field);
107
      }
102
      }
108
    }
103
    }
109
 
104
 
110
    /**
105
    /**
111
     * Find the _Fields constant that matches fieldId, or null if its not found.
106
     * Find the _Fields constant that matches fieldId, or null if its not found.
112
     */
107
     */
113
    public static _Fields findByThriftId(int fieldId) {
108
    public static _Fields findByThriftId(int fieldId) {
114
      return byId.get(fieldId);
109
      switch(fieldId) {
-
 
110
        case 1: // ID
-
 
111
          return ID;
-
 
112
        case 2: // CUSTOMER_ID
-
 
113
          return CUSTOMER_ID;
-
 
114
        case 3: // OPEN_DATE
-
 
115
          return OPEN_DATE;
-
 
116
        case 4: // CLOSE_DATE
-
 
117
          return CLOSE_DATE;
-
 
118
        case 5: // DESCRIPTION
-
 
119
          return DESCRIPTION;
-
 
120
        case 6: // PRIORITY
-
 
121
          return PRIORITY;
-
 
122
        case 7: // CATEGORY
-
 
123
          return CATEGORY;
-
 
124
        case 8: // STATUS
-
 
125
          return STATUS;
-
 
126
        case 9: // ASSIGNEE_ID
-
 
127
          return ASSIGNEE_ID;
-
 
128
        case 10: // CREATOR_ID
-
 
129
          return CREATOR_ID;
-
 
130
        case 11: // ORDER_ID
-
 
131
          return ORDER_ID;
-
 
132
        case 12: // AIRWAY_BILL_NO
-
 
133
          return AIRWAY_BILL_NO;
-
 
134
        case 13: // PRODUCT_NAME
-
 
135
          return PRODUCT_NAME;
-
 
136
        case 14: // CUSTOMER_MOBILE_NUMBER
-
 
137
          return CUSTOMER_MOBILE_NUMBER;
-
 
138
        case 15: // CUSTOMER_EMAIL_ID
-
 
139
          return CUSTOMER_EMAIL_ID;
-
 
140
        case 16: // CUSTOMER_NAME
-
 
141
          return CUSTOMER_NAME;
-
 
142
        case 17: // ASSIGNEE
-
 
143
          return ASSIGNEE;
-
 
144
        case 18: // CREATOR
-
 
145
          return CREATOR;
-
 
146
        default:
-
 
147
          return null;
-
 
148
      }
115
    }
149
    }
116
 
150
 
117
    /**
151
    /**
118
     * Find the _Fields constant that matches fieldId, throwing an exception
152
     * Find the _Fields constant that matches fieldId, throwing an exception
119
     * if it is not found.
153
     * if it is not found.
Line 156... Line 190...
156
  private static final int __ASSIGNEEID_ISSET_ID = 4;
190
  private static final int __ASSIGNEEID_ISSET_ID = 4;
157
  private static final int __CREATORID_ISSET_ID = 5;
191
  private static final int __CREATORID_ISSET_ID = 5;
158
  private static final int __ORDERID_ISSET_ID = 6;
192
  private static final int __ORDERID_ISSET_ID = 6;
159
  private BitSet __isset_bit_vector = new BitSet(7);
193
  private BitSet __isset_bit_vector = new BitSet(7);
160
 
194
 
161
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
195
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
162
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
163
        new FieldValueMetaData(TType.I64)));
-
 
164
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.OPTIONAL, 
-
 
165
        new FieldValueMetaData(TType.I64)));
-
 
166
    put(_Fields.OPEN_DATE, new FieldMetaData("openDate", TFieldRequirementType.DEFAULT, 
-
 
167
        new FieldValueMetaData(TType.I64)));
-
 
168
    put(_Fields.CLOSE_DATE, new FieldMetaData("closeDate", TFieldRequirementType.OPTIONAL, 
-
 
169
        new FieldValueMetaData(TType.I64)));
-
 
170
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.OPTIONAL, 
-
 
171
        new FieldValueMetaData(TType.STRING)));
-
 
172
    put(_Fields.PRIORITY, new FieldMetaData("priority", TFieldRequirementType.DEFAULT, 
-
 
173
        new EnumMetaData(TType.ENUM, TicketPriority.class)));
-
 
174
    put(_Fields.CATEGORY, new FieldMetaData("category", TFieldRequirementType.DEFAULT, 
-
 
175
        new EnumMetaData(TType.ENUM, TicketCategory.class)));
-
 
176
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
177
        new EnumMetaData(TType.ENUM, TicketStatus.class)));
-
 
178
    put(_Fields.ASSIGNEE_ID, new FieldMetaData("assigneeId", TFieldRequirementType.OPTIONAL, 
-
 
179
        new FieldValueMetaData(TType.I64)));
-
 
180
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
-
 
181
        new FieldValueMetaData(TType.I64)));
-
 
182
    put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.OPTIONAL, 
-
 
183
        new FieldValueMetaData(TType.I64)));
-
 
184
    put(_Fields.AIRWAY_BILL_NO, new FieldMetaData("airwayBillNo", TFieldRequirementType.OPTIONAL, 
-
 
185
        new FieldValueMetaData(TType.STRING)));
-
 
186
    put(_Fields.PRODUCT_NAME, new FieldMetaData("productName", TFieldRequirementType.OPTIONAL, 
-
 
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)));
-
 
198
  }});
-
 
199
 
-
 
200
  static {
196
  static {
-
 
197
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
198
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
200
    tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
202
    tmpMap.put(_Fields.OPEN_DATE, new org.apache.thrift.meta_data.FieldMetaData("openDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
203
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
204
    tmpMap.put(_Fields.CLOSE_DATE, new org.apache.thrift.meta_data.FieldMetaData("closeDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
205
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
206
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
207
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
208
    tmpMap.put(_Fields.PRIORITY, new org.apache.thrift.meta_data.FieldMetaData("priority", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
209
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TicketPriority.class)));
-
 
210
    tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
211
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TicketCategory.class)));
-
 
212
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
213
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TicketStatus.class)));
-
 
214
    tmpMap.put(_Fields.ASSIGNEE_ID, new org.apache.thrift.meta_data.FieldMetaData("assigneeId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
216
    tmpMap.put(_Fields.CREATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
218
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
220
    tmpMap.put(_Fields.AIRWAY_BILL_NO, new org.apache.thrift.meta_data.FieldMetaData("airwayBillNo", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
221
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
222
    tmpMap.put(_Fields.PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("productName", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
223
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
224
    tmpMap.put(_Fields.CUSTOMER_MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("customerMobileNumber", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
225
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
226
    tmpMap.put(_Fields.CUSTOMER_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("customerEmailId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
227
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
228
    tmpMap.put(_Fields.CUSTOMER_NAME, new org.apache.thrift.meta_data.FieldMetaData("customerName", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
229
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
230
    tmpMap.put(_Fields.ASSIGNEE, new org.apache.thrift.meta_data.FieldMetaData("assignee", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
231
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class)));
-
 
232
    tmpMap.put(_Fields.CREATOR, new org.apache.thrift.meta_data.FieldMetaData("creator", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
233
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class)));
-
 
234
    metaDataMap = Collections.unmodifiableMap(tmpMap);
201
    FieldMetaData.addStructMetaDataMap(Ticket.class, metaDataMap);
235
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Ticket.class, metaDataMap);
202
  }
236
  }
203
 
237
 
204
  public Ticket() {
238
  public Ticket() {
205
  }
239
  }
206
 
240
 
Line 274... Line 308...
274
 
308
 
275
  public Ticket deepCopy() {
309
  public Ticket deepCopy() {
276
    return new Ticket(this);
310
    return new Ticket(this);
277
  }
311
  }
278
 
312
 
279
  @Deprecated
313
  @Override
280
  public Ticket clone() {
314
  public void clear() {
-
 
315
    setIdIsSet(false);
-
 
316
    this.id = 0;
-
 
317
    setCustomerIdIsSet(false);
-
 
318
    this.customerId = 0;
-
 
319
    setOpenDateIsSet(false);
-
 
320
    this.openDate = 0;
-
 
321
    setCloseDateIsSet(false);
-
 
322
    this.closeDate = 0;
-
 
323
    this.description = null;
-
 
324
    this.priority = null;
-
 
325
    this.category = null;
-
 
326
    this.status = null;
-
 
327
    setAssigneeIdIsSet(false);
-
 
328
    this.assigneeId = 0;
-
 
329
    setCreatorIdIsSet(false);
-
 
330
    this.creatorId = 0;
281
    return new Ticket(this);
331
    setOrderIdIsSet(false);
-
 
332
    this.orderId = 0;
-
 
333
    this.airwayBillNo = null;
-
 
334
    this.productName = null;
-
 
335
    this.customerMobileNumber = null;
-
 
336
    this.customerEmailId = null;
-
 
337
    this.customerName = null;
-
 
338
    this.assignee = null;
-
 
339
    this.creator = null;
282
  }
340
  }
283
 
341
 
284
  public long getId() {
342
  public long getId() {
285
    return this.id;
343
    return this.id;
286
  }
344
  }
287
 
345
 
288
  public Ticket setId(long id) {
346
  public void setId(long id) {
289
    this.id = id;
347
    this.id = id;
290
    setIdIsSet(true);
348
    setIdIsSet(true);
291
    return this;
-
 
292
  }
349
  }
293
 
350
 
294
  public void unsetId() {
351
  public void unsetId() {
295
    __isset_bit_vector.clear(__ID_ISSET_ID);
352
    __isset_bit_vector.clear(__ID_ISSET_ID);
296
  }
353
  }
297
 
354
 
298
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
355
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
299
  public boolean isSetId() {
356
  public boolean isSetId() {
300
    return __isset_bit_vector.get(__ID_ISSET_ID);
357
    return __isset_bit_vector.get(__ID_ISSET_ID);
301
  }
358
  }
302
 
359
 
303
  public void setIdIsSet(boolean value) {
360
  public void setIdIsSet(boolean value) {
Line 306... Line 363...
306
 
363
 
307
  public long getCustomerId() {
364
  public long getCustomerId() {
308
    return this.customerId;
365
    return this.customerId;
309
  }
366
  }
310
 
367
 
311
  public Ticket setCustomerId(long customerId) {
368
  public void setCustomerId(long customerId) {
312
    this.customerId = customerId;
369
    this.customerId = customerId;
313
    setCustomerIdIsSet(true);
370
    setCustomerIdIsSet(true);
314
    return this;
-
 
315
  }
371
  }
316
 
372
 
317
  public void unsetCustomerId() {
373
  public void unsetCustomerId() {
318
    __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
374
    __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
319
  }
375
  }
320
 
376
 
321
  /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
377
  /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
322
  public boolean isSetCustomerId() {
378
  public boolean isSetCustomerId() {
323
    return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
379
    return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
324
  }
380
  }
325
 
381
 
326
  public void setCustomerIdIsSet(boolean value) {
382
  public void setCustomerIdIsSet(boolean value) {
Line 329... Line 385...
329
 
385
 
330
  public long getOpenDate() {
386
  public long getOpenDate() {
331
    return this.openDate;
387
    return this.openDate;
332
  }
388
  }
333
 
389
 
334
  public Ticket setOpenDate(long openDate) {
390
  public void setOpenDate(long openDate) {
335
    this.openDate = openDate;
391
    this.openDate = openDate;
336
    setOpenDateIsSet(true);
392
    setOpenDateIsSet(true);
337
    return this;
-
 
338
  }
393
  }
339
 
394
 
340
  public void unsetOpenDate() {
395
  public void unsetOpenDate() {
341
    __isset_bit_vector.clear(__OPENDATE_ISSET_ID);
396
    __isset_bit_vector.clear(__OPENDATE_ISSET_ID);
342
  }
397
  }
343
 
398
 
344
  /** Returns true if field openDate is set (has been asigned a value) and false otherwise */
399
  /** Returns true if field openDate is set (has been assigned a value) and false otherwise */
345
  public boolean isSetOpenDate() {
400
  public boolean isSetOpenDate() {
346
    return __isset_bit_vector.get(__OPENDATE_ISSET_ID);
401
    return __isset_bit_vector.get(__OPENDATE_ISSET_ID);
347
  }
402
  }
348
 
403
 
349
  public void setOpenDateIsSet(boolean value) {
404
  public void setOpenDateIsSet(boolean value) {
Line 352... Line 407...
352
 
407
 
353
  public long getCloseDate() {
408
  public long getCloseDate() {
354
    return this.closeDate;
409
    return this.closeDate;
355
  }
410
  }
356
 
411
 
357
  public Ticket setCloseDate(long closeDate) {
412
  public void setCloseDate(long closeDate) {
358
    this.closeDate = closeDate;
413
    this.closeDate = closeDate;
359
    setCloseDateIsSet(true);
414
    setCloseDateIsSet(true);
360
    return this;
-
 
361
  }
415
  }
362
 
416
 
363
  public void unsetCloseDate() {
417
  public void unsetCloseDate() {
364
    __isset_bit_vector.clear(__CLOSEDATE_ISSET_ID);
418
    __isset_bit_vector.clear(__CLOSEDATE_ISSET_ID);
365
  }
419
  }
366
 
420
 
367
  /** Returns true if field closeDate is set (has been asigned a value) and false otherwise */
421
  /** Returns true if field closeDate is set (has been assigned a value) and false otherwise */
368
  public boolean isSetCloseDate() {
422
  public boolean isSetCloseDate() {
369
    return __isset_bit_vector.get(__CLOSEDATE_ISSET_ID);
423
    return __isset_bit_vector.get(__CLOSEDATE_ISSET_ID);
370
  }
424
  }
371
 
425
 
372
  public void setCloseDateIsSet(boolean value) {
426
  public void setCloseDateIsSet(boolean value) {
Line 375... Line 429...
375
 
429
 
376
  public String getDescription() {
430
  public String getDescription() {
377
    return this.description;
431
    return this.description;
378
  }
432
  }
379
 
433
 
380
  public Ticket setDescription(String description) {
434
  public void setDescription(String description) {
381
    this.description = description;
435
    this.description = description;
382
    return this;
-
 
383
  }
436
  }
384
 
437
 
385
  public void unsetDescription() {
438
  public void unsetDescription() {
386
    this.description = null;
439
    this.description = null;
387
  }
440
  }
388
 
441
 
389
  /** Returns true if field description is set (has been asigned a value) and false otherwise */
442
  /** Returns true if field description is set (has been assigned a value) and false otherwise */
390
  public boolean isSetDescription() {
443
  public boolean isSetDescription() {
391
    return this.description != null;
444
    return this.description != null;
392
  }
445
  }
393
 
446
 
394
  public void setDescriptionIsSet(boolean value) {
447
  public void setDescriptionIsSet(boolean value) {
Line 407... Line 460...
407
 
460
 
408
  /**
461
  /**
409
   * 
462
   * 
410
   * @see TicketPriority
463
   * @see TicketPriority
411
   */
464
   */
412
  public Ticket setPriority(TicketPriority priority) {
465
  public void setPriority(TicketPriority priority) {
413
    this.priority = priority;
466
    this.priority = priority;
414
    return this;
-
 
415
  }
467
  }
416
 
468
 
417
  public void unsetPriority() {
469
  public void unsetPriority() {
418
    this.priority = null;
470
    this.priority = null;
419
  }
471
  }
420
 
472
 
421
  /** Returns true if field priority is set (has been asigned a value) and false otherwise */
473
  /** Returns true if field priority is set (has been assigned a value) and false otherwise */
422
  public boolean isSetPriority() {
474
  public boolean isSetPriority() {
423
    return this.priority != null;
475
    return this.priority != null;
424
  }
476
  }
425
 
477
 
426
  public void setPriorityIsSet(boolean value) {
478
  public void setPriorityIsSet(boolean value) {
Line 439... Line 491...
439
 
491
 
440
  /**
492
  /**
441
   * 
493
   * 
442
   * @see TicketCategory
494
   * @see TicketCategory
443
   */
495
   */
444
  public Ticket setCategory(TicketCategory category) {
496
  public void setCategory(TicketCategory category) {
445
    this.category = category;
497
    this.category = category;
446
    return this;
-
 
447
  }
498
  }
448
 
499
 
449
  public void unsetCategory() {
500
  public void unsetCategory() {
450
    this.category = null;
501
    this.category = null;
451
  }
502
  }
452
 
503
 
453
  /** Returns true if field category is set (has been asigned a value) and false otherwise */
504
  /** Returns true if field category is set (has been assigned a value) and false otherwise */
454
  public boolean isSetCategory() {
505
  public boolean isSetCategory() {
455
    return this.category != null;
506
    return this.category != null;
456
  }
507
  }
457
 
508
 
458
  public void setCategoryIsSet(boolean value) {
509
  public void setCategoryIsSet(boolean value) {
Line 471... Line 522...
471
 
522
 
472
  /**
523
  /**
473
   * 
524
   * 
474
   * @see TicketStatus
525
   * @see TicketStatus
475
   */
526
   */
476
  public Ticket setStatus(TicketStatus status) {
527
  public void setStatus(TicketStatus status) {
477
    this.status = status;
528
    this.status = status;
478
    return this;
-
 
479
  }
529
  }
480
 
530
 
481
  public void unsetStatus() {
531
  public void unsetStatus() {
482
    this.status = null;
532
    this.status = null;
483
  }
533
  }
484
 
534
 
485
  /** Returns true if field status is set (has been asigned a value) and false otherwise */
535
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
486
  public boolean isSetStatus() {
536
  public boolean isSetStatus() {
487
    return this.status != null;
537
    return this.status != null;
488
  }
538
  }
489
 
539
 
490
  public void setStatusIsSet(boolean value) {
540
  public void setStatusIsSet(boolean value) {
Line 495... Line 545...
495
 
545
 
496
  public long getAssigneeId() {
546
  public long getAssigneeId() {
497
    return this.assigneeId;
547
    return this.assigneeId;
498
  }
548
  }
499
 
549
 
500
  public Ticket setAssigneeId(long assigneeId) {
550
  public void setAssigneeId(long assigneeId) {
501
    this.assigneeId = assigneeId;
551
    this.assigneeId = assigneeId;
502
    setAssigneeIdIsSet(true);
552
    setAssigneeIdIsSet(true);
503
    return this;
-
 
504
  }
553
  }
505
 
554
 
506
  public void unsetAssigneeId() {
555
  public void unsetAssigneeId() {
507
    __isset_bit_vector.clear(__ASSIGNEEID_ISSET_ID);
556
    __isset_bit_vector.clear(__ASSIGNEEID_ISSET_ID);
508
  }
557
  }
509
 
558
 
510
  /** Returns true if field assigneeId is set (has been asigned a value) and false otherwise */
559
  /** Returns true if field assigneeId is set (has been assigned a value) and false otherwise */
511
  public boolean isSetAssigneeId() {
560
  public boolean isSetAssigneeId() {
512
    return __isset_bit_vector.get(__ASSIGNEEID_ISSET_ID);
561
    return __isset_bit_vector.get(__ASSIGNEEID_ISSET_ID);
513
  }
562
  }
514
 
563
 
515
  public void setAssigneeIdIsSet(boolean value) {
564
  public void setAssigneeIdIsSet(boolean value) {
Line 518... Line 567...
518
 
567
 
519
  public long getCreatorId() {
568
  public long getCreatorId() {
520
    return this.creatorId;
569
    return this.creatorId;
521
  }
570
  }
522
 
571
 
523
  public Ticket setCreatorId(long creatorId) {
572
  public void setCreatorId(long creatorId) {
524
    this.creatorId = creatorId;
573
    this.creatorId = creatorId;
525
    setCreatorIdIsSet(true);
574
    setCreatorIdIsSet(true);
526
    return this;
-
 
527
  }
575
  }
528
 
576
 
529
  public void unsetCreatorId() {
577
  public void unsetCreatorId() {
530
    __isset_bit_vector.clear(__CREATORID_ISSET_ID);
578
    __isset_bit_vector.clear(__CREATORID_ISSET_ID);
531
  }
579
  }
532
 
580
 
533
  /** Returns true if field creatorId is set (has been asigned a value) and false otherwise */
581
  /** Returns true if field creatorId is set (has been assigned a value) and false otherwise */
534
  public boolean isSetCreatorId() {
582
  public boolean isSetCreatorId() {
535
    return __isset_bit_vector.get(__CREATORID_ISSET_ID);
583
    return __isset_bit_vector.get(__CREATORID_ISSET_ID);
536
  }
584
  }
537
 
585
 
538
  public void setCreatorIdIsSet(boolean value) {
586
  public void setCreatorIdIsSet(boolean value) {
Line 541... Line 589...
541
 
589
 
542
  public long getOrderId() {
590
  public long getOrderId() {
543
    return this.orderId;
591
    return this.orderId;
544
  }
592
  }
545
 
593
 
546
  public Ticket setOrderId(long orderId) {
594
  public void setOrderId(long orderId) {
547
    this.orderId = orderId;
595
    this.orderId = orderId;
548
    setOrderIdIsSet(true);
596
    setOrderIdIsSet(true);
549
    return this;
-
 
550
  }
597
  }
551
 
598
 
552
  public void unsetOrderId() {
599
  public void unsetOrderId() {
553
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
600
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
554
  }
601
  }
555
 
602
 
556
  /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
603
  /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
557
  public boolean isSetOrderId() {
604
  public boolean isSetOrderId() {
558
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
605
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
559
  }
606
  }
560
 
607
 
561
  public void setOrderIdIsSet(boolean value) {
608
  public void setOrderIdIsSet(boolean value) {
Line 564... Line 611...
564
 
611
 
565
  public String getAirwayBillNo() {
612
  public String getAirwayBillNo() {
566
    return this.airwayBillNo;
613
    return this.airwayBillNo;
567
  }
614
  }
568
 
615
 
569
  public Ticket setAirwayBillNo(String airwayBillNo) {
616
  public void setAirwayBillNo(String airwayBillNo) {
570
    this.airwayBillNo = airwayBillNo;
617
    this.airwayBillNo = airwayBillNo;
571
    return this;
-
 
572
  }
618
  }
573
 
619
 
574
  public void unsetAirwayBillNo() {
620
  public void unsetAirwayBillNo() {
575
    this.airwayBillNo = null;
621
    this.airwayBillNo = null;
576
  }
622
  }
577
 
623
 
578
  /** Returns true if field airwayBillNo is set (has been asigned a value) and false otherwise */
624
  /** Returns true if field airwayBillNo is set (has been assigned a value) and false otherwise */
579
  public boolean isSetAirwayBillNo() {
625
  public boolean isSetAirwayBillNo() {
580
    return this.airwayBillNo != null;
626
    return this.airwayBillNo != null;
581
  }
627
  }
582
 
628
 
583
  public void setAirwayBillNoIsSet(boolean value) {
629
  public void setAirwayBillNoIsSet(boolean value) {
Line 588... Line 634...
588
 
634
 
589
  public String getProductName() {
635
  public String getProductName() {
590
    return this.productName;
636
    return this.productName;
591
  }
637
  }
592
 
638
 
593
  public Ticket setProductName(String productName) {
639
  public void setProductName(String productName) {
594
    this.productName = productName;
640
    this.productName = productName;
595
    return this;
-
 
596
  }
641
  }
597
 
642
 
598
  public void unsetProductName() {
643
  public void unsetProductName() {
599
    this.productName = null;
644
    this.productName = null;
600
  }
645
  }
601
 
646
 
602
  /** Returns true if field productName is set (has been asigned a value) and false otherwise */
647
  /** Returns true if field productName is set (has been assigned a value) and false otherwise */
603
  public boolean isSetProductName() {
648
  public boolean isSetProductName() {
604
    return this.productName != null;
649
    return this.productName != null;
605
  }
650
  }
606
 
651
 
607
  public void setProductNameIsSet(boolean value) {
652
  public void setProductNameIsSet(boolean value) {
Line 612... Line 657...
612
 
657
 
613
  public String getCustomerMobileNumber() {
658
  public String getCustomerMobileNumber() {
614
    return this.customerMobileNumber;
659
    return this.customerMobileNumber;
615
  }
660
  }
616
 
661
 
617
  public Ticket setCustomerMobileNumber(String customerMobileNumber) {
662
  public void setCustomerMobileNumber(String customerMobileNumber) {
618
    this.customerMobileNumber = customerMobileNumber;
663
    this.customerMobileNumber = customerMobileNumber;
619
    return this;
-
 
620
  }
664
  }
621
 
665
 
622
  public void unsetCustomerMobileNumber() {
666
  public void unsetCustomerMobileNumber() {
623
    this.customerMobileNumber = null;
667
    this.customerMobileNumber = null;
624
  }
668
  }
625
 
669
 
626
  /** Returns true if field customerMobileNumber is set (has been asigned a value) and false otherwise */
670
  /** Returns true if field customerMobileNumber is set (has been assigned a value) and false otherwise */
627
  public boolean isSetCustomerMobileNumber() {
671
  public boolean isSetCustomerMobileNumber() {
628
    return this.customerMobileNumber != null;
672
    return this.customerMobileNumber != null;
629
  }
673
  }
630
 
674
 
631
  public void setCustomerMobileNumberIsSet(boolean value) {
675
  public void setCustomerMobileNumberIsSet(boolean value) {
Line 636... Line 680...
636
 
680
 
637
  public String getCustomerEmailId() {
681
  public String getCustomerEmailId() {
638
    return this.customerEmailId;
682
    return this.customerEmailId;
639
  }
683
  }
640
 
684
 
641
  public Ticket setCustomerEmailId(String customerEmailId) {
685
  public void setCustomerEmailId(String customerEmailId) {
642
    this.customerEmailId = customerEmailId;
686
    this.customerEmailId = customerEmailId;
643
    return this;
-
 
644
  }
687
  }
645
 
688
 
646
  public void unsetCustomerEmailId() {
689
  public void unsetCustomerEmailId() {
647
    this.customerEmailId = null;
690
    this.customerEmailId = null;
648
  }
691
  }
649
 
692
 
650
  /** Returns true if field customerEmailId is set (has been asigned a value) and false otherwise */
693
  /** Returns true if field customerEmailId is set (has been assigned a value) and false otherwise */
651
  public boolean isSetCustomerEmailId() {
694
  public boolean isSetCustomerEmailId() {
652
    return this.customerEmailId != null;
695
    return this.customerEmailId != null;
653
  }
696
  }
654
 
697
 
655
  public void setCustomerEmailIdIsSet(boolean value) {
698
  public void setCustomerEmailIdIsSet(boolean value) {
Line 660... Line 703...
660
 
703
 
661
  public String getCustomerName() {
704
  public String getCustomerName() {
662
    return this.customerName;
705
    return this.customerName;
663
  }
706
  }
664
 
707
 
665
  public Ticket setCustomerName(String customerName) {
708
  public void setCustomerName(String customerName) {
666
    this.customerName = customerName;
709
    this.customerName = customerName;
667
    return this;
-
 
668
  }
710
  }
669
 
711
 
670
  public void unsetCustomerName() {
712
  public void unsetCustomerName() {
671
    this.customerName = null;
713
    this.customerName = null;
672
  }
714
  }
673
 
715
 
674
  /** Returns true if field customerName is set (has been asigned a value) and false otherwise */
716
  /** Returns true if field customerName is set (has been assigned a value) and false otherwise */
675
  public boolean isSetCustomerName() {
717
  public boolean isSetCustomerName() {
676
    return this.customerName != null;
718
    return this.customerName != null;
677
  }
719
  }
678
 
720
 
679
  public void setCustomerNameIsSet(boolean value) {
721
  public void setCustomerNameIsSet(boolean value) {
Line 684... Line 726...
684
 
726
 
685
  public Agent getAssignee() {
727
  public Agent getAssignee() {
686
    return this.assignee;
728
    return this.assignee;
687
  }
729
  }
688
 
730
 
689
  public Ticket setAssignee(Agent assignee) {
731
  public void setAssignee(Agent assignee) {
690
    this.assignee = assignee;
732
    this.assignee = assignee;
691
    return this;
-
 
692
  }
733
  }
693
 
734
 
694
  public void unsetAssignee() {
735
  public void unsetAssignee() {
695
    this.assignee = null;
736
    this.assignee = null;
696
  }
737
  }
697
 
738
 
698
  /** Returns true if field assignee is set (has been asigned a value) and false otherwise */
739
  /** Returns true if field assignee is set (has been assigned a value) and false otherwise */
699
  public boolean isSetAssignee() {
740
  public boolean isSetAssignee() {
700
    return this.assignee != null;
741
    return this.assignee != null;
701
  }
742
  }
702
 
743
 
703
  public void setAssigneeIsSet(boolean value) {
744
  public void setAssigneeIsSet(boolean value) {
Line 708... Line 749...
708
 
749
 
709
  public Agent getCreator() {
750
  public Agent getCreator() {
710
    return this.creator;
751
    return this.creator;
711
  }
752
  }
712
 
753
 
713
  public Ticket setCreator(Agent creator) {
754
  public void setCreator(Agent creator) {
714
    this.creator = creator;
755
    this.creator = creator;
715
    return this;
-
 
716
  }
756
  }
717
 
757
 
718
  public void unsetCreator() {
758
  public void unsetCreator() {
719
    this.creator = null;
759
    this.creator = null;
720
  }
760
  }
721
 
761
 
722
  /** Returns true if field creator is set (has been asigned a value) and false otherwise */
762
  /** Returns true if field creator is set (has been assigned a value) and false otherwise */
723
  public boolean isSetCreator() {
763
  public boolean isSetCreator() {
724
    return this.creator != null;
764
    return this.creator != null;
725
  }
765
  }
726
 
766
 
727
  public void setCreatorIsSet(boolean value) {
767
  public void setCreatorIsSet(boolean value) {
Line 877... Line 917...
877
      break;
917
      break;
878
 
918
 
879
    }
919
    }
880
  }
920
  }
881
 
921
 
882
  public void setFieldValue(int fieldID, Object value) {
-
 
883
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
884
  }
-
 
885
 
-
 
886
  public Object getFieldValue(_Fields field) {
922
  public Object getFieldValue(_Fields field) {
887
    switch (field) {
923
    switch (field) {
888
    case ID:
924
    case ID:
889
      return new Long(getId());
925
      return Long.valueOf(getId());
890
 
926
 
891
    case CUSTOMER_ID:
927
    case CUSTOMER_ID:
892
      return new Long(getCustomerId());
928
      return Long.valueOf(getCustomerId());
893
 
929
 
894
    case OPEN_DATE:
930
    case OPEN_DATE:
895
      return new Long(getOpenDate());
931
      return Long.valueOf(getOpenDate());
896
 
932
 
897
    case CLOSE_DATE:
933
    case CLOSE_DATE:
898
      return new Long(getCloseDate());
934
      return Long.valueOf(getCloseDate());
899
 
935
 
900
    case DESCRIPTION:
936
    case DESCRIPTION:
901
      return getDescription();
937
      return getDescription();
902
 
938
 
903
    case PRIORITY:
939
    case PRIORITY:
Line 908... Line 944...
908
 
944
 
909
    case STATUS:
945
    case STATUS:
910
      return getStatus();
946
      return getStatus();
911
 
947
 
912
    case ASSIGNEE_ID:
948
    case ASSIGNEE_ID:
913
      return new Long(getAssigneeId());
949
      return Long.valueOf(getAssigneeId());
914
 
950
 
915
    case CREATOR_ID:
951
    case CREATOR_ID:
916
      return new Long(getCreatorId());
952
      return Long.valueOf(getCreatorId());
917
 
953
 
918
    case ORDER_ID:
954
    case ORDER_ID:
919
      return new Long(getOrderId());
955
      return Long.valueOf(getOrderId());
920
 
956
 
921
    case AIRWAY_BILL_NO:
957
    case AIRWAY_BILL_NO:
922
      return getAirwayBillNo();
958
      return getAirwayBillNo();
923
 
959
 
924
    case PRODUCT_NAME:
960
    case PRODUCT_NAME:
Line 941... Line 977...
941
 
977
 
942
    }
978
    }
943
    throw new IllegalStateException();
979
    throw new IllegalStateException();
944
  }
980
  }
945
 
981
 
946
  public Object getFieldValue(int fieldId) {
-
 
947
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
948
  }
-
 
949
 
-
 
950
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
982
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
951
  public boolean isSet(_Fields field) {
983
  public boolean isSet(_Fields field) {
-
 
984
    if (field == null) {
-
 
985
      throw new IllegalArgumentException();
-
 
986
    }
-
 
987
 
952
    switch (field) {
988
    switch (field) {
953
    case ID:
989
    case ID:
954
      return isSetId();
990
      return isSetId();
955
    case CUSTOMER_ID:
991
    case CUSTOMER_ID:
956
      return isSetCustomerId();
992
      return isSetCustomerId();
Line 988... Line 1024...
988
      return isSetCreator();
1024
      return isSetCreator();
989
    }
1025
    }
990
    throw new IllegalStateException();
1026
    throw new IllegalStateException();
991
  }
1027
  }
992
 
1028
 
993
  public boolean isSet(int fieldID) {
-
 
994
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
995
  }
-
 
996
 
-
 
997
  @Override
1029
  @Override
998
  public boolean equals(Object that) {
1030
  public boolean equals(Object that) {
999
    if (that == null)
1031
    if (that == null)
1000
      return false;
1032
      return false;
1001
    if (that instanceof Ticket)
1033
    if (that instanceof Ticket)
Line 1183... Line 1215...
1183
    }
1215
    }
1184
 
1216
 
1185
    int lastComparison = 0;
1217
    int lastComparison = 0;
1186
    Ticket typedOther = (Ticket)other;
1218
    Ticket typedOther = (Ticket)other;
1187
 
1219
 
1188
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
1220
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1189
    if (lastComparison != 0) {
1221
    if (lastComparison != 0) {
1190
      return lastComparison;
1222
      return lastComparison;
1191
    }
1223
    }
-
 
1224
    if (isSetId()) {
1192
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
1225
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1193
    if (lastComparison != 0) {
1226
      if (lastComparison != 0) {
1194
      return lastComparison;
1227
        return lastComparison;
-
 
1228
      }
1195
    }
1229
    }
1196
    lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
1230
    lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
1197
    if (lastComparison != 0) {
1231
    if (lastComparison != 0) {
1198
      return lastComparison;
1232
      return lastComparison;
1199
    }
1233
    }
-
 
1234
    if (isSetCustomerId()) {
1200
    lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
1235
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
1201
    if (lastComparison != 0) {
1236
      if (lastComparison != 0) {
1202
      return lastComparison;
1237
        return lastComparison;
-
 
1238
      }
1203
    }
1239
    }
1204
    lastComparison = Boolean.valueOf(isSetOpenDate()).compareTo(isSetOpenDate());
1240
    lastComparison = Boolean.valueOf(isSetOpenDate()).compareTo(typedOther.isSetOpenDate());
1205
    if (lastComparison != 0) {
1241
    if (lastComparison != 0) {
1206
      return lastComparison;
1242
      return lastComparison;
1207
    }
1243
    }
-
 
1244
    if (isSetOpenDate()) {
1208
    lastComparison = TBaseHelper.compareTo(openDate, typedOther.openDate);
1245
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.openDate, typedOther.openDate);
1209
    if (lastComparison != 0) {
1246
      if (lastComparison != 0) {
1210
      return lastComparison;
1247
        return lastComparison;
-
 
1248
      }
1211
    }
1249
    }
1212
    lastComparison = Boolean.valueOf(isSetCloseDate()).compareTo(isSetCloseDate());
1250
    lastComparison = Boolean.valueOf(isSetCloseDate()).compareTo(typedOther.isSetCloseDate());
1213
    if (lastComparison != 0) {
1251
    if (lastComparison != 0) {
1214
      return lastComparison;
1252
      return lastComparison;
1215
    }
1253
    }
-
 
1254
    if (isSetCloseDate()) {
1216
    lastComparison = TBaseHelper.compareTo(closeDate, typedOther.closeDate);
1255
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.closeDate, typedOther.closeDate);
1217
    if (lastComparison != 0) {
1256
      if (lastComparison != 0) {
1218
      return lastComparison;
1257
        return lastComparison;
-
 
1258
      }
1219
    }
1259
    }
1220
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
1260
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
1221
    if (lastComparison != 0) {
1261
    if (lastComparison != 0) {
1222
      return lastComparison;
1262
      return lastComparison;
1223
    }
1263
    }
-
 
1264
    if (isSetDescription()) {
1224
    lastComparison = TBaseHelper.compareTo(description, typedOther.description);
1265
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
1225
    if (lastComparison != 0) {
1266
      if (lastComparison != 0) {
1226
      return lastComparison;
1267
        return lastComparison;
-
 
1268
      }
1227
    }
1269
    }
1228
    lastComparison = Boolean.valueOf(isSetPriority()).compareTo(isSetPriority());
1270
    lastComparison = Boolean.valueOf(isSetPriority()).compareTo(typedOther.isSetPriority());
1229
    if (lastComparison != 0) {
1271
    if (lastComparison != 0) {
1230
      return lastComparison;
1272
      return lastComparison;
1231
    }
1273
    }
-
 
1274
    if (isSetPriority()) {
1232
    lastComparison = TBaseHelper.compareTo(priority, typedOther.priority);
1275
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.priority, typedOther.priority);
1233
    if (lastComparison != 0) {
1276
      if (lastComparison != 0) {
1234
      return lastComparison;
1277
        return lastComparison;
-
 
1278
      }
1235
    }
1279
    }
1236
    lastComparison = Boolean.valueOf(isSetCategory()).compareTo(isSetCategory());
1280
    lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
1237
    if (lastComparison != 0) {
1281
    if (lastComparison != 0) {
1238
      return lastComparison;
1282
      return lastComparison;
1239
    }
1283
    }
-
 
1284
    if (isSetCategory()) {
1240
    lastComparison = TBaseHelper.compareTo(category, typedOther.category);
1285
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
1241
    if (lastComparison != 0) {
1286
      if (lastComparison != 0) {
1242
      return lastComparison;
1287
        return lastComparison;
-
 
1288
      }
1243
    }
1289
    }
1244
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
1290
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
1245
    if (lastComparison != 0) {
1291
    if (lastComparison != 0) {
1246
      return lastComparison;
1292
      return lastComparison;
1247
    }
1293
    }
-
 
1294
    if (isSetStatus()) {
1248
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
1295
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
1249
    if (lastComparison != 0) {
1296
      if (lastComparison != 0) {
1250
      return lastComparison;
1297
        return lastComparison;
-
 
1298
      }
1251
    }
1299
    }
1252
    lastComparison = Boolean.valueOf(isSetAssigneeId()).compareTo(isSetAssigneeId());
1300
    lastComparison = Boolean.valueOf(isSetAssigneeId()).compareTo(typedOther.isSetAssigneeId());
1253
    if (lastComparison != 0) {
1301
    if (lastComparison != 0) {
1254
      return lastComparison;
1302
      return lastComparison;
1255
    }
1303
    }
-
 
1304
    if (isSetAssigneeId()) {
1256
    lastComparison = TBaseHelper.compareTo(assigneeId, typedOther.assigneeId);
1305
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.assigneeId, typedOther.assigneeId);
1257
    if (lastComparison != 0) {
1306
      if (lastComparison != 0) {
1258
      return lastComparison;
1307
        return lastComparison;
-
 
1308
      }
1259
    }
1309
    }
1260
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
1310
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(typedOther.isSetCreatorId());
1261
    if (lastComparison != 0) {
1311
    if (lastComparison != 0) {
1262
      return lastComparison;
1312
      return lastComparison;
1263
    }
1313
    }
-
 
1314
    if (isSetCreatorId()) {
1264
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
1315
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creatorId, typedOther.creatorId);
1265
    if (lastComparison != 0) {
1316
      if (lastComparison != 0) {
1266
      return lastComparison;
1317
        return lastComparison;
-
 
1318
      }
1267
    }
1319
    }
1268
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
1320
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
1269
    if (lastComparison != 0) {
1321
    if (lastComparison != 0) {
1270
      return lastComparison;
1322
      return lastComparison;
1271
    }
1323
    }
-
 
1324
    if (isSetOrderId()) {
1272
    lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
1325
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
1273
    if (lastComparison != 0) {
1326
      if (lastComparison != 0) {
1274
      return lastComparison;
1327
        return lastComparison;
-
 
1328
      }
1275
    }
1329
    }
1276
    lastComparison = Boolean.valueOf(isSetAirwayBillNo()).compareTo(isSetAirwayBillNo());
1330
    lastComparison = Boolean.valueOf(isSetAirwayBillNo()).compareTo(typedOther.isSetAirwayBillNo());
1277
    if (lastComparison != 0) {
1331
    if (lastComparison != 0) {
1278
      return lastComparison;
1332
      return lastComparison;
1279
    }
1333
    }
-
 
1334
    if (isSetAirwayBillNo()) {
1280
    lastComparison = TBaseHelper.compareTo(airwayBillNo, typedOther.airwayBillNo);
1335
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.airwayBillNo, typedOther.airwayBillNo);
1281
    if (lastComparison != 0) {
1336
      if (lastComparison != 0) {
1282
      return lastComparison;
1337
        return lastComparison;
-
 
1338
      }
1283
    }
1339
    }
1284
    lastComparison = Boolean.valueOf(isSetProductName()).compareTo(isSetProductName());
1340
    lastComparison = Boolean.valueOf(isSetProductName()).compareTo(typedOther.isSetProductName());
1285
    if (lastComparison != 0) {
1341
    if (lastComparison != 0) {
1286
      return lastComparison;
1342
      return lastComparison;
1287
    }
1343
    }
-
 
1344
    if (isSetProductName()) {
1288
    lastComparison = TBaseHelper.compareTo(productName, typedOther.productName);
1345
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productName, typedOther.productName);
1289
    if (lastComparison != 0) {
1346
      if (lastComparison != 0) {
1290
      return lastComparison;
1347
        return lastComparison;
-
 
1348
      }
1291
    }
1349
    }
1292
    lastComparison = Boolean.valueOf(isSetCustomerMobileNumber()).compareTo(isSetCustomerMobileNumber());
1350
    lastComparison = Boolean.valueOf(isSetCustomerMobileNumber()).compareTo(typedOther.isSetCustomerMobileNumber());
1293
    if (lastComparison != 0) {
1351
    if (lastComparison != 0) {
1294
      return lastComparison;
1352
      return lastComparison;
1295
    }
1353
    }
-
 
1354
    if (isSetCustomerMobileNumber()) {
1296
    lastComparison = TBaseHelper.compareTo(customerMobileNumber, typedOther.customerMobileNumber);
1355
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerMobileNumber, typedOther.customerMobileNumber);
1297
    if (lastComparison != 0) {
1356
      if (lastComparison != 0) {
1298
      return lastComparison;
1357
        return lastComparison;
-
 
1358
      }
1299
    }
1359
    }
1300
    lastComparison = Boolean.valueOf(isSetCustomerEmailId()).compareTo(isSetCustomerEmailId());
1360
    lastComparison = Boolean.valueOf(isSetCustomerEmailId()).compareTo(typedOther.isSetCustomerEmailId());
1301
    if (lastComparison != 0) {
1361
    if (lastComparison != 0) {
1302
      return lastComparison;
1362
      return lastComparison;
1303
    }
1363
    }
-
 
1364
    if (isSetCustomerEmailId()) {
1304
    lastComparison = TBaseHelper.compareTo(customerEmailId, typedOther.customerEmailId);
1365
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerEmailId, typedOther.customerEmailId);
1305
    if (lastComparison != 0) {
1366
      if (lastComparison != 0) {
1306
      return lastComparison;
1367
        return lastComparison;
-
 
1368
      }
1307
    }
1369
    }
1308
    lastComparison = Boolean.valueOf(isSetCustomerName()).compareTo(isSetCustomerName());
1370
    lastComparison = Boolean.valueOf(isSetCustomerName()).compareTo(typedOther.isSetCustomerName());
1309
    if (lastComparison != 0) {
1371
    if (lastComparison != 0) {
1310
      return lastComparison;
1372
      return lastComparison;
1311
    }
1373
    }
-
 
1374
    if (isSetCustomerName()) {
1312
    lastComparison = TBaseHelper.compareTo(customerName, typedOther.customerName);
1375
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerName, typedOther.customerName);
1313
    if (lastComparison != 0) {
1376
      if (lastComparison != 0) {
1314
      return lastComparison;
1377
        return lastComparison;
-
 
1378
      }
1315
    }
1379
    }
1316
    lastComparison = Boolean.valueOf(isSetAssignee()).compareTo(isSetAssignee());
1380
    lastComparison = Boolean.valueOf(isSetAssignee()).compareTo(typedOther.isSetAssignee());
1317
    if (lastComparison != 0) {
1381
    if (lastComparison != 0) {
1318
      return lastComparison;
1382
      return lastComparison;
1319
    }
1383
    }
-
 
1384
    if (isSetAssignee()) {
1320
    lastComparison = TBaseHelper.compareTo(assignee, typedOther.assignee);
1385
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.assignee, typedOther.assignee);
1321
    if (lastComparison != 0) {
1386
      if (lastComparison != 0) {
1322
      return lastComparison;
1387
        return lastComparison;
-
 
1388
      }
1323
    }
1389
    }
1324
    lastComparison = Boolean.valueOf(isSetCreator()).compareTo(isSetCreator());
1390
    lastComparison = Boolean.valueOf(isSetCreator()).compareTo(typedOther.isSetCreator());
1325
    if (lastComparison != 0) {
1391
    if (lastComparison != 0) {
1326
      return lastComparison;
1392
      return lastComparison;
1327
    }
1393
    }
-
 
1394
    if (isSetCreator()) {
1328
    lastComparison = TBaseHelper.compareTo(creator, typedOther.creator);
1395
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creator, typedOther.creator);
1329
    if (lastComparison != 0) {
1396
      if (lastComparison != 0) {
1330
      return lastComparison;
1397
        return lastComparison;
-
 
1398
      }
1331
    }
1399
    }
1332
    return 0;
1400
    return 0;
1333
  }
1401
  }
1334
 
1402
 
-
 
1403
  public _Fields fieldForId(int fieldId) {
-
 
1404
    return _Fields.findByThriftId(fieldId);
-
 
1405
  }
-
 
1406
 
1335
  public void read(TProtocol iprot) throws TException {
1407
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1336
    TField field;
1408
    org.apache.thrift.protocol.TField field;
1337
    iprot.readStructBegin();
1409
    iprot.readStructBegin();
1338
    while (true)
1410
    while (true)
1339
    {
1411
    {
1340
      field = iprot.readFieldBegin();
1412
      field = iprot.readFieldBegin();
1341
      if (field.type == TType.STOP) { 
1413
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1342
        break;
1414
        break;
1343
      }
1415
      }
1344
      _Fields fieldId = _Fields.findByThriftId(field.id);
1416
      switch (field.id) {
1345
      if (fieldId == null) {
1417
        case 1: // ID
1346
        TProtocolUtil.skip(iprot, field.type);
1418
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1347
      } else {
1419
            this.id = iprot.readI64();
1348
        switch (fieldId) {
1420
            setIdIsSet(true);
1349
          case ID:
1421
          } else { 
1350
            if (field.type == TType.I64) {
1422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1351
              this.id = iprot.readI64();
1423
          }
1352
              setIdIsSet(true);
1424
          break;
1353
            } else { 
1425
        case 2: // CUSTOMER_ID
1354
              TProtocolUtil.skip(iprot, field.type);
1426
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1355
            }
1427
            this.customerId = iprot.readI64();
1356
            break;
1428
            setCustomerIdIsSet(true);
1357
          case CUSTOMER_ID:
1429
          } else { 
1358
            if (field.type == TType.I64) {
1430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1359
              this.customerId = iprot.readI64();
1431
          }
1360
              setCustomerIdIsSet(true);
1432
          break;
1361
            } else { 
1433
        case 3: // OPEN_DATE
1362
              TProtocolUtil.skip(iprot, field.type);
1434
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1363
            }
1435
            this.openDate = iprot.readI64();
1364
            break;
1436
            setOpenDateIsSet(true);
1365
          case OPEN_DATE:
1437
          } else { 
1366
            if (field.type == TType.I64) {
1438
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1367
              this.openDate = iprot.readI64();
1439
          }
1368
              setOpenDateIsSet(true);
1440
          break;
1369
            } else { 
1441
        case 4: // CLOSE_DATE
1370
              TProtocolUtil.skip(iprot, field.type);
1442
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1371
            }
1443
            this.closeDate = iprot.readI64();
1372
            break;
1444
            setCloseDateIsSet(true);
1373
          case CLOSE_DATE:
1445
          } else { 
1374
            if (field.type == TType.I64) {
1446
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1375
              this.closeDate = iprot.readI64();
1447
          }
1376
              setCloseDateIsSet(true);
1448
          break;
1377
            } else { 
1449
        case 5: // DESCRIPTION
1378
              TProtocolUtil.skip(iprot, field.type);
1450
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1379
            }
1451
            this.description = iprot.readString();
1380
            break;
1452
          } else { 
1381
          case DESCRIPTION:
1453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382
            if (field.type == TType.STRING) {
1454
          }
1383
              this.description = iprot.readString();
1455
          break;
1384
            } else { 
1456
        case 6: // PRIORITY
1385
              TProtocolUtil.skip(iprot, field.type);
1457
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1386
            }
1458
            this.priority = TicketPriority.findByValue(iprot.readI32());
1387
            break;
1459
          } else { 
1388
          case PRIORITY:
1460
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1389
            if (field.type == TType.I32) {
1461
          }
1390
              this.priority = TicketPriority.findByValue(iprot.readI32());
1462
          break;
1391
            } else { 
1463
        case 7: // CATEGORY
1392
              TProtocolUtil.skip(iprot, field.type);
1464
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1393
            }
1465
            this.category = TicketCategory.findByValue(iprot.readI32());
1394
            break;
1466
          } else { 
1395
          case CATEGORY:
1467
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1396
            if (field.type == TType.I32) {
1468
          }
1397
              this.category = TicketCategory.findByValue(iprot.readI32());
1469
          break;
1398
            } else { 
1470
        case 8: // STATUS
1399
              TProtocolUtil.skip(iprot, field.type);
1471
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1400
            }
1472
            this.status = TicketStatus.findByValue(iprot.readI32());
1401
            break;
1473
          } else { 
1402
          case STATUS:
1474
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1403
            if (field.type == TType.I32) {
1475
          }
1404
              this.status = TicketStatus.findByValue(iprot.readI32());
1476
          break;
1405
            } else { 
1477
        case 9: // ASSIGNEE_ID
1406
              TProtocolUtil.skip(iprot, field.type);
1478
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1407
            }
1479
            this.assigneeId = iprot.readI64();
1408
            break;
1480
            setAssigneeIdIsSet(true);
1409
          case ASSIGNEE_ID:
1481
          } else { 
1410
            if (field.type == TType.I64) {
1482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1411
              this.assigneeId = iprot.readI64();
1483
          }
1412
              setAssigneeIdIsSet(true);
1484
          break;
1413
            } else { 
1485
        case 10: // CREATOR_ID
1414
              TProtocolUtil.skip(iprot, field.type);
1486
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1415
            }
1487
            this.creatorId = iprot.readI64();
1416
            break;
1488
            setCreatorIdIsSet(true);
1417
          case CREATOR_ID:
1489
          } else { 
1418
            if (field.type == TType.I64) {
1490
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1419
              this.creatorId = iprot.readI64();
1491
          }
1420
              setCreatorIdIsSet(true);
1492
          break;
1421
            } else { 
1493
        case 11: // ORDER_ID
1422
              TProtocolUtil.skip(iprot, field.type);
1494
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1423
            }
1495
            this.orderId = iprot.readI64();
1424
            break;
1496
            setOrderIdIsSet(true);
1425
          case ORDER_ID:
1497
          } else { 
1426
            if (field.type == TType.I64) {
1498
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1427
              this.orderId = iprot.readI64();
1499
          }
1428
              setOrderIdIsSet(true);
1500
          break;
1429
            } else { 
1501
        case 12: // AIRWAY_BILL_NO
1430
              TProtocolUtil.skip(iprot, field.type);
1502
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1431
            }
1503
            this.airwayBillNo = iprot.readString();
1432
            break;
1504
          } else { 
1433
          case AIRWAY_BILL_NO:
1505
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1434
            if (field.type == TType.STRING) {
1506
          }
1435
              this.airwayBillNo = iprot.readString();
1507
          break;
1436
            } else { 
1508
        case 13: // PRODUCT_NAME
1437
              TProtocolUtil.skip(iprot, field.type);
1509
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1438
            }
1510
            this.productName = iprot.readString();
1439
            break;
1511
          } else { 
1440
          case PRODUCT_NAME:
1512
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1441
            if (field.type == TType.STRING) {
1513
          }
1442
              this.productName = iprot.readString();
1514
          break;
1443
            } else { 
1515
        case 14: // CUSTOMER_MOBILE_NUMBER
1444
              TProtocolUtil.skip(iprot, field.type);
1516
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1445
            }
1517
            this.customerMobileNumber = iprot.readString();
1446
            break;
1518
          } else { 
1447
          case CUSTOMER_MOBILE_NUMBER:
1519
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1448
            if (field.type == TType.STRING) {
1520
          }
1449
              this.customerMobileNumber = iprot.readString();
1521
          break;
1450
            } else { 
1522
        case 15: // CUSTOMER_EMAIL_ID
1451
              TProtocolUtil.skip(iprot, field.type);
1523
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1452
            }
1524
            this.customerEmailId = iprot.readString();
1453
            break;
1525
          } else { 
1454
          case CUSTOMER_EMAIL_ID:
1526
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1455
            if (field.type == TType.STRING) {
1527
          }
1456
              this.customerEmailId = iprot.readString();
1528
          break;
1457
            } else { 
1529
        case 16: // CUSTOMER_NAME
1458
              TProtocolUtil.skip(iprot, field.type);
1530
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1459
            }
1531
            this.customerName = iprot.readString();
1460
            break;
1532
          } else { 
1461
          case CUSTOMER_NAME:
1533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1462
            if (field.type == TType.STRING) {
1534
          }
1463
              this.customerName = iprot.readString();
1535
          break;
1464
            } else { 
1536
        case 17: // ASSIGNEE
1465
              TProtocolUtil.skip(iprot, field.type);
1537
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1466
            }
1538
            this.assignee = new Agent();
1467
            break;
1539
            this.assignee.read(iprot);
1468
          case ASSIGNEE:
1540
          } else { 
1469
            if (field.type == TType.STRUCT) {
1541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1470
              this.assignee = new Agent();
1542
          }
1471
              this.assignee.read(iprot);
1543
          break;
1472
            } else { 
1544
        case 18: // CREATOR
1473
              TProtocolUtil.skip(iprot, field.type);
1545
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1474
            }
1546
            this.creator = new Agent();
1475
            break;
1547
            this.creator.read(iprot);
1476
          case CREATOR:
1548
          } else { 
1477
            if (field.type == TType.STRUCT) {
1549
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1478
              this.creator = new Agent();
1550
          }
1479
              this.creator.read(iprot);
1551
          break;
1480
            } else { 
1552
        default:
1481
              TProtocolUtil.skip(iprot, field.type);
1553
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1482
            }
-
 
1483
            break;
-
 
1484
        }
-
 
1485
        iprot.readFieldEnd();
-
 
1486
      }
1554
      }
-
 
1555
      iprot.readFieldEnd();
1487
    }
1556
    }
1488
    iprot.readStructEnd();
1557
    iprot.readStructEnd();
1489
    validate();
1558
    validate();
1490
  }
1559
  }
1491
 
1560
 
1492
  public void write(TProtocol oprot) throws TException {
1561
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1493
    validate();
1562
    validate();
1494
 
1563
 
1495
    oprot.writeStructBegin(STRUCT_DESC);
1564
    oprot.writeStructBegin(STRUCT_DESC);
1496
    oprot.writeFieldBegin(ID_FIELD_DESC);
1565
    oprot.writeFieldBegin(ID_FIELD_DESC);
1497
    oprot.writeI64(this.id);
1566
    oprot.writeI64(this.id);
Line 1634... Line 1703...
1634
    if (!first) sb.append(", ");
1703
    if (!first) sb.append(", ");
1635
    sb.append("priority:");
1704
    sb.append("priority:");
1636
    if (this.priority == null) {
1705
    if (this.priority == null) {
1637
      sb.append("null");
1706
      sb.append("null");
1638
    } else {
1707
    } else {
1639
      String priority_name = priority.name();
-
 
1640
      if (priority_name != null) {
-
 
1641
        sb.append(priority_name);
-
 
1642
        sb.append(" (");
-
 
1643
      }
-
 
1644
      sb.append(this.priority);
1708
      sb.append(this.priority);
1645
      if (priority_name != null) {
-
 
1646
        sb.append(")");
-
 
1647
      }
-
 
1648
    }
1709
    }
1649
    first = false;
1710
    first = false;
1650
    if (!first) sb.append(", ");
1711
    if (!first) sb.append(", ");
1651
    sb.append("category:");
1712
    sb.append("category:");
1652
    if (this.category == null) {
1713
    if (this.category == null) {
1653
      sb.append("null");
1714
      sb.append("null");
1654
    } else {
1715
    } else {
1655
      String category_name = category.name();
-
 
1656
      if (category_name != null) {
-
 
1657
        sb.append(category_name);
-
 
1658
        sb.append(" (");
-
 
1659
      }
-
 
1660
      sb.append(this.category);
1716
      sb.append(this.category);
1661
      if (category_name != null) {
-
 
1662
        sb.append(")");
-
 
1663
      }
-
 
1664
    }
1717
    }
1665
    first = false;
1718
    first = false;
1666
    if (!first) sb.append(", ");
1719
    if (!first) sb.append(", ");
1667
    sb.append("status:");
1720
    sb.append("status:");
1668
    if (this.status == null) {
1721
    if (this.status == null) {
1669
      sb.append("null");
1722
      sb.append("null");
1670
    } else {
1723
    } else {
1671
      String status_name = status.name();
-
 
1672
      if (status_name != null) {
-
 
1673
        sb.append(status_name);
-
 
1674
        sb.append(" (");
-
 
1675
      }
-
 
1676
      sb.append(this.status);
1724
      sb.append(this.status);
1677
      if (status_name != null) {
-
 
1678
        sb.append(")");
-
 
1679
      }
-
 
1680
    }
1725
    }
1681
    first = false;
1726
    first = false;
1682
    if (isSetAssigneeId()) {
1727
    if (isSetAssigneeId()) {
1683
      if (!first) sb.append(", ");
1728
      if (!first) sb.append(", ");
1684
      sb.append("assigneeId:");
1729
      sb.append("assigneeId:");
Line 1767... Line 1812...
1767
    }
1812
    }
1768
    sb.append(")");
1813
    sb.append(")");
1769
    return sb.toString();
1814
    return sb.toString();
1770
  }
1815
  }
1771
 
1816
 
1772
  public void validate() throws TException {
1817
  public void validate() throws org.apache.thrift.TException {
1773
    // check for required fields
1818
    // check for required fields
1774
  }
1819
  }
1775
 
1820
 
-
 
1821
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1822
    try {
-
 
1823
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1824
    } catch (org.apache.thrift.TException te) {
-
 
1825
      throw new java.io.IOException(te);
-
 
1826
    }
-
 
1827
  }
-
 
1828
 
-
 
1829
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1830
    try {
-
 
1831
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1832
      __isset_bit_vector = new BitSet(1);
-
 
1833
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1834
    } catch (org.apache.thrift.TException te) {
-
 
1835
      throw new java.io.IOException(te);
-
 
1836
    }
-
 
1837
  }
-
 
1838
 
1776
}
1839
}
1777
 
1840