Subversion Repositories SmartDukaan

Rev

Rev 3430 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3430 Rev 6643
Line 22... Line 22...
22
 
22
 
23
public class AwbUpdate implements org.apache.thrift.TBase<AwbUpdate, AwbUpdate._Fields>, java.io.Serializable, Cloneable {
23
public class AwbUpdate implements org.apache.thrift.TBase<AwbUpdate, AwbUpdate._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AwbUpdate");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AwbUpdate");
25
 
25
 
26
  private static final org.apache.thrift.protocol.TField AWB_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("awbNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
26
  private static final org.apache.thrift.protocol.TField AWB_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("awbNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
27
  private static final org.apache.thrift.protocol.TField PROVIDER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("providerName", org.apache.thrift.protocol.TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.STRING, (short)3);
28
  private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField ENTRY_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("entryDate", org.apache.thrift.protocol.TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRING, (short)4);
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);
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);
-
 
31
  private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.STRING, (short)6);
31
 
32
 
32
  private String awbNumber; // required
33
  private String awbNumber; // required
33
  private String providerName; // required
34
  private long providerId; // required
34
  private String location; // required
35
  private long date; // required
35
  private long entryDate; // required
36
  private String status; // required
36
  private String description; // required
37
  private String description; // required
-
 
38
  private String location; // required
37
 
39
 
38
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40
    AWB_NUMBER((short)1, "awbNumber"),
42
    AWB_NUMBER((short)1, "awbNumber"),
41
    PROVIDER_NAME((short)2, "providerName"),
43
    PROVIDER_ID((short)2, "providerId"),
42
    LOCATION((short)3, "location"),
44
    DATE((short)3, "date"),
43
    ENTRY_DATE((short)4, "entryDate"),
45
    STATUS((short)4, "status"),
44
    DESCRIPTION((short)5, "description");
46
    DESCRIPTION((short)5, "description"),
-
 
47
    LOCATION((short)6, "location");
45
 
48
 
46
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47
 
50
 
48
    static {
51
    static {
49
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
52
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 56... Line 59...
56
     */
59
     */
57
    public static _Fields findByThriftId(int fieldId) {
60
    public static _Fields findByThriftId(int fieldId) {
58
      switch(fieldId) {
61
      switch(fieldId) {
59
        case 1: // AWB_NUMBER
62
        case 1: // AWB_NUMBER
60
          return AWB_NUMBER;
63
          return AWB_NUMBER;
61
        case 2: // PROVIDER_NAME
64
        case 2: // PROVIDER_ID
62
          return PROVIDER_NAME;
65
          return PROVIDER_ID;
63
        case 3: // LOCATION
66
        case 3: // DATE
64
          return LOCATION;
67
          return DATE;
65
        case 4: // ENTRY_DATE
68
        case 4: // STATUS
66
          return ENTRY_DATE;
69
          return STATUS;
67
        case 5: // DESCRIPTION
70
        case 5: // DESCRIPTION
68
          return DESCRIPTION;
71
          return DESCRIPTION;
-
 
72
        case 6: // LOCATION
-
 
73
          return LOCATION;
69
        default:
74
        default:
70
          return null;
75
          return null;
71
      }
76
      }
72
    }
77
    }
73
 
78
 
Line 104... Line 109...
104
      return _fieldName;
109
      return _fieldName;
105
    }
110
    }
106
  }
111
  }
107
 
112
 
108
  // isset id assignments
113
  // isset id assignments
-
 
114
  private static final int __PROVIDERID_ISSET_ID = 0;
109
  private static final int __ENTRYDATE_ISSET_ID = 0;
115
  private static final int __DATE_ISSET_ID = 1;
110
  private BitSet __isset_bit_vector = new BitSet(1);
116
  private BitSet __isset_bit_vector = new BitSet(2);
111
 
117
 
