Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7613 amar.kumar 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.warehouse;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
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");
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);
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);
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);
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);
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);
31
 
32
  private long itemId; // required
33
  private long originWarehouseId; // required
34
  private long destinationWarehouseId; // required
35
  private long quantity; // required
36
  private long transferDate; // required
37
 
38
  /** 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 {
40
    ITEM_ID((short)1, "itemId"),
41
    ORIGIN_WAREHOUSE_ID((short)2, "originWarehouseId"),
42
    DESTINATION_WAREHOUSE_ID((short)3, "destinationWarehouseId"),
43
    QUANTITY((short)4, "quantity"),
44
    TRANSFER_DATE((short)5, "transferDate");
45
 
46
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47
 
48
    static {
49
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
50
        byName.put(field.getFieldName(), field);
51
      }
52
    }
53
 
54
    /**
55
     * Find the _Fields constant that matches fieldId, or null if its not found.
56
     */
57
    public static _Fields findByThriftId(int fieldId) {
58
      switch(fieldId) {
59
        case 1: // ITEM_ID
60
          return ITEM_ID;
61
        case 2: // ORIGIN_WAREHOUSE_ID
62
          return ORIGIN_WAREHOUSE_ID;
63
        case 3: // DESTINATION_WAREHOUSE_ID
64
          return DESTINATION_WAREHOUSE_ID;
65
        case 4: // QUANTITY
66
          return QUANTITY;
67
        case 5: // TRANSFER_DATE
68
          return TRANSFER_DATE;
69
        default:
70
          return null;
71
      }
72
    }
73
 
74
    /**
75
     * Find the _Fields constant that matches fieldId, throwing an exception
76
     * if it is not found.
77
     */
78
    public static _Fields findByThriftIdOrThrow(int fieldId) {
79
      _Fields fields = findByThriftId(fieldId);
80
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
81
      return fields;
82
    }
83
 
84
    /**
85
     * Find the _Fields constant that matches name, or null if its not found.
86
     */
87
    public static _Fields findByName(String name) {
88
      return byName.get(name);
89
    }
90
 
91
    private final short _thriftId;
92
    private final String _fieldName;
93
 
94
    _Fields(short thriftId, String fieldName) {
95
      _thriftId = thriftId;
96
      _fieldName = fieldName;
97
    }
98
 
99
    public short getThriftFieldId() {
100
      return _thriftId;
101
    }
102
 
103
    public String getFieldName() {
104
      return _fieldName;
105
    }
106
  }
107
 
108
  // isset id assignments
109
  private static final int __ITEMID_ISSET_ID = 0;
110
  private static final int __ORIGINWAREHOUSEID_ISSET_ID = 1;
111
  private static final int __DESTINATIONWAREHOUSEID_ISSET_ID = 2;
112
  private static final int __QUANTITY_ISSET_ID = 3;
113
  private static final int __TRANSFERDATE_ISSET_ID = 4;
114
  private BitSet __isset_bit_vector = new BitSet(5);
115
 
116
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
117
  static {
118
    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, 
120
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
121
    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)));
123
    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)));
125
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
126
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
127
    tmpMap.put(_Fields.TRANSFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("transferDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
128
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
129
    metaDataMap = Collections.unmodifiableMap(tmpMap);
130
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InTransitInventory.class, metaDataMap);
131
  }
132
 
133
  public InTransitInventory() {
134
  }
135
 
136
  public InTransitInventory(
137
    long itemId,
138
    long originWarehouseId,
139
    long destinationWarehouseId,
140
    long quantity,
141
    long transferDate)
142
  {
143
    this();
144
    this.itemId = itemId;
145
    setItemIdIsSet(true);
146
    this.originWarehouseId = originWarehouseId;
147
    setOriginWarehouseIdIsSet(true);
148
    this.destinationWarehouseId = destinationWarehouseId;
149
    setDestinationWarehouseIdIsSet(true);
150
    this.quantity = quantity;
151
    setQuantityIsSet(true);
152
    this.transferDate = transferDate;
153
    setTransferDateIsSet(true);
154
  }
