Subversion Repositories SmartDukaan

Rev

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

Rev 7410 Rev 15045
Line 30... Line 30...
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);
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);
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);
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);
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);
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);
35
 
36
 
36
  private long id; // required
37
  private long id; // required
37
  private long originWarehouseId; // required
38
  private long originWarehouseId; // required
38
  private long destinationWarehouseId; // required
39
  private long destinationWarehouseId; // required
39
  private TransferLotStatus status; // required
40
  private TransferLotStatus status; // required
40
  private long transferDate; // required
41
  private long transferDate; // required
41
  private TransferType type; // required
42
  private TransferType type; // required
42
  private String transitCompletionReferenceNumber; // required
43
  private String transitCompletionReferenceNumber; // required
43
  private long referenceUpdationDate; // required
44
  private long referenceUpdationDate; // required
44
  private String remarks; // required
45
  private String remarks; // required
-
 
46
  private long shipmentReference; // required
45
 
47
 
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48
    ID((short)1, "id"),
50
    ID((short)1, "id"),
49
    ORIGIN_WAREHOUSE_ID((short)2, "originWarehouseId"),
51
    ORIGIN_WAREHOUSE_ID((short)2, "originWarehouseId"),
Line 59... Line 61...
59
     * @see TransferType
61
     * @see TransferType
60
     */
62
     */
61
    TYPE((short)6, "type"),
63
    TYPE((short)6, "type"),
62
    TRANSIT_COMPLETION_REFERENCE_NUMBER((short)7, "transitCompletionReferenceNumber"),
64
    TRANSIT_COMPLETION_REFERENCE_NUMBER((short)7, "transitCompletionReferenceNumber"),
63
    REFERENCE_UPDATION_DATE((short)8, "referenceUpdationDate"),
65
    REFERENCE_UPDATION_DATE((short)8, "referenceUpdationDate"),
64
    REMARKS((short)9, "remarks");
66
    REMARKS((short)9, "remarks"),
-
 
67
    SHIPMENT_REFERENCE((short)10, "shipmentReference");
65
 
68
 
66
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
69
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
67
 
70
 
68
    static {
71
    static {
69
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
72
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 92... Line 95...
92
          return TRANSIT_COMPLETION_REFERENCE_NUMBER;
95
          return TRANSIT_COMPLETION_REFERENCE_NUMBER;
93
        case 8: // REFERENCE_UPDATION_DATE
96
        case 8: // REFERENCE_UPDATION_DATE
94
          return REFERENCE_UPDATION_DATE;
97
          return REFERENCE_UPDATION_DATE;
95
        case 9: // REMARKS
98
        case 9: // REMARKS
96
          return REMARKS;
99
          return REMARKS;
-
 
100
        case 10: // SHIPMENT_REFERENCE
-
 
101
          return SHIPMENT_REFERENCE;
97
        default:
102
        default:
98
          return null;
103
          return null;
99
      }
104
      }
100
    }
105
    }
101
 
106
 
Line 137... Line 142...
137
  private static final int __ID_ISSET_ID = 0;
142
  private static final int __ID_ISSET_ID = 0;
138
  private static final int __ORIGINWAREHOUSEID_ISSET_ID = 1;
143
  private static final int __ORIGINWAREHOUSEID_ISSET_ID = 1;
139
  private static final int __DESTINATIONWAREHOUSEID_ISSET_ID = 2;
144
  private static final int __DESTINATIONWAREHOUSEID_ISSET_ID = 2;
140
  private static final int __TRANSFERDATE_ISSET_ID = 3;
145
  private static final int __TRANSFERDATE_ISSET_ID = 3;
141
  private static final int __REFERENCEUPDATIONDATE_ISSET_ID = 4;
146
  private static final int __REFERENCEUPDATIONDATE_ISSET_ID = 4;
-
 
147
  private static final int __SHIPMENTREFERENCE_ISSET_ID = 5;
