Subversion Repositories SmartDukaan

Rev

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

Rev 15045 Rev 31223
Line 3... Line 3...
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.warehouse;
6
package in.shop2020.warehouse;
7
 
7
 
8
import java.util.List;
-
 
9
import java.util.ArrayList;
-
 
10
import java.util.Map;
8
import java.util.*;
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
 
9
 
23
public class TransferLot implements org.apache.thrift.TBase<TransferLot, TransferLot._Fields>, java.io.Serializable, Cloneable {
10
public class TransferLot implements org.apache.thrift.TBase<TransferLot, TransferLot._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TransferLot");
11
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TransferLot");
-
 
12
 
-
 
13
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short) 1);
-
 
14
    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);
-
 
15
    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);
-
 
16
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short) 4);
-
 
17
    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);
-
 
18
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short) 6);
-
 
19
    private static final org.apache.thrift.protocol.TField TRANSIT_COMPLETION_REFERENCE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("transitCompletionReferenceNumber", org.apache.thrift.protocol.TType.STRING, (short) 7);
-
 
20
    private static final org.apache.thrift.protocol.TField REFERENCE_UPDATION_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceUpdationDate", org.apache.thrift.protocol.TType.I64, (short) 8);
-
 
21
    private static final org.apache.thrift.protocol.TField REMARKS_FIELD_DESC = new org.apache.thrift.protocol.TField("remarks", org.apache.thrift.protocol.TType.STRING, (short) 9);
-
 
22
    private static final org.apache.thrift.protocol.TField SHIPMENT_REFERENCE_FIELD_DESC = new org.apache.thrift.protocol.TField("shipmentReference", org.apache.thrift.protocol.TType.I64, (short) 10);
-
 
23
 
-
 
24
    private long id; // required
-
 
25
    private long originWarehouseId; // required
-
 
26
    private long destinationWarehouseId; // required
-
 
27
    private TransferLotStatus status; // required
-
 
28
    private long transferDate; // required
-
 
29
    private TransferType type; // required
-
 
30
    private String transitCompletionReferenceNumber; // required
-
 
31
    private long referenceUpdationDate; // required
-
 
32
    private String remarks; // required
-
 
33
    private long shipmentReference; // required
25
 
34
 
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
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 STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (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
  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)6);
-
 
32
  private static final org.apache.thrift.protocol.TField TRANSIT_COMPLETION_REFERENCE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("transitCompletionReferenceNumber", org.apache.thrift.protocol.TType.STRING, (short)7);
-
 
33
  private static final org.apache.thrift.protocol.TField REFERENCE_UPDATION_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceUpdationDate", org.apache.thrift.protocol.TType.I64, (short)8);
-
 
34
  private static final org.apache.thrift.protocol.TField REMARKS_FIELD_DESC = new org.apache.thrift.protocol.TField("remarks", org.apache.thrift.protocol.TType.STRING, (short)9);
-
 
35
  private static final org.apache.thrift.protocol.TField SHIPMENT_REFERENCE_FIELD_DESC = new org.apache.thrift.protocol.TField("shipmentReference", org.apache.thrift.protocol.TType.I64, (short)10);
-
 
36
 
-
 
37
  private long id; // required
-
 
38
  private long originWarehouseId; // required
-
 
39
  private long destinationWarehouseId; // required
-
 
40
  private TransferLotStatus status; // required
-
 
41
  private long transferDate; // required
-
 
42
  private TransferType type; // required
-
 
43
  private String transitCompletionReferenceNumber; // required
-
 
44
  private long referenceUpdationDate; // required
-
 
45
  private String remarks; // required
-
 
46
  private long shipmentReference; // required
-
 
47
 
-
 
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
50
    ID((short)1, "id"),
-
 
51
    ORIGIN_WAREHOUSE_ID((short)2, "originWarehouseId"),
-
 
52
    DESTINATION_WAREHOUSE_ID((short)3, "destinationWarehouseId"),
-
 
53
    /**
-
 
54
     * 
-
 
55
     * @see TransferLotStatus
-
 
56
     */
-
 
57
    STATUS((short)4, "status"),
-
 
58
    TRANSFER_DATE((short)5, "transferDate"),