155
 
156
  /**
157
   * Performs a deep copy on <i>other</i>.
158
   */
159
  public InTransitInventory(InTransitInventory other) {
160
    __isset_bit_vector.clear();
161
    __isset_bit_vector.or(other.__isset_bit_vector);
162
    this.itemId = other.itemId;
163
    this.originWarehouseId = other.originWarehouseId;
164
    this.destinationWarehouseId = other.destinationWarehouseId;
165
    this.quantity = other.quantity;
166
    this.transferDate = other.transferDate;
167
  }
168
 
169
  public InTransitInventory deepCopy() {
170
    return new InTransitInventory(this);
171
  }
172
 
173
  @Override
174
  public void clear() {
175
    setItemIdIsSet(false);
176
    this.itemId = 0;
177
    setOriginWarehouseIdIsSet(false);
178
    this.originWarehouseId = 0;
179
    setDestinationWarehouseIdIsSet(false);
180
    this.destinationWarehouseId = 0;
181
    setQuantityIsSet(false);
182
    this.quantity = 0;
183
    setTransferDateIsSet(false);
184
    this.transferDate = 0;
185
  }
186
 
187
  public long getItemId() {
188
    return this.itemId;
189
  }
190
 
191
  public void setItemId(long itemId) {
192
    this.itemId = itemId;
193
    setItemIdIsSet(true);
194
  }
195
 
196
  public void unsetItemId() {
197
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
198
  }
199
 
200
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
201
  public boolean isSetItemId() {
202
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
203
  }
204
 
205
  public void setItemIdIsSet(boolean value) {
206
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
207
  }
208
 
209
  public long getOriginWarehouseId() {
210
    return this.originWarehouseId;
211
  }
212
 
213
  public void setOriginWarehouseId(long originWarehouseId) {
214
    this.originWarehouseId = originWarehouseId;
215
    setOriginWarehouseIdIsSet(true);
216
  }
217
 
218
  public void unsetOriginWarehouseId() {
219
    __isset_bit_vector.clear(__ORIGINWAREHOUSEID_ISSET_ID);
220
  }
221
 
222
  /** Returns true if field originWarehouseId is set (has been assigned a value) and false otherwise */
223
  public boolean isSetOriginWarehouseId() {
224
    return __isset_bit_vector.get(__ORIGINWAREHOUSEID_ISSET_ID);
225
  }
226
 
227
  public void setOriginWarehouseIdIsSet(boolean value) {
228
    __isset_bit_vector.set(__ORIGINWAREHOUSEID_ISSET_ID, value);
229
  }
230
 
231
  public long getDestinationWarehouseId() {
232
    return this.destinationWarehouseId;
233
  }
234
 
235
  public void setDestinationWarehouseId(long destinationWarehouseId) {
236
    this.destinationWarehouseId = destinationWarehouseId;
237
    setDestinationWarehouseIdIsSet(true);
238
  }
239
 
240
  public void unsetDestinationWarehouseId() {
241
    __isset_bit_vector.clear(__DESTINATIONWAREHOUSEID_ISSET_ID);
242
  }
243
 
244
  /** Returns true if field destinationWarehouseId is set (has been assigned a value) and false otherwise */
245
  public boolean isSetDestinationWarehouseId() {
246
    return __isset_bit_vector.get(__DESTINATIONWAREHOUSEID_ISSET_ID);
247
  }
248
 
249
  public void setDestinationWarehouseIdIsSet(boolean value) {
250
    __isset_bit_vector.set(__DESTINATIONWAREHOUSEID_ISSET_ID, value);
251
  }
252
 
253
  public long getQuantity() {
254
    return this.quantity;
255
  }
256
 
257
  public void setQuantity(long quantity) {
258
    this.quantity = quantity;
259
    setQuantityIsSet(true);
260
  }
261
 
262
  public void unsetQuantity() {
263
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
264
  }
265
 
266
  /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
267
  public boolean isSetQuantity() {
268
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
269
  }
270
 
271
  public void setQuantityIsSet(boolean value) {
272
    __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
273
  }