142
  private BitSet __isset_bit_vector = new BitSet(5);
148
  private BitSet __isset_bit_vector = new BitSet(6);
143
 
149
 
144
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
150
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
145
  static {
151
  static {
146
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
152
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
147
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
153
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 160... Line 166...
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
161
    tmpMap.put(_Fields.REFERENCE_UPDATION_DATE, new org.apache.thrift.meta_data.FieldMetaData("referenceUpdationDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
    tmpMap.put(_Fields.REFERENCE_UPDATION_DATE, new org.apache.thrift.meta_data.FieldMetaData("referenceUpdationDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
163
    tmpMap.put(_Fields.REMARKS, new org.apache.thrift.meta_data.FieldMetaData("remarks", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
    tmpMap.put(_Fields.REMARKS, new org.apache.thrift.meta_data.FieldMetaData("remarks", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
170
        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, 
-
 
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
165
    metaDataMap = Collections.unmodifiableMap(tmpMap);
173
    metaDataMap = Collections.unmodifiableMap(tmpMap);
166
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TransferLot.class, metaDataMap);
174
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TransferLot.class, metaDataMap);
167
  }
175
  }
168
 
176
 
169
  public TransferLot() {
177
  public TransferLot() {
Line 176... Line 184...
176
    TransferLotStatus status,
184
    TransferLotStatus status,
177
    long transferDate,
185
    long transferDate,
178
    TransferType type,
186
    TransferType type,
179
    String transitCompletionReferenceNumber,
187
    String transitCompletionReferenceNumber,
180
    long referenceUpdationDate,
188
    long referenceUpdationDate,
181
    String remarks)
189
    String remarks,
-
 
190
    long shipmentReference)
182
  {
191
  {
183
    this();
192
    this();
184
    this.id = id;
193
    this.id = id;
185
    setIdIsSet(true);
194
    setIdIsSet(true);
186
    this.originWarehouseId = originWarehouseId;
195
    this.originWarehouseId = originWarehouseId;
Line 193... Line 202...
193
    this.type = type;
202
    this.type = type;
194
    this.transitCompletionReferenceNumber = transitCompletionReferenceNumber;
203
    this.transitCompletionReferenceNumber = transitCompletionReferenceNumber;
195
    this.referenceUpdationDate = referenceUpdationDate;
204
    this.referenceUpdationDate = referenceUpdationDate;
196
    setReferenceUpdationDateIsSet(true);
205
    setReferenceUpdationDateIsSet(true);
197
    this.remarks = remarks;
206
    this.remarks = remarks;
-
 
207
    this.shipmentReference = shipmentReference;
-
 
208
    setShipmentReferenceIsSet(true);
198
  }
209
  }
199
 
210
 
200
  /**
211
  /**
201
   * Performs a deep copy on <i>other</i>.
212
   * Performs a deep copy on <i>other</i>.
202
   */
213
   */
Line 218... Line 229...
218
    }
229
    }
219
    this.referenceUpdationDate = other.referenceUpdationDate;
230
    this.referenceUpdationDate = other.referenceUpdationDate;
220
    if (other.isSetRemarks()) {
231
    if (other.isSetRemarks()) {
221
      this.remarks = other.remarks;
232
      this.remarks = other.remarks;
222
    }
233
    }
-
 
234
    this.shipmentReference = other.shipmentReference;
223
  }
235
  }
224
 
236
 
225
  public TransferLot deepCopy() {
237
  public TransferLot deepCopy() {
226
    return new TransferLot(this);
238
    return new TransferLot(this);
227
  }
239
  }
Line 240... Line 252...
240
    this.type = null;
252
    this.type = null;
241
    this.transitCompletionReferenceNumber = null;
253
    this.transitCompletionReferenceNumber = null;
242
    setReferenceUpdationDateIsSet(false);
254
    setReferenceUpdationDateIsSet(false);
243
    this.referenceUpdationDate = 0;
255
    this.referenceUpdationDate = 0;
244
    this.remarks = null;
256
    this.remarks = null;
-
 
257
    setShipmentReferenceIsSet(false);
-
 
258
    this.shipmentReference = 0;
245
  }
259
  }
