Subversion Repositories SmartDukaan

Rev

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

Rev 7613 Rev 10864
Line 22... Line 22...
22
 
22
 
23
public class InTransitInventory implements org.apache.thrift.TBase<InTransitInventory, InTransitInventory._Fields>, java.io.Serializable, Cloneable {
23
public class InTransitInventory implements org.apache.thrift.TBase<InTransitInventory, InTransitInventory._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InTransitInventory");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InTransitInventory");
25
 
25
 
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
27
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
28
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
29
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
-
 
30
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)5);
27
  private static final org.apache.thrift.protocol.TField ORIGIN_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("originWarehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
31
  private static final org.apache.thrift.protocol.TField ORIGIN_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("originWarehouseId", org.apache.thrift.protocol.TType.I64, (short)6);
28
  private static final org.apache.thrift.protocol.TField DESTINATION_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("destinationWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
32
  private static final org.apache.thrift.protocol.TField DESTINATION_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("destinationWarehouseId", org.apache.thrift.protocol.TType.I64, (short)7);
29
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)4);
33
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)8);
30
  private static final org.apache.thrift.protocol.TField TRANSFER_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferDate", org.apache.thrift.protocol.TType.I64, (short)5);
34
  private static final org.apache.thrift.protocol.TField TRANSFER_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferDate", org.apache.thrift.protocol.TType.I64, (short)9);
31
 
35
 
32
  private long itemId; // required
36
  private long itemId; // required
-
 
37
  private String brand; // required
-
 
38
  private String modelName; // required
-
 
39
  private String modelNumber; // required
-
 
40
  private String color; // required
33
  private long originWarehouseId; // required
41
  private long originWarehouseId; // required
34
  private long destinationWarehouseId; // required
42
  private long destinationWarehouseId; // required
35
  private long quantity; // required
43
  private long quantity; // required
36
  private long transferDate; // required
44
  private long transferDate; // required
37
 
45
 
38
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  /** 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 {
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40
    ITEM_ID((short)1, "itemId"),
48
    ITEM_ID((short)1, "itemId"),
-
 
49
    BRAND((short)2, "brand"),
-
 
50
    MODEL_NAME((short)3, "modelName"),
-
 
51
    MODEL_NUMBER((short)4, "modelNumber"),
-
 
52
    COLOR((short)5, "color"),
41
    ORIGIN_WAREHOUSE_ID((short)2, "originWarehouseId"),
53
    ORIGIN_WAREHOUSE_ID((short)6, "originWarehouseId"),
42
    DESTINATION_WAREHOUSE_ID((short)3, "destinationWarehouseId"),
54
    DESTINATION_WAREHOUSE_ID((short)7, "destinationWarehouseId"),
43
    QUANTITY((short)4, "quantity"),
55
    QUANTITY((short)8, "quantity"),
44
    TRANSFER_DATE((short)5, "transferDate");
56
    TRANSFER_DATE((short)9, "transferDate");
45
 
57
 
46
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47
 
59
 
48
    static {
60
    static {
49
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
61
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 56... Line 68...
56
     */
68
     */
57
    public static _Fields findByThriftId(int fieldId) {
69
    public static _Fields findByThriftId(int fieldId) {
58
      switch(fieldId) {
70
      switch(fieldId) {
59
        case 1: // ITEM_ID
71
        case 1: // ITEM_ID
60
          return ITEM_ID;
72
          return ITEM_ID;
-
 
73
        case 2: // BRAND
-
 
74
          return BRAND;
-
 
75
        case 3: // MODEL_NAME
-
 
76
          return MODEL_NAME;
-
 
77
        case 4: // MODEL_NUMBER
-
 
78
          return MODEL_NUMBER;
-
 
79
        case 5: // COLOR
-
 
80
          return COLOR;
61
        case 2: // ORIGIN_WAREHOUSE_ID
81
        case 6: // ORIGIN_WAREHOUSE_ID
62
          return ORIGIN_WAREHOUSE_ID;
82
          return ORIGIN_WAREHOUSE_ID;
63
        case 3: // DESTINATION_WAREHOUSE_ID
83
        case 7: // DESTINATION_WAREHOUSE_ID
64
          return DESTINATION_WAREHOUSE_ID;
84
          return DESTINATION_WAREHOUSE_ID;
65
        case 4: // QUANTITY
85
        case 8: // QUANTITY
66
          return QUANTITY;
86
          return QUANTITY;
67
        case 5: // TRANSFER_DATE
87
        case 9: // TRANSFER_DATE
68
          return TRANSFER_DATE;
88
          return TRANSFER_DATE;
69
        default:
89
        default:
70
          return null;
90
          return null;
71
      }
91
      }
72
    }
92
    }