274
 
275
  public long getTransferDate() {
276
    return this.transferDate;
277
  }
278
 
279
  public void setTransferDate(long transferDate) {
280
    this.transferDate = transferDate;
281
    setTransferDateIsSet(true);
282
  }
283
 
284
  public void unsetTransferDate() {
285
    __isset_bit_vector.clear(__TRANSFERDATE_ISSET_ID);
286
  }
287
 
288
  /** Returns true if field transferDate is set (has been assigned a value) and false otherwise */
289
  public boolean isSetTransferDate() {
290
    return __isset_bit_vector.get(__TRANSFERDATE_ISSET_ID);
291
  }
292
 
293
  public void setTransferDateIsSet(boolean value) {
294
    __isset_bit_vector.set(__TRANSFERDATE_ISSET_ID, value);
295
  }
296
 
297
  public void setFieldValue(_Fields field, Object value) {
298
    switch (field) {
299
    case ITEM_ID:
300
      if (value == null) {
301
        unsetItemId();
302
      } else {
303
        setItemId((Long)value);
304
      }
305
      break;
306
 
307
    case ORIGIN_WAREHOUSE_ID:
308
      if (value == null) {
309
        unsetOriginWarehouseId();
310
      } else {
311
        setOriginWarehouseId((Long)value);
312
      }
313
      break;
314
 
315
    case DESTINATION_WAREHOUSE_ID:
316
      if (value == null) {
317
        unsetDestinationWarehouseId();
318
      } else {
319
        setDestinationWarehouseId((Long)value);
320
      }
321
      break;
322
 
323
    case QUANTITY:
324
      if (value == null) {
325
        unsetQuantity();
326
      } else {
327
        setQuantity((Long)value);
328
      }
329
      break;
330
 
331
    case TRANSFER_DATE:
332
      if (value == null) {
333
        unsetTransferDate();
334
      } else {
335
        setTransferDate((Long)value);
336
      }
337
      break;
338
 
339
    }
340
  }
341
 
342
  public Object getFieldValue(_Fields field) {
343
    switch (field) {
344
    case ITEM_ID:
345
      return Long.valueOf(getItemId());
346
 
347
    case ORIGIN_WAREHOUSE_ID:
348
      return Long.valueOf(getOriginWarehouseId());
349
 
350
    case DESTINATION_WAREHOUSE_ID:
351
      return Long.valueOf(getDestinationWarehouseId());
352
 
353
    case QUANTITY:
354
      return Long.valueOf(getQuantity());
355
 
356
    case TRANSFER_DATE:
357
      return Long.valueOf(getTransferDate());
358
 
359
    }
360
    throw new IllegalStateException();
361
  }
362
 
363
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
364
  public boolean isSet(_Fields field) {
365
    if (field == null) {
366
      throw new IllegalArgumentException();
367
    }
368
 
369
    switch (field) {
370
    case ITEM_ID:
371
      return isSetItemId();
372
    case ORIGIN_WAREHOUSE_ID:
373
      return isSetOriginWarehouseId();
374
    case DESTINATION_WAREHOUSE_ID:
375
      return isSetDestinationWarehouseId();
376
    case QUANTITY:
377
      return isSetQuantity();
378
    case TRANSFER_DATE:
379
      return isSetTransferDate();
380
    }
381
    throw new IllegalStateException();
382
  }
383
 
384
  @Override
385
  public boolean equals(Object that) {
386
    if (that == null)
387
      return false;
388
    if (that instanceof InTransitInventory)
389
      return this.equals((InTransitInventory)that);
390
    return false;
391
  }
392
 