246
 
260
 
247
  public long getId() {
261
  public long getId() {
248
    return this.id;
262
    return this.id;
249
  }
263
  }
Line 460... Line 474...
460
    if (!value) {
474
    if (!value) {
461
      this.remarks = null;
475
      this.remarks = null;
462
    }
476
    }
463
  }
477
  }
464
 
478
 
-
 
479
  public long getShipmentReference() {
-
 
480
    return this.shipmentReference;
-
 
481
  }
-
 
482
 
-
 
483
  public void setShipmentReference(long shipmentReference) {
-
 
484
    this.shipmentReference = shipmentReference;
-
 
485
    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
 
465
  public void setFieldValue(_Fields field, Object value) {
501
  public void setFieldValue(_Fields field, Object value) {
466
    switch (field) {
502
    switch (field) {
467
    case ID:
503
    case ID:
468
      if (value == null) {
504
      if (value == null) {
469
        unsetId();
505
        unsetId();
Line 534... Line 570...
534
      } else {
570
      } else {
535
        setRemarks((String)value);
571
        setRemarks((String)value);
536
      }
572
      }
537
      break;
573
      break;
538
 
574
 
-
 
575
    case SHIPMENT_REFERENCE:
-
 
576
      if (value == null) {
-
 
577
        unsetShipmentReference();
-
 
578
      } else {
-
 
579
        setShipmentReference((Long)value);
-
 
580
      }
-
 
581
      break;
-
 
582
 
539
    }
583
    }
540
  }
584
  }
541
 
585
 
542
  public Object getFieldValue(_Fields field) {
586
  public Object getFieldValue(_Fields field) {
543
    switch (field) {
587
    switch (field) {
Line 566... Line 610...
566
      return Long.valueOf(getReferenceUpdationDate());
610
      return Long.valueOf(getReferenceUpdationDate());
567
 
611
 
568
    case REMARKS:
612
    case REMARKS:
569
      return getRemarks();
613
      return getRemarks();
570
 
614
 
-
 
615
    case SHIPMENT_REFERENCE:
-
 
616
      return Long.valueOf(getShipmentReference());
-
 
617
 
571
    }
618
    }
572
    throw new IllegalStateException();
619
    throw new IllegalStateException();
573
  }
620
  }
574
 
621
 
575
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
622
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 595... Line 642...
595
      return isSetTransitCompletionReferenceNumber();
642
      return isSetTransitCompletionReferenceNumber();
596
    case REFERENCE_UPDATION_DATE:
643
    case REFERENCE_UPDATION_DATE:
597
      return isSetReferenceUpdationDate();
644
      return isSetReferenceUpdationDate();
598
    case REMARKS:
645
    case REMARKS:
599
      return isSetRemarks();
646
      return isSetRemarks();
-
 
647
    case SHIPMENT_REFERENCE:
-
 
648
      return isSetShipmentReference();
600
    }
649
    }
601
    throw new IllegalStateException();
650
    throw new IllegalStateException();
602
  }
651
  }
603
 
652
 
604
  @Override
653
  @Override
Line 693... Line 742...
693
        return false;
742
        return false;
694
      if (!this.remarks.equals(that.remarks))
743
      if (!this.remarks.equals(that.remarks))
695
        return false;
744
        return false;
696
    }
745
    }
697
 
746
 
-
 
747
    boolean this_present_shipmentReference = true;
-
 
748
    boolean that_present_shipmentReference = true;
-
 
749
    if (this_present_shipmentReference || that_present_shipmentReference) {
-
 
750
      if (!(this_present_shipmentReference && that_present_shipmentReference))
-
 
751
        return false;
-
 
752
      if (this.shipmentReference != that.shipmentReference)
-
 
753
        return false;
-
 
754
    }