112
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
118
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
113
  static {
119
  static {
114
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
120
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
115
    tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
121
    tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
116
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
122
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
117
    tmpMap.put(_Fields.PROVIDER_NAME, new org.apache.thrift.meta_data.FieldMetaData("providerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
123
    tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
118
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
119
    tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
120
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
124
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
121
    tmpMap.put(_Fields.ENTRY_DATE, new org.apache.thrift.meta_data.FieldMetaData("entryDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
125
    tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
122
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
126
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
127
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
128
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
123
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
129
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
124
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
130
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
131
    tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
132
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
125
    metaDataMap = Collections.unmodifiableMap(tmpMap);
133
    metaDataMap = Collections.unmodifiableMap(tmpMap);
126
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AwbUpdate.class, metaDataMap);
134
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AwbUpdate.class, metaDataMap);
127
  }
135
  }
128
 
136
 
129
  public AwbUpdate() {
137
  public AwbUpdate() {
130
  }
138
  }
131
 
139
 
132
  public AwbUpdate(
140
  public AwbUpdate(
133
    String awbNumber,
141
    String awbNumber,
134
    String providerName,
142
    long providerId,
135
    String location,
143
    long date,
136
    long entryDate,
144
    String status,
137
    String description)
145
    String description,
-
 
146
    String location)
138
  {
147
  {
139
    this();
148
    this();
140
    this.awbNumber = awbNumber;
149
    this.awbNumber = awbNumber;
141
    this.providerName = providerName;
150
    this.providerId = providerId;
142
    this.location = location;
151
    setProviderIdIsSet(true);
143
    this.entryDate = entryDate;
152
    this.date = date;
144
    setEntryDateIsSet(true);
153
    setDateIsSet(true);
-
 
154
    this.status = status;
145
    this.description = description;
155
    this.description = description;
-
 
156
    this.location = location;
146
  }
157
  }
147
 
158
 
148
  /**
159
  /**
149
   * Performs a deep copy on <i>other</i>.
160
   * Performs a deep copy on <i>other</i>.
150
   */
161
   */
Line 152... Line 163...
152
    __isset_bit_vector.clear();
163
    __isset_bit_vector.clear();
153
    __isset_bit_vector.or(other.__isset_bit_vector);
164
    __isset_bit_vector.or(other.__isset_bit_vector);
154
    if (other.isSetAwbNumber()) {
165
    if (other.isSetAwbNumber()) {
155
      this.awbNumber = other.awbNumber;
166
      this.awbNumber = other.awbNumber;
156
    }
167
    }
-
 
168
    this.providerId = other.providerId;
-
 
169
    this.date = other.date;
157
    if (other.isSetProviderName()) {
170
    if (other.isSetStatus()) {
158
      this.providerName = other.providerName;
171
      this.status = other.status;
159
    }
172
    }
160
    if (other.isSetLocation()) {
-
 
161
      this.location = other.location;
-
 
162
    }
-
 
163
    this.entryDate = other.entryDate;
-
 
164
    if (other.isSetDescription()) {
173
    if (other.isSetDescription()) {
165
      this.description = other.description;
174
      this.description = other.description;
166
    }
175
    }
-
 
176
    if (other.isSetLocation()) {
-
 
177
      this.location = other.location;
-
 
178
    }
167
  }
179
  }
168
 
180
 
169
  public AwbUpdate deepCopy() {
181
  public AwbUpdate deepCopy() {
170
    return new AwbUpdate(this);
182
    return new AwbUpdate(this);
171
  }
183
  }
172
 
184
 
173
  @Override
185
  @Override
174
  public void clear() {
186
  public void clear() {
175
    this.awbNumber = null;
187
    this.awbNumber = null;
176
    this.providerName = null;
188
    setProviderIdIsSet(false);
177
    this.location = null;
189
    this.providerId = 0;
178
    setEntryDateIsSet(false);
190
    setDateIsSet(false);
179
    this.entryDate = 0;
191
    this.date = 0;
-
 
192
    this.status = null;
180
    this.description = null;
193
    this.description = null;
-
 
194
    this.location = null;
181
  }
195
  }
182
 
196
 
183
  public String getAwbNumber() {
197
  public String getAwbNumber() {
184
    return this.awbNumber;
198
    return this.awbNumber;
185
  }
199
  }
Line 201... Line 215...
201
    if (!value) {
215
    if (!value) {
202
      this.awbNumber = null;
216
      this.awbNumber = null;
203
    }
217
    }
204
  }
218
  }
205
 
219
 
206
  public String getProviderName() {
220
  public long getProviderId() {
207
    return this.providerName;
221
    return this.providerId;
208
  }
222
  }
209
 
223
 
210
  public void setProviderName(String providerName) {
224
  public void setProviderId(long providerId) {
211
    this.providerName = providerName;
225
    this.providerId = providerId;
-
 
226
    setProviderIdIsSet(true);
212
  }
227
  }