-
 
59
    /**
35
    /**
60
     * 
-
 
61
     * @see TransferType
36
     * The set of fields this struct contains, along with convenience methods for finding and manipulating them.
62
     */
37
     */
-
 
38
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
39
        ID((short) 1, "id"),
-
 
40
        ORIGIN_WAREHOUSE_ID((short) 2, "originWarehouseId"),
-
 
41
        DESTINATION_WAREHOUSE_ID((short) 3, "destinationWarehouseId"),
-
 
42
        /**
-
 
43
         * @see TransferLotStatus
-
 
44
         */
-
 
45
        STATUS((short) 4, "status"),
-
 
46
        TRANSFER_DATE((short) 5, "transferDate"),
-
 
47
        /**
-
 
48
         * @see TransferType
-
 
49
         */
63
    TYPE((short)6, "type"),
50
        TYPE((short) 6, "type"),
64
    TRANSIT_COMPLETION_REFERENCE_NUMBER((short)7, "transitCompletionReferenceNumber"),
51
        TRANSIT_COMPLETION_REFERENCE_NUMBER((short) 7, "transitCompletionReferenceNumber"),
65
    REFERENCE_UPDATION_DATE((short)8, "referenceUpdationDate"),
52
        REFERENCE_UPDATION_DATE((short) 8, "referenceUpdationDate"),
66
    REMARKS((short)9, "remarks"),
53
        REMARKS((short) 9, "remarks"),
67
    SHIPMENT_REFERENCE((short)10, "shipmentReference");
54
        SHIPMENT_REFERENCE((short) 10, "shipmentReference");
68
 
55
 
69
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56
        private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
70
 
57
 
71
    static {
58
        static {
72
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
59
            for (_Fields field : EnumSet.allOf(_Fields.class)) {
73
        byName.put(field.getFieldName(), field);
60
                byName.put(field.getFieldName(), field);
74
      }
61
            }
75
    }
62
        }
76
 
63
 
77
    /**
64
        /**
78
     * Find the _Fields constant that matches fieldId, or null if its not found.
65
     * Find the _Fields constant that matches fieldId, or null if its not found.
79
     */
66
     */
