Subversion Repositories SmartDukaan

Rev

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

Rev 7672 Rev 21617
Line 36... Line 36...
36
  private static final org.apache.thrift.protocol.TField SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)11);
36
  private static final org.apache.thrift.protocol.TField SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)11);
37
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
37
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
38
  private static final org.apache.thrift.protocol.TField CURRENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("currentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)13);
38
  private static final org.apache.thrift.protocol.TField CURRENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("currentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)13);
39
  private static final org.apache.thrift.protocol.TField LAST_SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastScanType", org.apache.thrift.protocol.TType.I32, (short)14);
39
  private static final org.apache.thrift.protocol.TField LAST_SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastScanType", org.apache.thrift.protocol.TType.I32, (short)14);
40
  private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
40
  private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
-
 
41
  private static final org.apache.thrift.protocol.TField SERIAL_NUMBER2_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber2", org.apache.thrift.protocol.TType.STRING, (short)16);
-
 
42
  private static final org.apache.thrift.protocol.TField FIRST_SCANNED_FIELD_DESC = new org.apache.thrift.protocol.TField("firstScanned", org.apache.thrift.protocol.TType.I64, (short)17);
-
 
43
  private static final org.apache.thrift.protocol.TField ACTIVATED_FIELD_DESC = new org.apache.thrift.protocol.TField("activated", org.apache.thrift.protocol.TType.I64, (short)18);
-
 
44
  private static final org.apache.thrift.protocol.TField CREATED_FIELD_DESC = new org.apache.thrift.protocol.TField("created", org.apache.thrift.protocol.TType.I64, (short)19);
41
 
45
 
42
  private long id; // required
46
  private long id; // required
43
  private long itemId; // required
47
  private long itemId; // required
44
  private String itemNumber; // required
48
  private String itemNumber; // required
45
  private String serialNumber; // required
49
  private String serialNumber; // required
Line 52... Line 56...
52
  private long supplierId; // required
56
  private long supplierId; // required
53
  private double unitPrice; // required
57
  private double unitPrice; // required
54
  private long currentWarehouseId; // required
58
  private long currentWarehouseId; // required
55
  private ScanType lastScanType; // required
59
  private ScanType lastScanType; // required
56
  private double nlc; // required
60
  private double nlc; // required
-
 
61
  private String serialNumber2; // required
-
 
62
  private long firstScanned; // required
-
 
63
  private long activated; // required
-
 
64
  private long created; // required
57
 
65
 
58
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
66
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
67
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
60
    ID((short)1, "id"),
68
    ID((short)1, "id"),
61
    ITEM_ID((short)2, "itemId"),
69
    ITEM_ID((short)2, "itemId"),
Line 77... Line 85...
77
    /**
85
    /**
78
     * 
86
     * 
79
     * @see ScanType
87
     * @see ScanType
80
     */
88
     */
81
    LAST_SCAN_TYPE((short)14, "lastScanType"),
89
    LAST_SCAN_TYPE((short)14, "lastScanType"),
82
    NLC((short)15, "nlc");
90
    NLC((short)15, "nlc"),
-
 
91
    SERIAL_NUMBER2((short)16, "serialNumber2"),
-
 
92
    FIRST_SCANNED((short)17, "firstScanned"),
-
 
93
    ACTIVATED((short)18, "activated"),
-
 
94
    CREATED((short)19, "created");
83
 
95
 
84
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
96
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
85
 
97
 
86
    static {
98
    static {
87
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
99
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 122... Line 134...
122
          return CURRENT_WAREHOUSE_ID;
134
          return CURRENT_WAREHOUSE_ID;
123
        case 14: // LAST_SCAN_TYPE
135
        case 14: // LAST_SCAN_TYPE
124
          return LAST_SCAN_TYPE;
136
          return LAST_SCAN_TYPE;
125
        case 15: // NLC
137
        case 15: // NLC
126
          return NLC;
138
          return NLC;
-
 
139
        case 16: // SERIAL_NUMBER2
-
 
140
          return SERIAL_NUMBER2;
-
 
141
        case 17: // FIRST_SCANNED
-
 
142
          return FIRST_SCANNED;
-
 
143
        case 18: // ACTIVATED
-
 
144
          return ACTIVATED;
-
 
145
        case 19: // CREATED
-
 
146
          return CREATED;
127
        default:
147
        default:
128
          return null;
148
          return null;
129
      }
149
      }
130
    }
150
    }