213
 
228
 
214
  public void unsetProviderName() {
229
  public void unsetProviderId() {
215
    this.providerName = null;
230
    __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
216
  }
231
  }
217
 
232
 
218
  /** Returns true if field providerName is set (has been assigned a value) and false otherwise */
233
  /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
219
  public boolean isSetProviderName() {
234
  public boolean isSetProviderId() {
220
    return this.providerName != null;
235
    return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
221
  }
236
  }
222
 
237
 
223
  public void setProviderNameIsSet(boolean value) {
238
  public void setProviderIdIsSet(boolean value) {
224
    if (!value) {
-
 
225
      this.providerName = null;
239
    __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
226
    }
-
 
227
  }
240
  }
228
 
241
 
229
  public String getLocation() {
242
  public long getDate() {
230
    return this.location;
243
    return this.date;
231
  }
244
  }
232
 
245
 
233
  public void setLocation(String location) {
246
  public void setDate(long date) {
234
    this.location = location;
247
    this.date = date;
-
 
248
    setDateIsSet(true);
235
  }
249
  }
236
 
250
 
237
  public void unsetLocation() {
251
  public void unsetDate() {
238
    this.location = null;
252
    __isset_bit_vector.clear(__DATE_ISSET_ID);
239
  }
253
  }
240
 
254
 
241
  /** Returns true if field location is set (has been assigned a value) and false otherwise */
255
  /** Returns true if field date is set (has been assigned a value) and false otherwise */
242
  public boolean isSetLocation() {
256
  public boolean isSetDate() {
243
    return this.location != null;
257
    return __isset_bit_vector.get(__DATE_ISSET_ID);
244
  }
258
  }
245
 
259
 
246
  public void setLocationIsSet(boolean value) {
260
  public void setDateIsSet(boolean value) {
247
    if (!value) {
-
 
248
      this.location = null;
261
    __isset_bit_vector.set(__DATE_ISSET_ID, value);
249
    }
-
 
250
  }
262
  }
251
 
263
 
252
  public long getEntryDate() {
264
  public String getStatus() {
253
    return this.entryDate;
265
    return this.status;
254
  }
266
  }
255
 
267
 
256
  public void setEntryDate(long entryDate) {
268
  public void setStatus(String status) {
257
    this.entryDate = entryDate;
269
    this.status = status;
258
    setEntryDateIsSet(true);
-
 
259
  }
270
  }
260
 
271
 
261
  public void unsetEntryDate() {
272
  public void unsetStatus() {
262
    __isset_bit_vector.clear(__ENTRYDATE_ISSET_ID);
273
    this.status = null;
263
  }
274
  }
264
 
275
 
265
  /** Returns true if field entryDate is set (has been assigned a value) and false otherwise */
276
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
266
  public boolean isSetEntryDate() {
277
  public boolean isSetStatus() {
267
    return __isset_bit_vector.get(__ENTRYDATE_ISSET_ID);
278
    return this.status != null;
268
  }
279
  }
269
 
280
 
270
  public void setEntryDateIsSet(boolean value) {
281
  public void setStatusIsSet(boolean value) {
-
 
282
    if (!value) {
271
    __isset_bit_vector.set(__ENTRYDATE_ISSET_ID, value);
283
      this.status = null;
-
 
284
    }
272
  }
285
  }
273
 
286
 
274
  public String getDescription() {
287
  public String getDescription() {
275
    return this.description;
288
    return this.description;
276
  }
289
  }
Line 292... Line 305...
292
    if (!value) {
305
    if (!value) {
293
      this.description = null;
306
      this.description = null;
294
    }
307
    }
295
  }
308
  }
296
 
309
 
-
 
310
  public String getLocation() {
-
 
311
    return this.location;
-
 
312
  }
-
 
313
 
-
 
314
  public void setLocation(String location) {
-
 
315
    this.location = location;
-
 
316
  }
-
 
317
 
-
 
318
  public void unsetLocation() {
-
 
319
    this.location = null;
-
 
320
  }
-
 
321
 
-
 
322
  /** Returns true if field location is set (has been assigned a value) and false otherwise */
-
 
323
  public boolean isSetLocation() {
-
 
324
    return this.location != null;
-
 
325
  }
-
 
326
 
-
 
327
  public void setLocationIsSet(boolean value) {
-
 
328
    if (!value) {
-
 
329
      this.location = null;
-
 
330
    }
-
 
331
  }