Line 116... Line 136...
116
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
136
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
117
  static {
137
  static {
118
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
138
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
119
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
139
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
120
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
140
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
141
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
142
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
143
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
144
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
145
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
146
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
147
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
148
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
121
    tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
149
    tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
122
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
150
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
123
    tmpMap.put(_Fields.DESTINATION_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("destinationWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
151
    tmpMap.put(_Fields.DESTINATION_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("destinationWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
124
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
152
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
125
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
153
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 133... Line 161...
133
  public InTransitInventory() {
161
  public InTransitInventory() {
134
  }
162
  }
135
 
163
 
136
  public InTransitInventory(
164
  public InTransitInventory(
137
    long itemId,
165
    long itemId,
-
 
166
    String brand,
-
 
167
    String modelName,
-
 
168
    String modelNumber,
-
 
169
    String color,
138
    long originWarehouseId,
170
    long originWarehouseId,
139
    long destinationWarehouseId,
171
    long destinationWarehouseId,
140
    long quantity,
172
    long quantity,
141
    long transferDate)
173
    long transferDate)
142
  {
174
  {
143
    this();
175
    this();
144
    this.itemId = itemId;
176
    this.itemId = itemId;
145
    setItemIdIsSet(true);
177
    setItemIdIsSet(true);
-
 
178
    this.brand = brand;
-
 
179
    this.modelName = modelName;
-
 
180
    this.modelNumber = modelNumber;
-
 
181
    this.color = color;
146
    this.originWarehouseId = originWarehouseId;
182
    this.originWarehouseId = originWarehouseId;
147
    setOriginWarehouseIdIsSet(true);
183
    setOriginWarehouseIdIsSet(true);
148
    this.destinationWarehouseId = destinationWarehouseId;
184
    this.destinationWarehouseId = destinationWarehouseId;
149
    setDestinationWarehouseIdIsSet(true);
185
    setDestinationWarehouseIdIsSet(true);
150
    this.quantity = quantity;
186
    this.quantity = quantity;
Line 158... Line 194...
158
   */
194
   */
159
  public InTransitInventory(InTransitInventory other) {
195
  public InTransitInventory(InTransitInventory other) {
160
    __isset_bit_vector.clear();
196
    __isset_bit_vector.clear();
161
    __isset_bit_vector.or(other.__isset_bit_vector);
197
    __isset_bit_vector.or(other.__isset_bit_vector);
162
    this.itemId = other.itemId;
198
    this.itemId = other.itemId;
-
 
199
    if (other.isSetBrand()) {
-
 
200
      this.brand = other.brand;
-
 
201
    }
-
 
202
    if (other.isSetModelName()) {
-
 
203
      this.modelName = other.modelName;
-
 
204
    }
-
 
205
    if (other.isSetModelNumber()) {
-
 
206
      this.modelNumber = other.modelNumber;
-
 
207
    }
-
 
208
    if (other.isSetColor()) {
-
 
209
      this.color = other.color;
-
 
210
    }
163
    this.originWarehouseId = other.originWarehouseId;
211
    this.originWarehouseId = other.originWarehouseId;
164
    this.destinationWarehouseId = other.destinationWarehouseId;
212
    this.destinationWarehouseId = other.destinationWarehouseId;
165
    this.quantity = other.quantity;
213
    this.quantity = other.quantity;
166
    this.transferDate = other.transferDate;
214
    this.transferDate = other.transferDate;
167
  }
215
  }
Line 172... Line 220...
172
 
220
 
173
  @Override
221
  @Override
174
  public void clear() {
222
  public void clear() {
175
    setItemIdIsSet(false);
223
    setItemIdIsSet(false);
176
    this.itemId = 0;
224
    this.itemId = 0;
-
 
225
    this.brand = null;
-
 
226
    this.modelName = null;
-
 
227
    this.modelNumber = null;
-
 
228
    this.color = null;
177
    setOriginWarehouseIdIsSet(false);
229
    setOriginWarehouseIdIsSet(false);
178
    this.originWarehouseId = 0;
230
    this.originWarehouseId = 0;
179
    setDestinationWarehouseIdIsSet(false);
231
    setDestinationWarehouseIdIsSet(false);
180
    this.destinationWarehouseId = 0;
232
    this.destinationWarehouseId = 0;
181
    setQuantityIsSet(false);
233
    setQuantityIsSet(false);
Line 204... Line 256...
204
 
256
 
205
  public void setItemIdIsSet(boolean value) {
257
  public void setItemIdIsSet(boolean value) {
206
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
258
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
207
  }
259
  }
208
 
260
 
-
 
261
  public String getBrand() {
-
 
262
    return this.brand;
-
 
263
  }
-
 
264
 
-
 
265
  public void setBrand(String brand) {
-
 
266
    this.brand = brand;
-
 
267
  }
-
 
268
 
-
 
269
  public void unsetBrand() {
-
 
270
    this.brand = null;
-
 
271
  }
-
 
272
 
-
 
273
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
-
 
274
  public boolean isSetBrand() {
-
 
275
    return this.brand != null;
-
 
276
  }
-
 
277
 
-
 
278
  public void setBrandIsSet(boolean value) {
-
 
279
    if (!value) {
-
 
280
      this.brand = null;
-
 
281
    }
-
 
282
  }
-
 
283
 
-
 
284
  public String getModelName() {
-
 
285
    return this.modelName;
-
 
286
  }
-
 
287
 
-
 
288
  public void setModelName(String modelName) {
-
 
289
    this.modelName = modelName;
-
 
290
  }
-
 
291
 
-
 
292
  public void unsetModelName() {
-
 
293
    this.modelName = null;
-
 
294
  }
-
 
295
 
-
 
296
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
-
 
297
  public boolean isSetModelName() {
-
 
298
    return this.modelName != null;
-
 
299
  }
-
 
300
 
-
 
301
  public void setModelNameIsSet(boolean value) {
-
 
302
    if (!value) {
-
 
303
      this.modelName = null;
-
 
304
    }
-
 
305
  }
-
 
306
 
-
 
307
  public String getModelNumber() {
-
 
308
    return this.modelNumber;
-
 
309
  }
-
 
310
 
-
 
311
  public void setModelNumber(String modelNumber) {
-
 
312
    this.modelNumber = modelNumber;
-
 
313
  }
-
 
314
 
-
 
315
  public void unsetModelNumber() {
-
 
316
    this.modelNumber = null;
-
 
317
  }
-
 
318
 
-
 
319
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
-
 
320
  public boolean isSetModelNumber() {
-
 
321
    return this.modelNumber != null;
-
 
322
  }
-
 
323
 
-
 
324
  public void setModelNumberIsSet(boolean value) {
-
 
325
    if (!value) {
-
 
326
      this.modelNumber = null;
-
 
327
    }
-
 
328
  }
-
 
329
 
-
 
330
  public String getColor() {
-
 
331
    return this.color;
-
 
332
  }
-
 
333
 
-
 
334
  public void setColor(String color) {
-
 
335
    this.color = color;
-
 
336
  }
-
 
337
 
-
 
338
  public void unsetColor() {
-
 
339
    this.color = null;
-
 
340
  }
-
 
341
 
-
 
342
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
-
 
343
  public boolean isSetColor() {
-
 
344
    return this.color != null;
-
 
345
  }
-
 
346
 
-
 
347
  public void setColorIsSet(boolean value) {
-
 
348
    if (!value) {
-
 
349
      this.color = null;
-
 
350
    }
-
 
351
  }
-
 
352
 
209
  public long getOriginWarehouseId() {
353
  public long getOriginWarehouseId() {
210
    return this.originWarehouseId;
354
    return this.originWarehouseId;
211
  }
355
  }
212
 
356
 
213
  public void setOriginWarehouseId(long originWarehouseId) {
357
  public void setOriginWarehouseId(long originWarehouseId) {
Line 302... Line 446...
302
      } else {
446
      } else {
303
        setItemId((Long)value);
447
        setItemId((Long)value);
304
      }
448
      }
305
      break;
449
      break;
306
 
450
 
-
 
451
    case BRAND:
-
 
452
      if (value == null) {
-
 
453
        unsetBrand();
-
 
454
      } else {
-
 
455
        setBrand((String)value);
-
 
456
      }
-
 
457
      break;
-
 
458
 
-
 
459
    case MODEL_NAME:
-
 
460
      if (value == null) {
-
 
461
        unsetModelName();
-
 
462
      } else {
-
 
463
        setModelName((String)value);
-
 
464
      }
-
 
465
      break;
-
 
466
 
-
 
467
    case MODEL_NUMBER:
-
 
468
      if (value == null) {
-
 
469
        unsetModelNumber();
-
 
470
      } else {
-
 
471
        setModelNumber((String)value);
-
 
472
      }
-
 
473
      break;
-
 
474
 
-
 
475
    case COLOR:
-
 
476
      if (value == null) {
-
 
477
        unsetColor();
-
 
478
      } else {
-
 
479
        setColor((String)value);
-
 
480
      }
-
 
481
      break;
-
 
482
 
307
    case ORIGIN_WAREHOUSE_ID:
483
    case ORIGIN_WAREHOUSE_ID:
308
      if (value == null) {
484
      if (value == null) {
309
        unsetOriginWarehouseId();
485
        unsetOriginWarehouseId();
310
      } else {
486
      } else {
311
        setOriginWarehouseId((Long)value);
487
        setOriginWarehouseId((Long)value);
Line 342... Line 518...
342
  public Object getFieldValue(_Fields field) {
518
  public Object getFieldValue(_Fields field) {
343
    switch (field) {
519
    switch (field) {
344
    case ITEM_ID:
520
    case ITEM_ID:
345
      return Long.valueOf(getItemId());
521
      return Long.valueOf(getItemId());
346
 
522
 
-
 
523
    case BRAND:
-
 
524
      return getBrand();
-
 
525
 
-
 
526
    case MODEL_NAME:
-
 
527
      return getModelName();
-
 
528
 
-
 
529
    case MODEL_NUMBER:
-
 
530
      return getModelNumber();
-
 
531
 
-
 
532
    case COLOR:
-
 
533
      return getColor();
-
 
534
 
347
    case ORIGIN_WAREHOUSE_ID:
535
    case ORIGIN_WAREHOUSE_ID:
348
      return Long.valueOf(getOriginWarehouseId());
536
      return Long.valueOf(getOriginWarehouseId());
349
 
537
 
350
    case DESTINATION_WAREHOUSE_ID:
538
    case DESTINATION_WAREHOUSE_ID:
351
      return Long.valueOf(getDestinationWarehouseId());
539
      return Long.valueOf(getDestinationWarehouseId());
Line 367... Line 555...
367
    }
555
    }
368
 
556
 
369
    switch (field) {
557
    switch (field) {
370
    case ITEM_ID:
558
    case ITEM_ID:
371
      return isSetItemId();
559
      return isSetItemId();
-
 
560
    case BRAND:
-
 
561
      return isSetBrand();
-
 
562
    case MODEL_NAME:
-
 
563
      return isSetModelName();
-
 
564
    case MODEL_NUMBER:
-
 
565
      return isSetModelNumber();
-
 
566
    case COLOR:
-
 
567
      return isSetColor();
372
    case ORIGIN_WAREHOUSE_ID:
568
    case ORIGIN_WAREHOUSE_ID:
373
      return isSetOriginWarehouseId();
569
      return isSetOriginWarehouseId();
374
    case DESTINATION_WAREHOUSE_ID:
570
    case DESTINATION_WAREHOUSE_ID:
375
      return isSetDestinationWarehouseId();
571
      return isSetDestinationWarehouseId();
376
    case QUANTITY:
572
    case QUANTITY:
Line 401... Line 597...
401
        return false;
597
        return false;
402
      if (this.itemId != that.itemId)
598
      if (this.itemId != that.itemId)
403
        return false;
599
        return false;
404
    }
600
    }
405
 
601
 
-
 
602
    boolean this_present_brand = true && this.isSetBrand();
-
 
603
    boolean that_present_brand = true && that.isSetBrand();
-
 
604
    if (this_present_brand || that_present_brand) {
-
 
605
      if (!(this_present_brand && that_present_brand))
-
 
606
        return false;
-
 
607
      if (!this.brand.equals(that.brand))
-
 
608
        return false;
-
 
609
    }
-
 
610
 
-
 
611
    boolean this_present_modelName = true && this.isSetModelName();
-
 
612
    boolean that_present_modelName = true && that.isSetModelName();
-
 
613
    if (this_present_modelName || that_present_modelName) {
-
 
614
      if (!(this_present_modelName && that_present_modelName))
-
 
615
        return false;
-
 
616
      if (!this.modelName.equals(that.modelName))
-
 
617
        return false;
-
 
618
    }
-
 
619
 
-
 
620
    boolean this_present_modelNumber = true && this.isSetModelNumber();
-
 
621
    boolean that_present_modelNumber = true && that.isSetModelNumber();
-
 
622
    if (this_present_modelNumber || that_present_modelNumber) {
-
 
623
      if (!(this_present_modelNumber && that_present_modelNumber))
-
 
624
        return false;
-
 
625
      if (!this.modelNumber.equals(that.modelNumber))
-
 
626
        return false;
-
 
627
    }
-
 
628
 
-
 
629
    boolean this_present_color = true && this.isSetColor();
-
 
630
    boolean that_present_color = true && that.isSetColor();
-
 
631
    if (this_present_color || that_present_color) {
-
 
632
      if (!(this_present_color && that_present_color))
-
 
633
        return false;
-
 
634
      if (!this.color.equals(that.color))
-
 
635
        return false;
-
 
636
    }
-
 
637
 
406
    boolean this_present_originWarehouseId = true;
638
    boolean this_present_originWarehouseId = true;
407
    boolean that_present_originWarehouseId = true;
639
    boolean that_present_originWarehouseId = true;
408
    if (this_present_originWarehouseId || that_present_originWarehouseId) {
640
    if (this_present_originWarehouseId || that_present_originWarehouseId) {
409
      if (!(this_present_originWarehouseId && that_present_originWarehouseId))
641
      if (!(this_present_originWarehouseId && that_present_originWarehouseId))
410
        return false;
642
        return false;
Line 463... Line 695...
463
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
695
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
464
      if (lastComparison != 0) {
696
      if (lastComparison != 0) {
465
        return lastComparison;
697
        return lastComparison;
466
      }
698
      }
467
    }
699
    }
-
 
700
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
-
 
701
    if (lastComparison != 0) {
-
 
702
      return lastComparison;
-
 
703
    }
-
 
704
    if (isSetBrand()) {
-
 
705
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
-
 
706
      if (lastComparison != 0) {
-
 
707
        return lastComparison;
-
 
708
      }
-
 
709
    }
-
 
710
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
-
 
711
    if (lastComparison != 0) {
-
 
712
      return lastComparison;
-
 
713
    }
-
 
714
    if (isSetModelName()) {
-
 
715
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
-
 
716
      if (lastComparison != 0) {
-
 
717
        return lastComparison;
-
 
718
      }
-
 
719
    }
-
 
720
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
-
 
721
    if (lastComparison != 0) {
-
 
722
      return lastComparison;
-
 
723
    }
-
 
724
    if (isSetModelNumber()) {
-
 
725
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
-
 
726
      if (lastComparison != 0) {
-
 
727
        return lastComparison;
-
 
728
      }
-
 
729
    }
-
 
730
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
-
 
731
    if (lastComparison != 0) {
-
 
732
      return lastComparison;
-
 
733
    }
-
 
734
    if (isSetColor()) {
-
 
735
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
-
 
736
      if (lastComparison != 0) {
-
 
737
        return lastComparison;
-
 
738
      }
-
 
739
    }
468
    lastComparison = Boolean.valueOf(isSetOriginWarehouseId()).compareTo(typedOther.isSetOriginWarehouseId());
740
    lastComparison = Boolean.valueOf(isSetOriginWarehouseId()).compareTo(typedOther.isSetOriginWarehouseId());
469
    if (lastComparison != 0) {
741
    if (lastComparison != 0) {
470
      return lastComparison;
742
      return lastComparison;
471
    }
743
    }
472
    if (isSetOriginWarehouseId()) {
744
    if (isSetOriginWarehouseId()) {
Line 528... Line 800...
528
            setItemIdIsSet(true);
800
            setItemIdIsSet(true);
529
          } else { 
801
          } else { 
530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
802
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
531
          }
803
          }
532
          break;
804
          break;
-
 
805
        case 2: // BRAND
-
 
806
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
807
            this.brand = iprot.readString();
-
 
808
          } else { 
-
 
809
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
810
          }
-
 
811
          break;
-
 
812
        case 3: // MODEL_NAME
-
 
813
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
814
            this.modelName = iprot.readString();
-
 
815
          } else { 
-
 
816
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
817
          }
-
 
818
          break;
-
 
819
        case 4: // MODEL_NUMBER
-
 
820
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
821
            this.modelNumber = iprot.readString();
-
 
822
          } else { 
-
 
823
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
824
          }
-
 
825
          break;
-
 
826
        case 5: // COLOR
-
 
827
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
828
            this.color = iprot.readString();
-
 
829
          } else { 
-
 
830
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
831
          }
-
 
832
          break;
533
        case 2: // ORIGIN_WAREHOUSE_ID
833
        case 6: // ORIGIN_WAREHOUSE_ID
534
          if (field.type == org.apache.thrift.protocol.TType.I64) {
834
          if (field.type == org.apache.thrift.protocol.TType.I64) {
535
            this.originWarehouseId = iprot.readI64();
835
            this.originWarehouseId = iprot.readI64();
536
            setOriginWarehouseIdIsSet(true);
836
            setOriginWarehouseIdIsSet(true);
537
          } else { 
837
          } else { 
538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
838
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
539
          }
839
          }
540
          break;
840
          break;
541
        case 3: // DESTINATION_WAREHOUSE_ID
841
        case 7: // DESTINATION_WAREHOUSE_ID
542
          if (field.type == org.apache.thrift.protocol.TType.I64) {
842
          if (field.type == org.apache.thrift.protocol.TType.I64) {
543
            this.destinationWarehouseId = iprot.readI64();
843
            this.destinationWarehouseId = iprot.readI64();
544
            setDestinationWarehouseIdIsSet(true);
844
            setDestinationWarehouseIdIsSet(true);
545
          } else { 
845
          } else { 
546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
846
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
547
          }
847
          }
548
          break;
848
          break;
549
        case 4: // QUANTITY
849
        case 8: // QUANTITY
550
          if (field.type == org.apache.thrift.protocol.TType.I64) {
850
          if (field.type == org.apache.thrift.protocol.TType.I64) {
551
            this.quantity = iprot.readI64();
851
            this.quantity = iprot.readI64();
552
            setQuantityIsSet(true);
852
            setQuantityIsSet(true);
553
          } else { 
853
          } else { 
554
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
854
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
555
          }
855
          }
556
          break;
856
          break;
557
        case 5: // TRANSFER_DATE
857
        case 9: // TRANSFER_DATE
558
          if (field.type == org.apache.thrift.protocol.TType.I64) {
858
          if (field.type == org.apache.thrift.protocol.TType.I64) {
559
            this.transferDate = iprot.readI64();
859
            this.transferDate = iprot.readI64();
560
            setTransferDateIsSet(true);
860
            setTransferDateIsSet(true);
561
          } else { 
861
          } else { 
562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
862
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 576... Line 876...
576
 
876
 
577
    oprot.writeStructBegin(STRUCT_DESC);
877
    oprot.writeStructBegin(STRUCT_DESC);
578
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
878
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
579
    oprot.writeI64(this.itemId);
879
    oprot.writeI64(this.itemId);
580
    oprot.writeFieldEnd();
880
    oprot.writeFieldEnd();
-
 
881
    if (this.brand != null) {
-
 
882
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
-
 
883
      oprot.writeString(this.brand);
-
 
884
      oprot.writeFieldEnd();
-
 
885
    }
-
 
886
    if (this.modelName != null) {
-
 
887
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
-
 
888
      oprot.writeString(this.modelName);
-
 
889
      oprot.writeFieldEnd();
-
 
890
    }
-
 
891
    if (this.modelNumber != null) {
-
 
892
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
-
 
893
      oprot.writeString(this.modelNumber);
-
 
894
      oprot.writeFieldEnd();
-
 
895
    }
-
 
896
    if (this.color != null) {
-
 
897
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
-
 
898
      oprot.writeString(this.color);
-
 
899
      oprot.writeFieldEnd();
-
 
900
    }
581
    oprot.writeFieldBegin(ORIGIN_WAREHOUSE_ID_FIELD_DESC);
901
    oprot.writeFieldBegin(ORIGIN_WAREHOUSE_ID_FIELD_DESC);
582
    oprot.writeI64(this.originWarehouseId);
902
    oprot.writeI64(this.originWarehouseId);
583
    oprot.writeFieldEnd();
903
    oprot.writeFieldEnd();
584
    oprot.writeFieldBegin(DESTINATION_WAREHOUSE_ID_FIELD_DESC);
904
    oprot.writeFieldBegin(DESTINATION_WAREHOUSE_ID_FIELD_DESC);
585
    oprot.writeI64(this.destinationWarehouseId);
905
    oprot.writeI64(this.destinationWarehouseId);
Line 601... Line 921...
601
 
921
 
602
    sb.append("itemId:");
922
    sb.append("itemId:");
603
    sb.append(this.itemId);
923
    sb.append(this.itemId);
604
    first = false;
924
    first = false;
605
    if (!first) sb.append(", ");
925
    if (!first) sb.append(", ");
-
 
926
    sb.append("brand:");
-
 
927
    if (this.brand == null) {
-
 
928
      sb.append("null");
-
 
929
    } else {
-
 
930
      sb.append(this.brand);
-
 
931
    }
-
 
932
    first = false;
-
 
933
    if (!first) sb.append(", ");
-
 
934
    sb.append("modelName:");
-
 
935
    if (this.modelName == null) {
-
 
936
      sb.append("null");
-
 
937
    } else {
-
 
938
      sb.append(this.modelName);
-
 
939
    }
-
 
940
    first = false;
-
 
941
    if (!first) sb.append(", ");
-
 
942
    sb.append("modelNumber:");
-
 
943
    if (this.modelNumber == null) {
-
 
944
      sb.append("null");
-
 
945
    } else {
-
 
946
      sb.append(this.modelNumber);
-
 
947
    }
-
 
948
    first = false;
-
 
949
    if (!first) sb.append(", ");
-
 
950
    sb.append("color:");
-
 
951
    if (this.color == null) {
-
 
952
      sb.append("null");
-
 
953
    } else {
-
 
954
      sb.append(this.color);
-
 
955
    }
-
 
956
    first = false;
-
 
957
    if (!first) sb.append(", ");
606
    sb.append("originWarehouseId:");
958
    sb.append("originWarehouseId:");
607
    sb.append(this.originWarehouseId);
959
    sb.append(this.originWarehouseId);
608
    first = false;
960
    first = false;
609
    if (!first) sb.append(", ");
961
    if (!first) sb.append(", ");
610
    sb.append("destinationWarehouseId:");
962
    sb.append("destinationWarehouseId:");