131
 
151
 
Line 173... Line 193...
173
  private static final int __PHYSICALWAREHOUSEID_ISSET_ID = 6;
193
  private static final int __PHYSICALWAREHOUSEID_ISSET_ID = 6;
174
  private static final int __SUPPLIERID_ISSET_ID = 7;
194
  private static final int __SUPPLIERID_ISSET_ID = 7;
175
  private static final int __UNITPRICE_ISSET_ID = 8;
195
  private static final int __UNITPRICE_ISSET_ID = 8;
176
  private static final int __CURRENTWAREHOUSEID_ISSET_ID = 9;
196
  private static final int __CURRENTWAREHOUSEID_ISSET_ID = 9;
177
  private static final int __NLC_ISSET_ID = 10;
197
  private static final int __NLC_ISSET_ID = 10;
-
 
198
  private static final int __FIRSTSCANNED_ISSET_ID = 11;
-
 
199
  private static final int __ACTIVATED_ISSET_ID = 12;
-
 
200
  private static final int __CREATED_ISSET_ID = 13;
178
  private BitSet __isset_bit_vector = new BitSet(11);
201
  private BitSet __isset_bit_vector = new BitSet(14);
179
 
202
 
180
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
203
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
181
  static {
204
  static {
182
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
205
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
183
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
206
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 208... Line 231...
208
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
231
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
209
    tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
232
    tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
210
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
233
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
211
    tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
234
    tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
212
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
235
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
236
    tmpMap.put(_Fields.SERIAL_NUMBER2, new org.apache.thrift.meta_data.FieldMetaData("serialNumber2", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
237
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
238
    tmpMap.put(_Fields.FIRST_SCANNED, new org.apache.thrift.meta_data.FieldMetaData("firstScanned", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
239
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
240
    tmpMap.put(_Fields.ACTIVATED, new org.apache.thrift.meta_data.FieldMetaData("activated", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
241
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
242
    tmpMap.put(_Fields.CREATED, new org.apache.thrift.meta_data.FieldMetaData("created", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
243
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
213
    metaDataMap = Collections.unmodifiableMap(tmpMap);
244
    metaDataMap = Collections.unmodifiableMap(tmpMap);
214
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InventoryItem.class, metaDataMap);
245
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InventoryItem.class, metaDataMap);
215
  }
246
  }
216
 
247
 
217
  public InventoryItem() {
248
  public InventoryItem() {
Line 230... Line 261...
230
    TransferLotStatus transferStatus,
261
    TransferLotStatus transferStatus,
231
    long supplierId,
262
    long supplierId,
232
    double unitPrice,
263
    double unitPrice,
233
    long currentWarehouseId,
264
    long currentWarehouseId,
234
    ScanType lastScanType,
265
    ScanType lastScanType,
235
    double nlc)
266
    double nlc,
-
 
267
    String serialNumber2,
-
 
268
    long firstScanned,
-
 
269
    long activated,
-
 
270
    long created)
236
  {
271
  {
237
    this();
272
    this();
238
    this.id = id;
273
    this.id = id;
239
    setIdIsSet(true);
274
    setIdIsSet(true);
240
    this.itemId = itemId;
275
    this.itemId = itemId;
Line 259... Line 294...
259
    this.currentWarehouseId = currentWarehouseId;
294
    this.currentWarehouseId = currentWarehouseId;
260
    setCurrentWarehouseIdIsSet(true);
295
    setCurrentWarehouseIdIsSet(true);
261
    this.lastScanType = lastScanType;
296
    this.lastScanType = lastScanType;
262
    this.nlc = nlc;
297
    this.nlc = nlc;
263
    setNlcIsSet(true);
298
    setNlcIsSet(true);
-
 
299
    this.serialNumber2 = serialNumber2;
-
 
300
    this.firstScanned = firstScanned;
-
 
301
    setFirstScannedIsSet(true);
-
 
302
    this.activated = activated;
-
 
303
    setActivatedIsSet(true);
-
 
304
    this.created = created;
-
 
305
    setCreatedIsSet(true);
264
  }
306
  }
265
 
307
 
266
  /**
308
  /**
267
   * Performs a deep copy on <i>other</i>.
309
   * Performs a deep copy on <i>other</i>.
268
   */
310
   */
Line 290... Line 332...
290
    this.currentWarehouseId = other.currentWarehouseId;
332
    this.currentWarehouseId = other.currentWarehouseId;
291
    if (other.isSetLastScanType()) {
333
    if (other.isSetLastScanType()) {
292
      this.lastScanType = other.lastScanType;
334
      this.lastScanType = other.lastScanType;
293
    }
335
    }
294
    this.nlc = other.nlc;
336
    this.nlc = other.nlc;
-
 
337
    if (other.isSetSerialNumber2()) {
-
 
338
      this.serialNumber2 = other.serialNumber2;
-
 
339
    }
-
 
340
    this.firstScanned = other.firstScanned;
-
 
341
    this.activated = other.activated;
-
 
342
    this.created = other.created;
295
  }
343
  }
296
 
344
 
297
  public InventoryItem deepCopy() {
345
  public InventoryItem deepCopy() {
298
    return new InventoryItem(this);
346
    return new InventoryItem(this);
299
  }
347
  }
Line 324... Line 372...
324
    setCurrentWarehouseIdIsSet(false);
372
    setCurrentWarehouseIdIsSet(false);
325
    this.currentWarehouseId = 0;
373
    this.currentWarehouseId = 0;
326
    this.lastScanType = null;
374
    this.lastScanType = null;
327
    setNlcIsSet(false);
375
    setNlcIsSet(false);
328
    this.nlc = 0.0;
376
    this.nlc = 0.0;
-
 
377
    this.serialNumber2 = null;
-
 
378
    setFirstScannedIsSet(false);
-
 
379
    this.firstScanned = 0;
-
 
380
    setActivatedIsSet(false);
-
 
381
    this.activated = 0;
-
 
382
    setCreatedIsSet(false);
-
 
383
    this.created = 0;
329
  }
384
  }
330
 
385
 
331
  public long getId() {
386
  public long getId() {
332
    return this.id;
387
    return this.id;
333
  }
388
  }
Line 676... Line 731...
676
 
731
 
677
  public void setNlcIsSet(boolean value) {
732
  public void setNlcIsSet(boolean value) {
678
    __isset_bit_vector.set(__NLC_ISSET_ID, value);
733
    __isset_bit_vector.set(__NLC_ISSET_ID, value);
679
  }
734
  }
680
 
735
 
-
 
736
  public String getSerialNumber2() {
-
 
737
    return this.serialNumber2;
-
 
738
  }
-
 
739
 
-
 
740
  public void setSerialNumber2(String serialNumber2) {
-
 
741
    this.serialNumber2 = serialNumber2;
-
 
742
  }
-
 
743
 
-
 
744
  public void unsetSerialNumber2() {
-
 
745
    this.serialNumber2 = null;
-
 
746
  }
-
 
747
 
-
 
748
  /** Returns true if field serialNumber2 is set (has been assigned a value) and false otherwise */
-
 
749
  public boolean isSetSerialNumber2() {
-
 
750
    return this.serialNumber2 != null;
-
 
751
  }
-
 
752
 
-
 
753
  public void setSerialNumber2IsSet(boolean value) {
-
 
754
    if (!value) {
-
 
755
      this.serialNumber2 = null;
-
 
756
    }
-
 
757
  }
-
 
758
 
-
 
759
  public long getFirstScanned() {
-
 
760
    return this.firstScanned;
-
 
761
  }
-
 
762
 
-
 
763
  public void setFirstScanned(long firstScanned) {
-
 
764
    this.firstScanned = firstScanned;
-
 
765
    setFirstScannedIsSet(true);
-
 
766
  }
-
 
767
 
-
 
768
  public void unsetFirstScanned() {
-
 
769
    __isset_bit_vector.clear(__FIRSTSCANNED_ISSET_ID);
-
 
770
  }
-
 
771
 
-
 
772
  /** Returns true if field firstScanned is set (has been assigned a value) and false otherwise */
-
 
773
  public boolean isSetFirstScanned() {
-
 
774
    return __isset_bit_vector.get(__FIRSTSCANNED_ISSET_ID);
-
 
775
  }
-
 
776
 
-
 
777
  public void setFirstScannedIsSet(boolean value) {
-
 
778
    __isset_bit_vector.set(__FIRSTSCANNED_ISSET_ID, value);
-
 
779
  }
-
 
780
 
-
 
781
  public long getActivated() {
-
 
782
    return this.activated;
-
 
783
  }
-
 
784
 
-
 
785
  public void setActivated(long activated) {
-
 
786
    this.activated = activated;
-
 
787
    setActivatedIsSet(true);
-
 
788
  }
-
 
789
 
-
 
790
  public void unsetActivated() {
-
 
791
    __isset_bit_vector.clear(__ACTIVATED_ISSET_ID);
-
 
792
  }
-
 
793
 
-
 
794
  /** Returns true if field activated is set (has been assigned a value) and false otherwise */
-
 
795
  public boolean isSetActivated() {
-
 
796
    return __isset_bit_vector.get(__ACTIVATED_ISSET_ID);
-
 
797
  }
-
 
798
 
-
 
799
  public void setActivatedIsSet(boolean value) {
-
 
800
    __isset_bit_vector.set(__ACTIVATED_ISSET_ID, value);
-
 
801
  }
-
 
802
 
-
 
803
  public long getCreated() {
-
 
804
    return this.created;
-
 
805
  }
-
 
806
 
-
 
807
  public void setCreated(long created) {
-
 
808
    this.created = created;
-
 
809
    setCreatedIsSet(true);
-
 
810
  }
-
 
811
 
-
 
812
  public void unsetCreated() {
-
 
813
    __isset_bit_vector.clear(__CREATED_ISSET_ID);
-
 
814
  }
-
 
815
 
-
 
816
  /** Returns true if field created is set (has been assigned a value) and false otherwise */
-
 
817
  public boolean isSetCreated() {
-
 
818
    return __isset_bit_vector.get(__CREATED_ISSET_ID);
-
 
819
  }
-
 
820
 
-
 
821
  public void setCreatedIsSet(boolean value) {
-
 
822
    __isset_bit_vector.set(__CREATED_ISSET_ID, value);
-
 
823
  }
-
 
824
 
681
  public void setFieldValue(_Fields field, Object value) {
825
  public void setFieldValue(_Fields field, Object value) {
682
    switch (field) {
826
    switch (field) {
683
    case ID:
827
    case ID:
684
      if (value == null) {
828
      if (value == null) {
685
        unsetId();
829
        unsetId();
Line 798... Line 942...
798
      } else {
942
      } else {
799
        setNlc((Double)value);
943
        setNlc((Double)value);
800
      }
944
      }
801
      break;
945
      break;
802
 
946
 
-
 
947
    case SERIAL_NUMBER2:
-
 
948
      if (value == null) {
-
 
949
        unsetSerialNumber2();
-
 
950
      } else {
-
 
951
        setSerialNumber2((String)value);
-
 
952
      }
-
 
953
      break;
-
 
954
 
-
 
955
    case FIRST_SCANNED:
-
 
956
      if (value == null) {
-
 
957
        unsetFirstScanned();
-
 
958
      } else {
-
 
959
        setFirstScanned((Long)value);
-
 
960
      }
-
 
961
      break;
-
 
962
 
-
 
963
    case ACTIVATED:
-
 
964
      if (value == null) {
-
 
965
        unsetActivated();
-
 
966
      } else {
-
 
967
        setActivated((Long)value);
-
 
968
      }
-
 
969
      break;
-
 
970
 
-
 
971
    case CREATED:
-
 
972
      if (value == null) {
-
 
973
        unsetCreated();
-
 
974
      } else {
-
 
975
        setCreated((Long)value);
-
 
976
      }
-
 
977
      break;
-
 
978
 
803
    }
979
    }
804
  }
980
  }
805
 
981
 
806
  public Object getFieldValue(_Fields field) {
982
  public Object getFieldValue(_Fields field) {
807
    switch (field) {
983
    switch (field) {
Line 848... Line 1024...
848
      return getLastScanType();
1024
      return getLastScanType();
849
 
1025
 
850
    case NLC:
1026
    case NLC:
851
      return Double.valueOf(getNlc());
1027
      return Double.valueOf(getNlc());
852
 
1028
 
-
 
1029
    case SERIAL_NUMBER2:
-
 
1030
      return getSerialNumber2();
-
 
1031
 
-
 
1032
    case FIRST_SCANNED:
-
 
1033
      return Long.valueOf(getFirstScanned());
-
 
1034
 
-
 
1035
    case ACTIVATED:
-
 
1036
      return Long.valueOf(getActivated());
-
 
1037
 
-
 
1038
    case CREATED:
-
 
1039
      return Long.valueOf(getCreated());
-
 
1040
 
853
    }
1041
    }
854
    throw new IllegalStateException();
1042
    throw new IllegalStateException();
855
  }
1043
  }
856
 
1044
 
857
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1045
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 889... Line 1077...
889
      return isSetCurrentWarehouseId();
1077
      return isSetCurrentWarehouseId();
890
    case LAST_SCAN_TYPE:
1078
    case LAST_SCAN_TYPE:
891
      return isSetLastScanType();
1079
      return isSetLastScanType();
892
    case NLC:
1080
    case NLC:
893
      return isSetNlc();
1081
      return isSetNlc();
-
 
1082
    case SERIAL_NUMBER2:
-
 
1083
      return isSetSerialNumber2();
-
 
1084
    case FIRST_SCANNED:
-
 
1085
      return isSetFirstScanned();
-
 
1086
    case ACTIVATED:
-
 
1087
      return isSetActivated();
-
 
1088
    case CREATED:
-
 
1089
      return isSetCreated();
894
    }
1090
    }