-
 
332
 
297
  public void setFieldValue(_Fields field, Object value) {
333
  public void setFieldValue(_Fields field, Object value) {
298
    switch (field) {
334
    switch (field) {
299
    case AWB_NUMBER:
335
    case AWB_NUMBER:
300
      if (value == null) {
336
      if (value == null) {
301
        unsetAwbNumber();
337
        unsetAwbNumber();
302
      } else {
338
      } else {
303
        setAwbNumber((String)value);
339
        setAwbNumber((String)value);
304
      }
340
      }
305
      break;
341
      break;
306
 
342
 
307
    case PROVIDER_NAME:
343
    case PROVIDER_ID:
308
      if (value == null) {
344
      if (value == null) {
309
        unsetProviderName();
345
        unsetProviderId();
310
      } else {
346
      } else {
311
        setProviderName((String)value);
347
        setProviderId((Long)value);
312
      }
348
      }
313
      break;
349
      break;
314
 
350
 
315
    case LOCATION:
351
    case DATE:
316
      if (value == null) {
352
      if (value == null) {
317
        unsetLocation();
353
        unsetDate();
318
      } else {
354
      } else {
319
        setLocation((String)value);
355
        setDate((Long)value);
320
      }
356
      }
321
      break;
357
      break;
322
 
358
 
323
    case ENTRY_DATE:
359
    case STATUS:
324
      if (value == null) {
360
      if (value == null) {
325
        unsetEntryDate();
361
        unsetStatus();
326
      } else {
362
      } else {
327
        setEntryDate((Long)value);
363
        setStatus((String)value);
328
      }
364
      }
329
      break;
365
      break;
330
 
366
 
331
    case DESCRIPTION:
367
    case DESCRIPTION:
332
      if (value == null) {
368
      if (value == null) {
Line 334... Line 370...
334
      } else {
370
      } else {
335
        setDescription((String)value);
371
        setDescription((String)value);
336
      }
372
      }
337
      break;
373
      break;
338
 
374
 
-
 
375
    case LOCATION:
-
 
376
      if (value == null) {
-
 
377
        unsetLocation();
-
 
378
      } else {
-
 
379
        setLocation((String)value);
-
 
380
      }
-
 
381
      break;
-
 
382
 
339
    }
383
    }
340
  }
384
  }
341
 
385
 
342
  public Object getFieldValue(_Fields field) {
386
  public Object getFieldValue(_Fields field) {
343
    switch (field) {
387
    switch (field) {
344
    case AWB_NUMBER:
388
    case AWB_NUMBER:
345
      return getAwbNumber();
389
      return getAwbNumber();
346
 
390
 
347
    case PROVIDER_NAME:
391
    case PROVIDER_ID:
348
      return getProviderName();
392
      return Long.valueOf(getProviderId());
349
 
393
 
350
    case LOCATION:
394
    case DATE:
351
      return getLocation();
395
      return Long.valueOf(getDate());
352
 
396
 
353
    case ENTRY_DATE:
397
    case STATUS:
354
      return Long.valueOf(getEntryDate());
398
      return getStatus();
355
 
399
 
356
    case DESCRIPTION:
400
    case DESCRIPTION:
357
      return getDescription();
401
      return getDescription();
358
 
402
 
-
 
403
    case LOCATION:
-
 
404
      return getLocation();
-
 
405
 
359
    }
406
    }
360
    throw new IllegalStateException();
407
    throw new IllegalStateException();
361
  }
408
  }
362
 
409
 
363
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
410
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 367... Line 414...
367
    }
414
    }
368
 
415
 
369
    switch (field) {
416
    switch (field) {
370
    case AWB_NUMBER:
417
    case AWB_NUMBER:
371
      return isSetAwbNumber();
418
      return isSetAwbNumber();
372
    case PROVIDER_NAME:
419
    case PROVIDER_ID:
373
      return isSetProviderName();
420
      return isSetProviderId();
374
    case LOCATION:
421
    case DATE:
375
      return isSetLocation();
422
      return isSetDate();
376
    case ENTRY_DATE:
423
    case STATUS:
377
      return isSetEntryDate();
424
      return isSetStatus();
378
    case DESCRIPTION:
425
    case DESCRIPTION:
379
      return isSetDescription();
426
      return isSetDescription();
-
 
427
    case LOCATION:
-
 
428
      return isSetLocation();
380
    }
429
    }