393
  public boolean equals(InTransitInventory that) {
394
    if (that == null)
395
      return false;
396
 
397
    boolean this_present_itemId = true;
398
    boolean that_present_itemId = true;
399
    if (this_present_itemId || that_present_itemId) {
400
      if (!(this_present_itemId && that_present_itemId))
401
        return false;
402
      if (this.itemId != that.itemId)
403
        return false;
404
    }
405
 
406
    boolean this_present_originWarehouseId = true;
407
    boolean that_present_originWarehouseId = true;
408
    if (this_present_originWarehouseId || that_present_originWarehouseId) {
409
      if (!(this_present_originWarehouseId && that_present_originWarehouseId))
410
        return false;
411
      if (this.originWarehouseId != that.originWarehouseId)
412
        return false;
413
    }
414
 
415
    boolean this_present_destinationWarehouseId = true;
416
    boolean that_present_destinationWarehouseId = true;
417
    if (this_present_destinationWarehouseId || that_present_destinationWarehouseId) {
418
      if (!(this_present_destinationWarehouseId && that_present_destinationWarehouseId))
419
        return false;
420
      if (this.destinationWarehouseId != that.destinationWarehouseId)
421
        return false;
422
    }
423
 
424
    boolean this_present_quantity = true;
425
    boolean that_present_quantity = true;
426
    if (this_present_quantity || that_present_quantity) {
427
      if (!(this_present_quantity && that_present_quantity))
428
        return false;
429
      if (this.quantity != that.quantity)
430
        return false;
431
    }
432
 
433
    boolean this_present_transferDate = true;
434
    boolean that_present_transferDate = true;
435
    if (this_present_transferDate || that_present_transferDate) {
436
      if (!(this_present_transferDate && that_present_transferDate))
437
        return false;
438
      if (this.transferDate != that.transferDate)
439
        return false;
440
    }
441
 
442
    return true;
443
  }
444
 
445
  @Override
446
  public int hashCode() {
447
    return 0;
448
  }
449
 
450
  public int compareTo(InTransitInventory other) {
451
    if (!getClass().equals(other.getClass())) {
452
      return getClass().getName().compareTo(other.getClass().getName());
453
    }
454
 
455
    int lastComparison = 0;
456
    InTransitInventory typedOther = (InTransitInventory)other;
457
 
458
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
459
    if (lastComparison != 0) {
460
      return lastComparison;
461
    }
462
    if (isSetItemId()) {
463
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
464
      if (lastComparison != 0) {
465
        return lastComparison;
466
      }
467
    }
468
    lastComparison = Boolean.valueOf(isSetOriginWarehouseId()).compareTo(typedOther.isSetOriginWarehouseId());
469
    if (lastComparison != 0) {
470
      return lastComparison;
471
    }
472
    if (isSetOriginWarehouseId()) {
473
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.originWarehouseId, typedOther.originWarehouseId);
474
      if (lastComparison != 0) {
475
        return lastComparison;
476
      }
477
    }
478
    lastComparison = Boolean.valueOf(isSetDestinationWarehouseId()).compareTo(typedOther.isSetDestinationWarehouseId());
479
    if (lastComparison != 0) {
480
      return lastComparison;
481
    }
482
    if (isSetDestinationWarehouseId()) {
483
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destinationWarehouseId, typedOther.destinationWarehouseId);
484
      if (lastComparison != 0) {
485
        return lastComparison;
486
      }
487
    }
488
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
489
    if (lastComparison != 0) {
490
      return lastComparison;
491
    }
492
    if (isSetQuantity()) {
493
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
494
      if (lastComparison != 0) {
495
        return lastComparison;
496
      }
497
    }
498
    lastComparison = Boolean.valueOf(isSetTransferDate()).compareTo(typedOther.isSetTransferDate());
499
    if (lastComparison != 0) {
500
      return lastComparison;
501
    }
502
    if (isSetTransferDate()) {
503
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferDate, typedOther.transferDate);
504
      if (lastComparison != 0) {
505
        return lastComparison;
506
      }
507
    }
508
    return 0;
509
  }
510
 
511
  public _Fields fieldForId(int fieldId) {
512
    return _Fields.findByThriftId(fieldId);
513
  }
514
 
515
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
516
    org.apache.thrift.protocol.TField field;
517
    iprot.readStructBegin();
518
    while (true)
519
    {
520
      field = iprot.readFieldBegin();
521
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
522
        break;
523
      }