895
    throw new IllegalStateException();
1091
    throw new IllegalStateException();
896
  }
1092
  }
897
 
1093
 
898
  @Override
1094
  @Override
Line 1041... Line 1237...
1041
        return false;
1237
        return false;
1042
      if (this.nlc != that.nlc)
1238
      if (this.nlc != that.nlc)
1043
        return false;
1239
        return false;
1044
    }
1240
    }
1045
 
1241
 
-
 
1242
    boolean this_present_serialNumber2 = true && this.isSetSerialNumber2();
-
 
1243
    boolean that_present_serialNumber2 = true && that.isSetSerialNumber2();
-
 
1244
    if (this_present_serialNumber2 || that_present_serialNumber2) {
-
 
1245
      if (!(this_present_serialNumber2 && that_present_serialNumber2))
-
 
1246
        return false;
-
 
1247
      if (!this.serialNumber2.equals(that.serialNumber2))
-
 
1248
        return false;
-
 
1249
    }
-
 
1250
 
-
 
1251
    boolean this_present_firstScanned = true;
-
 
1252
    boolean that_present_firstScanned = true;
-
 
1253
    if (this_present_firstScanned || that_present_firstScanned) {
-
 
1254
      if (!(this_present_firstScanned && that_present_firstScanned))
-
 
1255
        return false;
-
 
1256
      if (this.firstScanned != that.firstScanned)
-
 
1257
        return false;
-
 
1258
    }