381
    throw new IllegalStateException();
430
    throw new IllegalStateException();
382
  }
431
  }
383
 
432
 
384
  @Override
433
  @Override
Line 401... Line 450...
401
        return false;
450
        return false;
402
      if (!this.awbNumber.equals(that.awbNumber))
451
      if (!this.awbNumber.equals(that.awbNumber))
403
        return false;
452
        return false;
404
    }
453
    }
405
 
454
 
406
    boolean this_present_providerName = true && this.isSetProviderName();
455
    boolean this_present_providerId = true;
407
    boolean that_present_providerName = true && that.isSetProviderName();
456
    boolean that_present_providerId = true;
408
    if (this_present_providerName || that_present_providerName) {
457
    if (this_present_providerId || that_present_providerId) {
409
      if (!(this_present_providerName && that_present_providerName))
458
      if (!(this_present_providerId && that_present_providerId))
410
        return false;
459
        return false;
411
      if (!this.providerName.equals(that.providerName))
460
      if (this.providerId != that.providerId)
412
        return false;
461
        return false;
413
    }
462
    }
414
 
463
 
415
    boolean this_present_location = true && this.isSetLocation();
464
    boolean this_present_date = true;
416
    boolean that_present_location = true && that.isSetLocation();
465
    boolean that_present_date = true;
417
    if (this_present_location || that_present_location) {
466
    if (this_present_date || that_present_date) {
418
      if (!(this_present_location && that_present_location))
467
      if (!(this_present_date && that_present_date))
419
        return false;
468
        return false;
420
      if (!this.location.equals(that.location))
469
      if (this.date != that.date)
421
        return false;
470
        return false;
422
    }
471
    }
423
 
472
 
424
    boolean this_present_entryDate = true;
473
    boolean this_present_status = true && this.isSetStatus();
425
    boolean that_present_entryDate = true;
474
    boolean that_present_status = true && that.isSetStatus();
426
    if (this_present_entryDate || that_present_entryDate) {
475
    if (this_present_status || that_present_status) {
427
      if (!(this_present_entryDate && that_present_entryDate))
476
      if (!(this_present_status && that_present_status))
428
        return false;
477
        return false;
429
      if (this.entryDate != that.entryDate)
478
      if (!this.status.equals(that.status))
430
        return false;
479
        return false;
431
    }
480
    }
432
 
481
 
433
    boolean this_present_description = true && this.isSetDescription();
482
    boolean this_present_description = true && this.isSetDescription();
434
    boolean that_present_description = true && that.isSetDescription();
483
    boolean that_present_description = true && that.isSetDescription();
Line 437... Line 486...
437
        return false;
486
        return false;
438
      if (!this.description.equals(that.description))
487
      if (!this.description.equals(that.description))
439
        return false;
488
        return false;
440
    }
489
    }
441
 
490
 
-
 
491
    boolean this_present_location = true && this.isSetLocation();
-
 
492
    boolean that_present_location = true && that.isSetLocation();
-
 
493
    if (this_present_location || that_present_location) {
-
 
494
      if (!(this_present_location && that_present_location))
-
 
495
        return false;
-
 
496
      if (!this.location.equals(that.location))
-
 
497
        return false;
-
 
498
    }
-
 
499
 
442
    return true;
500
    return true;
443
  }
501
  }
444
 
502
 
445
  @Override
503
  @Override
446
  public int hashCode() {
504
  public int hashCode() {
Line 463... Line 521...
463
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
521
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
464
      if (lastComparison != 0) {
522
      if (lastComparison != 0) {
465
        return lastComparison;
523
        return lastComparison;
466
      }
524
      }
467
    }
525
    }
468
    lastComparison = Boolean.valueOf(isSetProviderName()).compareTo(typedOther.isSetProviderName());
526
    lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
469
    if (lastComparison != 0) {
527
    if (lastComparison != 0) {
470
      return lastComparison;
528
      return lastComparison;
471
    }
529
    }
472
    if (isSetProviderName()) {
530
    if (isSetProviderId()) {
473
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerName, typedOther.providerName);
531
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
474
      if (lastComparison != 0) {
532
      if (lastComparison != 0) {
475
        return lastComparison;
533
        return lastComparison;
476
      }
534
      }
477
    }
535
    }
478
    lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation());
536
    lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