-
 
755
 
698
    return true;
756
    return true;
699
  }
757
  }
700
 
758
 
701
  @Override
759
  @Override
702
  public int hashCode() {
760
  public int hashCode() {
Line 799... Line 857...
799
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.remarks, typedOther.remarks);
857
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.remarks, typedOther.remarks);
800
      if (lastComparison != 0) {
858
      if (lastComparison != 0) {
801
        return lastComparison;
859
        return lastComparison;
802
      }
860
      }
803
    }
861
    }
-
 
862
    lastComparison = Boolean.valueOf(isSetShipmentReference()).compareTo(typedOther.isSetShipmentReference());
-
 
863
    if (lastComparison != 0) {
-
 
864
      return lastComparison;
-
 
865
    }
-
 
866
    if (isSetShipmentReference()) {
-
 
867
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shipmentReference, typedOther.shipmentReference);
-
 
868
      if (lastComparison != 0) {
-
 
869
        return lastComparison;
-
 
870
      }
-
 
871
    }
804
    return 0;
872
    return 0;
805
  }
873
  }
806
 
874
 
807
  public _Fields fieldForId(int fieldId) {
875
  public _Fields fieldForId(int fieldId) {
808
    return _Fields.findByThriftId(fieldId);
876
    return _Fields.findByThriftId(fieldId);
Line 884... Line 952...
884
            this.remarks = iprot.readString();
952
            this.remarks = iprot.readString();
885
          } else { 
953
          } else { 
886
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
954
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
887
          }
955
          }
888
          break;
956
          break;
-
 
957
        case 10: // SHIPMENT_REFERENCE
-
 
958
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
959
            this.shipmentReference = iprot.readI64();
-
 
960
            setShipmentReferenceIsSet(true);
-
 
961
          } else { 
-
 
962
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
963
          }
-
 
964
          break;
889
        default:
965
        default:
890
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
966
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
891
      }
967
      }
892
      iprot.readFieldEnd();
968
      iprot.readFieldEnd();
893
    }
969
    }
Line 932... Line 1008...
932
    if (this.remarks != null) {
1008
    if (this.remarks != null) {
933
      oprot.writeFieldBegin(REMARKS_FIELD_DESC);
1009
      oprot.writeFieldBegin(REMARKS_FIELD_DESC);
934
      oprot.writeString(this.remarks);
1010
      oprot.writeString(this.remarks);
935
      oprot.writeFieldEnd();
1011
      oprot.writeFieldEnd();
936
    }
1012
    }
-
 
1013
    oprot.writeFieldBegin(SHIPMENT_REFERENCE_FIELD_DESC);
-
 
1014
    oprot.writeI64(this.shipmentReference);
-
 
1015
    oprot.writeFieldEnd();
937
    oprot.writeFieldStop();
1016
    oprot.writeFieldStop();
938
    oprot.writeStructEnd();
1017
    oprot.writeStructEnd();
939
  }
1018
  }
940
 
1019
 
941
  @Override
1020
  @Override
Line 992... Line 1071...
992
      sb.append("null");
1071
      sb.append("null");
993
    } else {
1072
    } else {
994
      sb.append(this.remarks);
1073
      sb.append(this.remarks);
995
    }
1074
    }
996
    first = false;
1075
    first = false;
-
 
1076
    if (!first) sb.append(", ");
-
 
1077
    sb.append("shipmentReference:");
-
 
1078
    sb.append(this.shipmentReference);
-
 
1079
    first = false;
997
    sb.append(")");
1080
    sb.append(")");
998
    return sb.toString();
1081
    return sb.toString();
999
  }
1082
  }
1000
 
1083
 
1001
  public void validate() throws org.apache.thrift.TException {
1084
  public void validate() throws org.apache.thrift.TException {