-
 
1259
 
-
 
1260
    boolean this_present_activated = true;
-
 
1261
    boolean that_present_activated = true;
-
 
1262
    if (this_present_activated || that_present_activated) {
-
 
1263
      if (!(this_present_activated && that_present_activated))
-
 
1264
        return false;
-
 
1265
      if (this.activated != that.activated)
-
 
1266
        return false;
-
 
1267
    }
-
 
1268
 
-
 
1269
    boolean this_present_created = true;
-
 
1270
    boolean that_present_created = true;
-
 
1271
    if (this_present_created || that_present_created) {
-
 
1272
      if (!(this_present_created && that_present_created))
-
 
1273
        return false;
-
 
1274
      if (this.created != that.created)
-
 
1275
        return false;
-
 
1276
    }
-
 
1277
 
1046
    return true;
1278
    return true;
1047
  }
1279
  }
1048
 
1280
 
1049
  @Override
1281
  @Override
1050
  public int hashCode() {
1282
  public int hashCode() {
Line 1207... Line 1439...
1207
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
1439
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
1208
      if (lastComparison != 0) {
1440
      if (lastComparison != 0) {
1209
        return lastComparison;
1441
        return lastComparison;
1210
      }
1442
      }
1211
    }
1443
    }
-
 
1444
    lastComparison = Boolean.valueOf(isSetSerialNumber2()).compareTo(typedOther.isSetSerialNumber2());