479
    if (lastComparison != 0) {
537
    if (lastComparison != 0) {
480
      return lastComparison;
538
      return lastComparison;
481
    }
539
    }
482
    if (isSetLocation()) {
540
    if (isSetDate()) {
483
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location);
541
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
484
      if (lastComparison != 0) {
542
      if (lastComparison != 0) {
485
        return lastComparison;
543
        return lastComparison;
486
      }
544
      }
487
    }
545
    }
488
    lastComparison = Boolean.valueOf(isSetEntryDate()).compareTo(typedOther.isSetEntryDate());
546
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
489
    if (lastComparison != 0) {
547
    if (lastComparison != 0) {
490
      return lastComparison;
548
      return lastComparison;
491
    }
549
    }
492
    if (isSetEntryDate()) {
550
    if (isSetStatus()) {
493
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entryDate, typedOther.entryDate);
551
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
494
      if (lastComparison != 0) {
552
      if (lastComparison != 0) {
495
        return lastComparison;
553
        return lastComparison;
496
      }
554
      }
497
    }
555
    }
498
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
556
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
Line 503... Line 561...
503
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
561
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
504
      if (lastComparison != 0) {
562
      if (lastComparison != 0) {
505
        return lastComparison;
563
        return lastComparison;
506
      }
564
      }
507
    }
565
    }
-
 
566
    lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation());
-
 
567
    if (lastComparison != 0) {
-
 
568
      return lastComparison;
-
 
569
    }
-
 
570
    if (isSetLocation()) {
-
 
571
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location);
-
 
572
      if (lastComparison != 0) {
-
 
573
        return lastComparison;
-
 
574
      }
-
 
575
    }
508
    return 0;
576
    return 0;
509
  }
577
  }
510
 
578
 
511
  public _Fields fieldForId(int fieldId) {
579
  public _Fields fieldForId(int fieldId) {
512
    return _Fields.findByThriftId(fieldId);
580
    return _Fields.findByThriftId(fieldId);
Line 527... Line 595...
527
            this.awbNumber = iprot.readString();
595
            this.awbNumber = iprot.readString();
528
          } else { 
596
          } else { 
529
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
597
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
530
          }
598
          }
531
          break;
599
          break;
532
        case 2: // PROVIDER_NAME
600
        case 2: // PROVIDER_ID
533
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
601
          if (field.type == org.apache.thrift.protocol.TType.I64) {
534
            this.providerName = iprot.readString();
602
            this.providerId = iprot.readI64();
-
 
603
            setProviderIdIsSet(true);
535
          } else { 
604
          } else { 
536
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
605
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
537
          }
606
          }
538
          break;
607
          break;
539
        case 3: // LOCATION
608
        case 3: // DATE
540
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
609
          if (field.type == org.apache.thrift.protocol.TType.I64) {
541
            this.location = iprot.readString();
610
            this.date = iprot.readI64();
-
 
611
            setDateIsSet(true);
542
          } else { 
612
          } else { 
543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
613
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
544
          }
614
          }
545
          break;
615
          break;
546
        case 4: // ENTRY_DATE
616
        case 4: // STATUS
547
          if (field.type == org.apache.thrift.protocol.TType.I64) {
617
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
548
            this.entryDate = iprot.readI64();
618
            this.status = iprot.readString();
549
            setEntryDateIsSet(true);
-
 
550
          } else { 
619
          } else { 
551
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
620
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
552
          }
621
          }
553
          break;
622
          break;
554
        case 5: // DESCRIPTION
623
        case 5: // DESCRIPTION
Line 556... Line 625...
556
            this.description = iprot.readString();
625
            this.description = iprot.readString();
557
          } else { 
626
          } else { 
558
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
627
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
559
          }
628
          }
560
          break;
629
          break;
-
 
630
        case 6: // LOCATION
-
 
631
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
632
            this.location = iprot.readString();
-
 
633
          } else { 
-
 
634
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
635
          }
-
 
636
          break;
561
        default:
637
        default:
562
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
638
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
563
      }
639
      }
564
      iprot.readFieldEnd();
640
      iprot.readFieldEnd();
565
    }
641
    }
Line 574... Line 650...
574
    if (this.awbNumber != null) {
650
    if (this.awbNumber != null) {
575
      oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
651
      oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
576
      oprot.writeString(this.awbNumber);
652
      oprot.writeString(this.awbNumber);
577
      oprot.writeFieldEnd();
653
      oprot.writeFieldEnd();
578
    }
654
    }