80
    public static _Fields findByThriftId(int fieldId) {
67
    public static _Fields findByThriftId(int fieldId) {
81
      switch(fieldId) {
68
        switch (fieldId) {
82
        case 1: // ID
69
            case 1: // ID
83
          return ID;
70
                return ID;
84
        case 2: // ORIGIN_WAREHOUSE_ID
71
            case 2: // ORIGIN_WAREHOUSE_ID
85
          return ORIGIN_WAREHOUSE_ID;
72
                return ORIGIN_WAREHOUSE_ID;
86
        case 3: // DESTINATION_WAREHOUSE_ID
73
            case 3: // DESTINATION_WAREHOUSE_ID
87
          return DESTINATION_WAREHOUSE_ID;
74
                return DESTINATION_WAREHOUSE_ID;
88
        case 4: // STATUS
75
            case 4: // STATUS
89
          return STATUS;
76
                return STATUS;
90
        case 5: // TRANSFER_DATE
77
            case 5: // TRANSFER_DATE
91
          return TRANSFER_DATE;
78
                return TRANSFER_DATE;
92
        case 6: // TYPE
79
        case 6: // TYPE
93
          return TYPE;
80
          return TYPE;
94
        case 7: // TRANSIT_COMPLETION_REFERENCE_NUMBER
81
        case 7: // TRANSIT_COMPLETION_REFERENCE_NUMBER
95
          return TRANSIT_COMPLETION_REFERENCE_NUMBER;
82
          return TRANSIT_COMPLETION_REFERENCE_NUMBER;
96
        case 8: // REFERENCE_UPDATION_DATE
83
        case 8: // REFERENCE_UPDATION_DATE
Line 146... Line 133...
146
  private static final int __REFERENCEUPDATIONDATE_ISSET_ID = 4;
133
  private static final int __REFERENCEUPDATIONDATE_ISSET_ID = 4;
147
  private static final int __SHIPMENTREFERENCE_ISSET_ID = 5;
134
  private static final int __SHIPMENTREFERENCE_ISSET_ID = 5;
148
  private BitSet __isset_bit_vector = new BitSet(6);
135
  private BitSet __isset_bit_vector = new BitSet(6);
149
 
136
 
150
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
137
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
138
 
151
  static {
139
  static {
152
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
140
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
153
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
141
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
142
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
155
    tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
143
      tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
156
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
144
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
157
    tmpMap.put(_Fields.DESTINATION_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("destinationWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
145
      tmpMap.put(_Fields.DESTINATION_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("destinationWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
146
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
159
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
147
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
160
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferLotStatus.class)));
148
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferLotStatus.class)));
161
    tmpMap.put(_Fields.TRANSFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("transferDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
149
      tmpMap.put(_Fields.TRANSFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("transferDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
162
        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)));
163
    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
151
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
164
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferType.class)));
152
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferType.class)));
165
    tmpMap.put(_Fields.TRANSIT_COMPLETION_REFERENCE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("transitCompletionReferenceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
153
      tmpMap.put(_Fields.TRANSIT_COMPLETION_REFERENCE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("transitCompletionReferenceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
154
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
167
    tmpMap.put(_Fields.REFERENCE_UPDATION_DATE, new org.apache.thrift.meta_data.FieldMetaData("referenceUpdationDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
155
      tmpMap.put(_Fields.REFERENCE_UPDATION_DATE, new org.apache.thrift.meta_data.FieldMetaData("referenceUpdationDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
156
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
169
    tmpMap.put(_Fields.REMARKS, new org.apache.thrift.meta_data.FieldMetaData("remarks", org.apache.thrift.TFieldRequirementType.DEFAULT, 
157
      tmpMap.put(_Fields.REMARKS, new org.apache.thrift.meta_data.FieldMetaData("remarks", org.apache.thrift.TFieldRequirementType.DEFAULT,
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
158
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
171
    tmpMap.put(_Fields.SHIPMENT_REFERENCE, new org.apache.thrift.meta_data.FieldMetaData("shipmentReference", org.apache.thrift.TFieldRequirementType.DEFAULT, 
159
      tmpMap.put(_Fields.SHIPMENT_REFERENCE, new org.apache.thrift.meta_data.FieldMetaData("shipmentReference", org.apache.thrift.TFieldRequirementType.DEFAULT,
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
160
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
173
    metaDataMap = Collections.unmodifiableMap(tmpMap);
161
      metaDataMap = Collections.unmodifiableMap(tmpMap);
174
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TransferLot.class, metaDataMap);
162
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TransferLot.class, metaDataMap);
175
  }
163
  }
176
 
164
 
177
  public TransferLot() {
165
  public TransferLot() {
178
  }
166
  }
179
 
167
 
180
  public TransferLot(
168
    public TransferLot(
181
    long id,
169
            long id,
182
    long originWarehouseId,
170
            long originWarehouseId,
183
    long destinationWarehouseId,
171
            long destinationWarehouseId,
184
    TransferLotStatus status,
172
            TransferLotStatus status,
185
    long transferDate,
173
            long transferDate,
186
    TransferType type,
174
            TransferType type,
187
    String transitCompletionReferenceNumber,
175
            String transitCompletionReferenceNumber,
188
    long referenceUpdationDate,
176
            long referenceUpdationDate,
189
    String remarks,
177
            String remarks,
190
    long shipmentReference)
178
            long shipmentReference) {
191
  {
-
 
192
    this();
179
        this();
193
    this.id = id;
180
        this.id = id;
194
    setIdIsSet(true);
181
        setIdIsSet(true);
195
    this.originWarehouseId = originWarehouseId;
182
        this.originWarehouseId = originWarehouseId;
196
    setOriginWarehouseIdIsSet(true);
183
        setOriginWarehouseIdIsSet(true);
197
    this.destinationWarehouseId = destinationWarehouseId;
184
        this.destinationWarehouseId = destinationWarehouseId;
198
    setDestinationWarehouseIdIsSet(true);
185
        setDestinationWarehouseIdIsSet(true);
199
    this.status = status;
186
        this.status = status;
200
    this.transferDate = transferDate;
187
        this.transferDate = transferDate;
201
    setTransferDateIsSet(true);
188
        setTransferDateIsSet(true);
202
    this.type = type;
189
    this.type = type;
203
    this.transitCompletionReferenceNumber = transitCompletionReferenceNumber;
190
    this.transitCompletionReferenceNumber = transitCompletionReferenceNumber;
204
    this.referenceUpdationDate = referenceUpdationDate;
191
    this.referenceUpdationDate = referenceUpdationDate;
205
    setReferenceUpdationDateIsSet(true);
192
    setReferenceUpdationDateIsSet(true);
206
    this.remarks = remarks;
193
    this.remarks = remarks;
Line 357... Line 344...
357
 
344
 
358
  public long getTransferDate() {
345
  public long getTransferDate() {
359
    return this.transferDate;
346
    return this.transferDate;
360
  }
347
  }
361
 
348
 
362
  public void setTransferDate(long transferDate) {
349
    public void setTransferDate(long transferDate) {
363
    this.transferDate = transferDate;
350
        this.transferDate = transferDate;
364
    setTransferDateIsSet(true);
351
        setTransferDateIsSet(true);
365
  }
352
    }
366
 
353
 
367
  public void unsetTransferDate() {
354
    public void unsetTransferDate() {
368
    __isset_bit_vector.clear(__TRANSFERDATE_ISSET_ID);
355
        __isset_bit_vector.clear(__TRANSFERDATE_ISSET_ID);
369
  }
356
    }
370
 
357
 
-
 
358
    /**
371
  /** Returns true if field transferDate is set (has been assigned a value) and false otherwise */
359
     * Returns true if field transferDate is set (has been assigned a value) and false otherwise
-
 
360
     */
372
  public boolean isSetTransferDate() {
361
    public boolean isSetTransferDate() {
373
    return __isset_bit_vector.get(__TRANSFERDATE_ISSET_ID);
362
        return __isset_bit_vector.get(__TRANSFERDATE_ISSET_ID);
374
  }
363
    }
375
 
364
 
376
  public void setTransferDateIsSet(boolean value) {
365
    public void setTransferDateIsSet(boolean value) {
377
    __isset_bit_vector.set(__TRANSFERDATE_ISSET_ID, value);
366
        __isset_bit_vector.set(__TRANSFERDATE_ISSET_ID, value);
378
  }
367
    }
379
 
368
 
380
  /**
369
    /**
381
   * 
-
 
382
   * @see TransferType
370
     * @see TransferType
383
   */
371
   */
384
  public TransferType getType() {
372
  public TransferType getType() {
385
    return this.type;
373
    return this.type;
386
  }
374
  }
387
 
375
 
388
  /**
376
    /**
389
   * 
-
 
390
   * @see TransferType
377
     * @see TransferType
391
   */
378
     */
392
  public void setType(TransferType type) {
379
    public void setType(TransferType type) {
393
    this.type = type;
380
        this.type = type;
394
  }
-
 
395
 
-
 
396
  public void unsetType() {
-
 
397
    this.type = null;
-
 
398
  }
381
    }
399
 
382
 
400
  /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
401
  public boolean isSetType() {
383
    public void unsetType() {
402
    return this.type != null;
384
        this.type = null;
403
  }
385
    }
404
 
386
 
-
 
387
    /**
405
  public void setTypeIsSet(boolean value) {
388
     * Returns true if field type is set (has been assigned a value) and false otherwise
-
 
389
     */
406
    if (!value) {
390
    public boolean isSetType() {
407
      this.type = null;
391
        return this.type != null;
408
    }
392
    }
-
 
393
 
-
 
394
    public void setTypeIsSet(boolean value) {
-
 
395
        if (!value) {
-
 
396
            this.type = null;
-
 
397
        }
409
  }
398
  }
410
 
399
 
411
  public String getTransitCompletionReferenceNumber() {
400
  public String getTransitCompletionReferenceNumber() {
412
    return this.transitCompletionReferenceNumber;
401
    return this.transitCompletionReferenceNumber;
413
  }
402
  }
Line 478... Line 467...
478
 
467
 
479
  public long getShipmentReference() {
468
  public long getShipmentReference() {
480
    return this.shipmentReference;
469
    return this.shipmentReference;
481
  }
470
  }
482
 
471
 
483
  public void setShipmentReference(long shipmentReference) {
472
    public void setShipmentReference(long shipmentReference) {
484
    this.shipmentReference = shipmentReference;
473
        this.shipmentReference = shipmentReference;
485
    setShipmentReferenceIsSet(true);
474
        setShipmentReferenceIsSet(true);
486
  }
-
 
487
 
-
 
488
  public void unsetShipmentReference() {
-
 
489
    __isset_bit_vector.clear(__SHIPMENTREFERENCE_ISSET_ID);
-
 
490
  }
-
 
491
 
-
 
492
  /** Returns true if field shipmentReference is set (has been assigned a value) and false otherwise */
-
 
493
  public boolean isSetShipmentReference() {
-
 
494
    return __isset_bit_vector.get(__SHIPMENTREFERENCE_ISSET_ID);
-
 
495
  }
-
 
496
 
-
 
497
  public void setShipmentReferenceIsSet(boolean value) {
-
 
498
    __isset_bit_vector.set(__SHIPMENTREFERENCE_ISSET_ID, value);
-
 
499
  }
-
 
500
 
-
 
501
  public void setFieldValue(_Fields field, Object value) {
-
 
502
    switch (field) {
-
 
503
    case ID:
-
 
504
      if (value == null) {
-
 
505
        unsetId();
-
 
506
      } else {
-
 
507
        setId((Long)value);
-
 
508
      }
-
 
509
      break;
-
 
510
 
-
 
511
    case ORIGIN_WAREHOUSE_ID:
-
 
512
      if (value == null) {
-
 
513
        unsetOriginWarehouseId();
-
 
514
      } else {
-
 
515
        setOriginWarehouseId((Long)value);
-
 
516
      }
-
 
517
      break;
-
 
518
 
-
 
519
    case DESTINATION_WAREHOUSE_ID:
-
 
520
      if (value == null) {
-
 
521
        unsetDestinationWarehouseId();
-
 
522
      } else {
-
 
523
        setDestinationWarehouseId((Long)value);
-
 
524
      }
-
 
525
      break;
-
 
526
 
-
 
527
    case STATUS:
-
 
528
      if (value == null) {
-
 
529
        unsetStatus();
-
 
530
      } else {
-
 
531
        setStatus((TransferLotStatus)value);
-
 
532
      }
-
 
533
      break;
-
 
534
 
-
 
535
    case TRANSFER_DATE:
-
 
536
      if (value == null) {
-
 
537
        unsetTransferDate();
-
 
538
      } else {
-
 
539
        setTransferDate((Long)value);
-
 
540
      }
-
 
541
      break;
-
 
542
 
-
 
543
    case TYPE:
-
 
544
      if (value == null) {
-
 
545
        unsetType();
-
 
546
      } else {
-
 
547
        setType((TransferType)value);
-
 
548
      }
475
    }
549
      break;
-
 
550
 
476
 
551
    case TRANSIT_COMPLETION_REFERENCE_NUMBER:
-
 
552
      if (value == null) {
-
 
553
        unsetTransitCompletionReferenceNumber();
477
    public void unsetShipmentReference() {
554
      } else {
-
 
555
        setTransitCompletionReferenceNumber((String)value);
478
        __isset_bit_vector.clear(__SHIPMENTREFERENCE_ISSET_ID);
556
      }
479
    }
557
      break;
-
 
558
 
480
 
559
    case REFERENCE_UPDATION_DATE:
-
 
560
      if (value == null) {
481
    /**
561
        unsetReferenceUpdationDate();
482
     * Returns true if field shipmentReference is set (has been assigned a value) and false otherwise
562
      } else {
483
     */
563
        setReferenceUpdationDate((Long)value);
484
    public boolean isSetShipmentReference() {
-
 
485
        return __isset_bit_vector.get(__SHIPMENTREFERENCE_ISSET_ID);
564
      }
486
    }
565
      break;
-
 
566
 
487
 
567
    case REMARKS:
-
 
568
      if (value == null) {
488
    public void setShipmentReferenceIsSet(boolean value) {
569
        unsetRemarks();
-
 
570
      } else {
-
 
571
        setRemarks((String)value);
489
        __isset_bit_vector.set(__SHIPMENTREFERENCE_ISSET_ID, value);
572
      }
490
    }
573
      break;
-
 
574
 
491
 
-
 
492
    public void setFieldValue(_Fields field, Object value) {
-
 
493
        switch (field) {
-
 
494
            case ID:
-
 
495
                if (value == null) {
-
 
496
                    unsetId();
-
 
497
                } else {
-
 
498
                    setId((Long) value);
-
 
499
                }
-
 
500
                break;
-
 
501
 
-
 
502
            case ORIGIN_WAREHOUSE_ID:
-
 
503
                if (value == null) {
-
 
504
                    unsetOriginWarehouseId();
-
 
505
                } else {
-
 
506
                    setOriginWarehouseId((Long) value);
-
 
507
                }
-
 
508
                break;
-
 
509
 
-
 
510
            case DESTINATION_WAREHOUSE_ID:
-
 
511
                if (value == null) {
-
 
512
                    unsetDestinationWarehouseId();
-
 
513
                } else {
-
 
514
                    setDestinationWarehouseId((Long) value);
-
 
515
                }
-
 
516
                break;
-
 
517
 
-
 
518
            case STATUS:
-
 
519
                if (value == null) {
-
 
520
                    unsetStatus();
-
 
521
                } else {
-
 
522
                    setStatus((TransferLotStatus) value);
-
 
523
                }
-
 
524
                break;
-
 
525
 
-
 
526
            case TRANSFER_DATE:
-
 
527
                if (value == null) {
-
 
528
                    unsetTransferDate();
-
 
529
                } else {
-
 
530
                    setTransferDate((Long) value);
-
 
531
                }
-
 
532
                break;
-
 
533
 
-
 
534
            case TYPE:
-
 
535
                if (value == null) {
-
 
536
                    unsetType();
-
 
537
                } else {
-
 
538
                    setType((TransferType) value);
-
 
539
                }
-
 
540
                break;
-
 
541
 
-
 
542
            case TRANSIT_COMPLETION_REFERENCE_NUMBER:
-
 
543
                if (value == null) {
-
 
544
                    unsetTransitCompletionReferenceNumber();
-
 
545
                } else {
-
 
546
                    setTransitCompletionReferenceNumber((String) value);
-
 
547
                }
-
 
548
                break;
-
 
549
 
-
 
550
            case REFERENCE_UPDATION_DATE:
-
 
551
                if (value == null) {
-
 
552
                    unsetReferenceUpdationDate();
-
 
553
                } else {
-
 
554
                    setReferenceUpdationDate((Long) value);
-
 
555
                }
-
 
556
                break;
-
 
557
 
-
 
558
            case REMARKS:
-
 
559
                if (value == null) {
-
 
560
                    unsetRemarks();
-
 
561
                } else {
-
 
562
                    setRemarks((String) value);
-
 
563
                }
-
 
564
                break;
-
 
565
 
575
    case SHIPMENT_REFERENCE:
566
            case SHIPMENT_REFERENCE:
576
      if (value == null) {
567
                if (value == null) {
577
        unsetShipmentReference();
568
                    unsetShipmentReference();
578
      } else {
569
                } else {
579
        setShipmentReference((Long)value);
570
                    setShipmentReference((Long) value);
580
      }
571
                }
581
      break;
572
                break;
582
 
573
 
583
    }
574
    }
584
  }
575
  }
585
 
576
 
586
  public Object getFieldValue(_Fields field) {
577
  public Object getFieldValue(_Fields field) {
587
    switch (field) {
578
      switch (field) {
588
    case ID:
579
          case ID:
589
      return Long.valueOf(getId());
580
              return Long.valueOf(getId());
590
 
581
 
591
    case ORIGIN_WAREHOUSE_ID:
582
          case ORIGIN_WAREHOUSE_ID:
592
      return Long.valueOf(getOriginWarehouseId());
583
              return Long.valueOf(getOriginWarehouseId());
593
 
584
 
594
    case DESTINATION_WAREHOUSE_ID:
585
          case DESTINATION_WAREHOUSE_ID:
595
      return Long.valueOf(getDestinationWarehouseId());
586
              return Long.valueOf(getDestinationWarehouseId());
596
 
587
 
597
    case STATUS:
588
          case STATUS:
598
      return getStatus();
589
              return getStatus();
599
 
590
 
600
    case TRANSFER_DATE:
591
          case TRANSFER_DATE:
601
      return Long.valueOf(getTransferDate());
592
              return Long.valueOf(getTransferDate());
602
 
593
 
603
    case TYPE:
594
          case TYPE:
604
      return getType();
595
              return getType();
605
 
596
 
606
    case TRANSIT_COMPLETION_REFERENCE_NUMBER:
597
          case TRANSIT_COMPLETION_REFERENCE_NUMBER:
607
      return getTransitCompletionReferenceNumber();
598
              return getTransitCompletionReferenceNumber();
608
 
599
 
609
    case REFERENCE_UPDATION_DATE:
600
          case REFERENCE_UPDATION_DATE:
610
      return Long.valueOf(getReferenceUpdationDate());
601
              return Long.valueOf(getReferenceUpdationDate());
611
 
602
 
612
    case REMARKS:
603
          case REMARKS:
613
      return getRemarks();
604
              return getRemarks();
614
 
605
 
615
    case SHIPMENT_REFERENCE:
606
          case SHIPMENT_REFERENCE:
616
      return Long.valueOf(getShipmentReference());
607
              return Long.valueOf(getShipmentReference());
617
 
608
 
618
    }
609
    }
619
    throw new IllegalStateException();
610
    throw new IllegalStateException();
620
  }
611
  }
621
 
612
 
Line 623... Line 614...
623
  public boolean isSet(_Fields field) {
614
  public boolean isSet(_Fields field) {
624
    if (field == null) {
615
    if (field == null) {
625
      throw new IllegalArgumentException();
616
      throw new IllegalArgumentException();
626
    }
617
    }
627
 
618
 
628
    switch (field) {
619
      switch (field) {
629
    case ID:
620
          case ID:
630
      return isSetId();
621
              return isSetId();
631
    case ORIGIN_WAREHOUSE_ID:
622
          case ORIGIN_WAREHOUSE_ID:
632
      return isSetOriginWarehouseId();
623
              return isSetOriginWarehouseId();
633
    case DESTINATION_WAREHOUSE_ID:
624
          case DESTINATION_WAREHOUSE_ID:
634
      return isSetDestinationWarehouseId();
625
              return isSetDestinationWarehouseId();
635
    case STATUS:
626
          case STATUS:
636
      return isSetStatus();
627
              return isSetStatus();
637
    case TRANSFER_DATE:
628
          case TRANSFER_DATE:
638
      return isSetTransferDate();
629
              return isSetTransferDate();
639
    case TYPE:
630
          case TYPE:
640
      return isSetType();
631
              return isSetType();
641
    case TRANSIT_COMPLETION_REFERENCE_NUMBER:
632
          case TRANSIT_COMPLETION_REFERENCE_NUMBER:
642
      return isSetTransitCompletionReferenceNumber();
633
              return isSetTransitCompletionReferenceNumber();
643
    case REFERENCE_UPDATION_DATE:
634
          case REFERENCE_UPDATION_DATE:
644
      return isSetReferenceUpdationDate();
635
              return isSetReferenceUpdationDate();
645
    case REMARKS:
636
          case REMARKS:
646
      return isSetRemarks();
637
              return isSetRemarks();
647
    case SHIPMENT_REFERENCE:
638
          case SHIPMENT_REFERENCE:
648
      return isSetShipmentReference();
639
              return isSetShipmentReference();
649
    }
640
    }
650
    throw new IllegalStateException();
641
    throw new IllegalStateException();
651
  }
642
  }
652
 
643
 
653
  @Override
644
  @Override
654
  public boolean equals(Object that) {
645
  public boolean equals(Object that) {
655
    if (that == null)
646
    if (that == null)
656
      return false;
647
      return false;
657
    if (that instanceof TransferLot)
648
    if (that instanceof TransferLot)
658
      return this.equals((TransferLot)that);
649
        return this.equals((TransferLot) that);
659
    return false;
650
    return false;
660
  }
651
  }
661
 
652
 
662
  public boolean equals(TransferLot that) {
653
  public boolean equals(TransferLot that) {
663
    if (that == null)
654
    if (that == null)
Line 764... Line 755...
764
  public int compareTo(TransferLot other) {
755
  public int compareTo(TransferLot other) {
765
    if (!getClass().equals(other.getClass())) {
756
    if (!getClass().equals(other.getClass())) {
766
      return getClass().getName().compareTo(other.getClass().getName());
757
      return getClass().getName().compareTo(other.getClass().getName());
767
    }
758
    }
768
 
759
 
769
    int lastComparison = 0;
760
      int lastComparison = 0;
770
    TransferLot typedOther = (TransferLot)other;
761
      TransferLot typedOther = (TransferLot) other;
771
 
762
 
772
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
763
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
773
    if (lastComparison != 0) {
764
    if (lastComparison != 0) {
774
      return lastComparison;
765
      return lastComparison;
775
    }
766
    }
Line 916... Line 907...
916
          } else { 
907
          } else { 
917
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
908
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
918
          }
909
          }
919
          break;
910
          break;
920
        case 5: // TRANSFER_DATE
911
        case 5: // TRANSFER_DATE
921
          if (field.type == org.apache.thrift.protocol.TType.I64) {
912
            if (field.type == org.apache.thrift.protocol.TType.I64) {
922
            this.transferDate = iprot.readI64();
913
                this.transferDate = iprot.readI64();
923
            setTransferDateIsSet(true);
914
                setTransferDateIsSet(true);
924
          } else { 
915
            } else {
925
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
916
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
926
          }
917
          }
927
          break;
918
          break;
928
        case 6: // TYPE
919
        case 6: // TYPE
929
          if (field.type == org.apache.thrift.protocol.TType.I32) {
920
            if (field.type == org.apache.thrift.protocol.TType.I32) {
930
            this.type = TransferType.findByValue(iprot.readI32());
921
                this.type = TransferType.findByValue(iprot.readI32());
931
          } else { 
922
            } else {
932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
933
          }
924
          }
934
          break;
925
          break;
935
        case 7: // TRANSIT_COMPLETION_REFERENCE_NUMBER
926
        case 7: // TRANSIT_COMPLETION_REFERENCE_NUMBER
936
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
927
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
937
            this.transitCompletionReferenceNumber = iprot.readString();
928
                this.transitCompletionReferenceNumber = iprot.readString();
938
          } else { 
929
            } else {
939
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
930
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
940
          }
931
          }
941
          break;
932
          break;
942
        case 8: // REFERENCE_UPDATION_DATE
933
        case 8: // REFERENCE_UPDATION_DATE
943
          if (field.type == org.apache.thrift.protocol.TType.I64) {
934
            if (field.type == org.apache.thrift.protocol.TType.I64) {
944
            this.referenceUpdationDate = iprot.readI64();
935
                this.referenceUpdationDate = iprot.readI64();
945
            setReferenceUpdationDateIsSet(true);
936
                setReferenceUpdationDateIsSet(true);
946
          } else { 
937
            } else {
947
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
938
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
948
          }
939
          }
949
          break;
940
          break;
950
        case 9: // REMARKS
941
        case 9: // REMARKS
951
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
942
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
952
            this.remarks = iprot.readString();
943
                this.remarks = iprot.readString();
953
          } else { 
944
            } else {
954
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
945
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
955
          }
946
          }
956
          break;
947
          break;
957
        case 10: // SHIPMENT_REFERENCE
948
        case 10: // SHIPMENT_REFERENCE
958
          if (field.type == org.apache.thrift.protocol.TType.I64) {
949
            if (field.type == org.apache.thrift.protocol.TType.I64) {
959
            this.shipmentReference = iprot.readI64();
950
                this.shipmentReference = iprot.readI64();
960
            setShipmentReferenceIsSet(true);
951
                setShipmentReferenceIsSet(true);
961
          } else { 
952
            } else {
962
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
953
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
963
          }
954
            }
964
          break;
955
          break;
965
        default:
956
        default:
966
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
957
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
967
      }
958
      }
968
      iprot.readFieldEnd();
959
      iprot.readFieldEnd();