-
 
1445
    if (lastComparison != 0) {
-
 
1446
      return lastComparison;
-
 
1447
    }
-
 
1448
    if (isSetSerialNumber2()) {
-
 
1449
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber2, typedOther.serialNumber2);
-
 
1450
      if (lastComparison != 0) {
-
 
1451
        return lastComparison;
-
 
1452
      }
-
 
1453
    }
-
 
1454
    lastComparison = Boolean.valueOf(isSetFirstScanned()).compareTo(typedOther.isSetFirstScanned());
-
 
1455
    if (lastComparison != 0) {
-
 
1456
      return lastComparison;
-
 
1457
    }
-
 
1458
    if (isSetFirstScanned()) {
-
 
1459
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstScanned, typedOther.firstScanned);
-
 
1460
      if (lastComparison != 0) {
-
 
1461
        return lastComparison;
-
 
1462
      }
-
 
1463
    }
-
 
1464
    lastComparison = Boolean.valueOf(isSetActivated()).compareTo(typedOther.isSetActivated());
-
 
1465
    if (lastComparison != 0) {
-
 
1466
      return lastComparison;
-
 
1467
    }
-
 
1468
    if (isSetActivated()) {
-
 
1469
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activated, typedOther.activated);
-
 
1470
      if (lastComparison != 0) {
-
 
1471
        return lastComparison;
-
 
1472
      }