-
 
655
    oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
579
    if (this.providerName != null) {
656
    oprot.writeI64(this.providerId);
-
 
657
    oprot.writeFieldEnd();
580
      oprot.writeFieldBegin(PROVIDER_NAME_FIELD_DESC);
658
    oprot.writeFieldBegin(DATE_FIELD_DESC);
581
      oprot.writeString(this.providerName);
659
    oprot.writeI64(this.date);
582
      oprot.writeFieldEnd();
660
    oprot.writeFieldEnd();
583
    }
-
 
584
    if (this.location != null) {
661
    if (this.status != null) {
585
      oprot.writeFieldBegin(LOCATION_FIELD_DESC);
662
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
586
      oprot.writeString(this.location);
663
      oprot.writeString(this.status);
587
      oprot.writeFieldEnd();
664
      oprot.writeFieldEnd();
588
    }
665
    }
589
    oprot.writeFieldBegin(ENTRY_DATE_FIELD_DESC);
-
 
590
    oprot.writeI64(this.entryDate);
-
 
591
    oprot.writeFieldEnd();
-
 
592
    if (this.description != null) {
666
    if (this.description != null) {
593
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
667
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
594
      oprot.writeString(this.description);
668
      oprot.writeString(this.description);
595
      oprot.writeFieldEnd();
669
      oprot.writeFieldEnd();
596
    }
670
    }
-
 
671
    if (this.location != null) {
-
 
672
      oprot.writeFieldBegin(LOCATION_FIELD_DESC);
-
 
673
      oprot.writeString(this.location);
-
 
674
      oprot.writeFieldEnd();
-
 
675
    }
597
    oprot.writeFieldStop();
676
    oprot.writeFieldStop();
598
    oprot.writeStructEnd();
677
    oprot.writeStructEnd();
599
  }
678
  }
600
 
679
 
601
  @Override
680
  @Override
Line 609... Line 688...
609
    } else {
688
    } else {
610
      sb.append(this.awbNumber);
689
      sb.append(this.awbNumber);
611
    }
690
    }
612
    first = false;
691
    first = false;
613
    if (!first) sb.append(", ");
692
    if (!first) sb.append(", ");
614
    sb.append("providerName:");
693
    sb.append("providerId:");
615
    if (this.providerName == null) {
-
 
616
      sb.append("null");
-
 
617
    } else {
-
 
618
      sb.append(this.providerName);
694
    sb.append(this.providerId);
619
    }
-
 
620
    first = false;
695
    first = false;
621
    if (!first) sb.append(", ");
696
    if (!first) sb.append(", ");
-
 
697
    sb.append("date:");
-
 
698
    sb.append(this.date);
-
 
699
    first = false;
-
 
700
    if (!first) sb.append(", ");
622
    sb.append("location:");
701
    sb.append("status:");
623
    if (this.location == null) {
702
    if (this.status == null) {
624
      sb.append("null");
703
      sb.append("null");
625
    } else {
704
    } else {
626
      sb.append(this.location);
705
      sb.append(this.status);
627
    }
706
    }
628
    first = false;
707
    first = false;
629
    if (!first) sb.append(", ");
708
    if (!first) sb.append(", ");
630
    sb.append("entryDate:");
-
 
631
    sb.append(this.entryDate);
-
 
632
    first = false;
-
 
633
    if (!first) sb.append(", ");
-
 
634
    sb.append("description:");
709
    sb.append("description:");
635
    if (this.description == null) {
710
    if (this.description == null) {
636
      sb.append("null");
711
      sb.append("null");
637
    } else {
712
    } else {
638
      sb.append(this.description);
713
      sb.append(this.description);
639
    }
714
    }
640
    first = false;
715
    first = false;
-
 
716
    if (!first) sb.append(", ");
-
 
717
    sb.append("location:");
-
 
718
    if (this.location == null) {
-
 
719
      sb.append("null");
-
 
720
    } else {
-
 
721
      sb.append(this.location);
-
 
722
    }
-
 
723
    first = false;
641
    sb.append(")");
724
    sb.append(")");
642
    return sb.toString();
725
    return sb.toString();
643
  }
726
  }
644
 
727
 
645
  public void validate() throws org.apache.thrift.TException {
728
  public void validate() throws org.apache.thrift.TException {