524
      switch (field.id) {
525
        case 1: // ITEM_ID
526
          if (field.type == org.apache.thrift.protocol.TType.I64) {
527
            this.itemId = iprot.readI64();
528
            setItemIdIsSet(true);
529
          } else { 
530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
531
          }
532
          break;
533
        case 2: // ORIGIN_WAREHOUSE_ID
534
          if (field.type == org.apache.thrift.protocol.TType.I64) {
535
            this.originWarehouseId = iprot.readI64();
536
            setOriginWarehouseIdIsSet(true);
537
          } else { 
538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
539
          }
540
          break;
541
        case 3: // DESTINATION_WAREHOUSE_ID
542
          if (field.type == org.apache.thrift.protocol.TType.I64) {
543
            this.destinationWarehouseId = iprot.readI64();
544
            setDestinationWarehouseIdIsSet(true);
545
          } else { 
546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
547
          }
548
          break;
549
        case 4: // QUANTITY
550
          if (field.type == org.apache.thrift.protocol.TType.I64) {
551
            this.quantity = iprot.readI64();
552
            setQuantityIsSet(true);
553
          } else { 
554
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
555
          }
556
          break;
557
        case 5: // TRANSFER_DATE
558
          if (field.type == org.apache.thrift.protocol.TType.I64) {
559
            this.transferDate = iprot.readI64();
560
            setTransferDateIsSet(true);
561
          } else { 
562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
563
          }
564
          break;
565
        default:
566
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
567
      }
568
      iprot.readFieldEnd();
569
    }
570
    iprot.readStructEnd();
571
    validate();
572
  }
573
 
574
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
575
    validate();
576
 
577
    oprot.writeStructBegin(STRUCT_DESC);
578
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
579
    oprot.writeI64(this.itemId);
580
    oprot.writeFieldEnd();
581
    oprot.writeFieldBegin(ORIGIN_WAREHOUSE_ID_FIELD_DESC);
582
    oprot.writeI64(this.originWarehouseId);
583
    oprot.writeFieldEnd();
584
    oprot.writeFieldBegin(DESTINATION_WAREHOUSE_ID_FIELD_DESC);
585
    oprot.writeI64(this.destinationWarehouseId);
586
    oprot.writeFieldEnd();
587
    oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
588
    oprot.writeI64(this.quantity);
589
    oprot.writeFieldEnd();
590
    oprot.writeFieldBegin(TRANSFER_DATE_FIELD_DESC);
591
    oprot.writeI64(this.transferDate);
592
    oprot.writeFieldEnd();
593
    oprot.writeFieldStop();
594
    oprot.writeStructEnd();
595
  }
596
 
597
  @Override
598
  public String toString() {
599
    StringBuilder sb = new StringBuilder("InTransitInventory(");
600
    boolean first = true;
601
 
602
    sb.append("itemId:");
603
    sb.append(this.itemId);
604
    first = false;
605
    if (!first) sb.append(", ");
606
    sb.append("originWarehouseId:");
607
    sb.append(this.originWarehouseId);
608
    first = false;
609
    if (!first) sb.append(", ");
610
    sb.append("destinationWarehouseId:");
611
    sb.append(this.destinationWarehouseId);
612
    first = false;
613
    if (!first) sb.append(", ");
614
    sb.append("quantity:");
615
    sb.append(this.quantity);
616
    first = false;
617
    if (!first) sb.append(", ");
618
    sb.append("transferDate:");
619
    sb.append(this.transferDate);
620
    first = false;
621
    sb.append(")");
622
    return sb.toString();
623
  }
624
 
625
  public void validate() throws org.apache.thrift.TException {
626
    // check for required fields
627
  }
628
 
629
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
630
    try {
631
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
632
    } catch (org.apache.thrift.TException te) {
633
      throw new java.io.IOException(te);
634
    }
635
  }
636
 
637
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
638
    try {
639
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
640
      __isset_bit_vector = new BitSet(1);
641
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
642
    } catch (org.apache.thrift.TException te) {
643
      throw new java.io.IOException(te);
644
    }
645
  }
646
 
647
}
648