-
 
1473
    }
-
 
1474
    lastComparison = Boolean.valueOf(isSetCreated()).compareTo(typedOther.isSetCreated());
-
 
1475
    if (lastComparison != 0) {
-
 
1476
      return lastComparison;
-
 
1477
    }
-
 
1478
    if (isSetCreated()) {
-
 
1479
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.created, typedOther.created);
-
 
1480
      if (lastComparison != 0) {
-
 
1481
        return lastComparison;
-
 
1482
      }
-
 
1483
    }
1212
    return 0;
1484
    return 0;
1213
  }
1485
  }
1214
 
1486
 
1215
  public _Fields fieldForId(int fieldId) {
1487
  public _Fields fieldForId(int fieldId) {
1216
    return _Fields.findByThriftId(fieldId);
1488
    return _Fields.findByThriftId(fieldId);
Line 1340... Line 1612...
1340
            setNlcIsSet(true);
1612
            setNlcIsSet(true);
1341
          } else { 
1613
          } else { 
1342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1343
          }
1615
          }
1344
          break;
1616
          break;
-
 
1617
        case 16: // SERIAL_NUMBER2
-
 
1618
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1619
            this.serialNumber2 = iprot.readString();
-
 
1620
          } else { 
-
 
1621
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1622
          }
-
 
1623
          break;
-
 
1624
        case 17: // FIRST_SCANNED
-
 
1625
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1626
            this.firstScanned = iprot.readI64();
-
 
1627
            setFirstScannedIsSet(true);
-
 
1628
          } else { 
-
 
1629
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1630
          }
-
 
1631
          break;
-
 
1632
        case 18: // ACTIVATED
-
 
1633
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1634
            this.activated = iprot.readI64();
-
 
1635
            setActivatedIsSet(true);
-
 
1636
          } else { 
-
 
1637
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1638
          }
-
 
1639
          break;
-
 
1640
        case 19: // CREATED
-
 
1641
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1642
            this.created = iprot.readI64();
-
 
1643
            setCreatedIsSet(true);
-
 
1644
          } else { 
-
 
1645
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1646
          }
-
 
1647
          break;
1345
        default:
1648
        default:
1346
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1649
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1347
      }
1650
      }
1348
      iprot.readFieldEnd();
1651
      iprot.readFieldEnd();
1349
    }
1652
    }
Line 1406... Line 1709...
1406
      oprot.writeFieldEnd();
1709
      oprot.writeFieldEnd();
1407
    }
1710
    }
1408
    oprot.writeFieldBegin(NLC_FIELD_DESC);
1711
    oprot.writeFieldBegin(NLC_FIELD_DESC);
1409
    oprot.writeDouble(this.nlc);
1712
    oprot.writeDouble(this.nlc);
1410
    oprot.writeFieldEnd();
1713
    oprot.writeFieldEnd();
-
 
1714
    if (this.serialNumber2 != null) {
-
 
1715
      oprot.writeFieldBegin(SERIAL_NUMBER2_FIELD_DESC);
-
 
1716
      oprot.writeString(this.serialNumber2);
-
 
1717
      oprot.writeFieldEnd();
-
 
1718
    }
-
 
1719
    oprot.writeFieldBegin(FIRST_SCANNED_FIELD_DESC);
-
 
1720
    oprot.writeI64(this.firstScanned);
-
 
1721
    oprot.writeFieldEnd();
-
 
1722
    oprot.writeFieldBegin(ACTIVATED_FIELD_DESC);
-
 
1723
    oprot.writeI64(this.activated);
-
 
1724
    oprot.writeFieldEnd();
-
 
1725
    oprot.writeFieldBegin(CREATED_FIELD_DESC);
-
 
1726
    oprot.writeI64(this.created);
-
 
1727
    oprot.writeFieldEnd();
1411
    oprot.writeFieldStop();
1728
    oprot.writeFieldStop();
1412
    oprot.writeStructEnd();
1729
    oprot.writeStructEnd();
1413
  }
1730
  }
1414
 
1731
 
1415
  @Override
1732
  @Override
Line 1490... Line 1807...
1490
    first = false;
1807
    first = false;
1491
    if (!first) sb.append(", ");
1808
    if (!first) sb.append(", ");
1492
    sb.append("nlc:");
1809
    sb.append("nlc:");
1493
    sb.append(this.nlc);
1810
    sb.append(this.nlc);
1494
    first = false;
1811
    first = false;
-
 
1812
    if (!first) sb.append(", ");
-
 
1813
    sb.append("serialNumber2:");
-
 
1814
    if (this.serialNumber2 == null) {
-
 
1815
      sb.append("null");
-
 
1816
    } else {
-
 
1817
      sb.append(this.serialNumber2);
-
 
1818
    }
-
 
1819
    first = false;
-
 
1820
    if (!first) sb.append(", ");
-
 
1821
    sb.append("firstScanned:");
-
 
1822
    sb.append(this.firstScanned);
-
 
1823
    first = false;
-
 
1824
    if (!first) sb.append(", ");
-
 
1825
    sb.append("activated:");
-
 
1826
    sb.append(this.activated);
-
 
1827
    first = false;
-
 
1828
    if (!first) sb.append(", ");
-
 
1829
    sb.append("created:");
-
 
1830
    sb.append(this.created);
-
 
1831
    first = false;
1495
    sb.append(")");
1832
    sb.append(")");
1496
    return sb.toString();
1833
    return sb.toString();
1497
  }
1834
  }
1498
 
1835
 
1499
  public void validate() throws org.apache.thrift.TException {
1836
  public void validate() throws org.apache.thrift.TException {