Subversion Repositories SmartDukaan

Rev

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

Rev 2250 Rev 2491
Line 225... Line 225...
225
        new FieldValueMetaData(TType.STRING)));
225
        new FieldValueMetaData(TType.STRING)));
226
    put(_Fields.ITEM_INVENTORY, new FieldMetaData("itemInventory", TFieldRequirementType.DEFAULT, 
226
    put(_Fields.ITEM_INVENTORY, new FieldMetaData("itemInventory", TFieldRequirementType.DEFAULT, 
227
        new StructMetaData(TType.STRUCT, ItemInventory.class)));
227
        new StructMetaData(TType.STRUCT, ItemInventory.class)));
228
    put(_Fields.MRP, new FieldMetaData("mrp", TFieldRequirementType.OPTIONAL, 
228
    put(_Fields.MRP, new FieldMetaData("mrp", TFieldRequirementType.OPTIONAL, 
229
        new FieldValueMetaData(TType.DOUBLE)));
229
        new FieldValueMetaData(TType.DOUBLE)));
230
    put(_Fields.MOP, new FieldMetaData("mop", TFieldRequirementType.DEFAULT, 
230
    put(_Fields.MOP, new FieldMetaData("mop", TFieldRequirementType.OPTIONAL, 
231
        new FieldValueMetaData(TType.DOUBLE)));
231
        new FieldValueMetaData(TType.DOUBLE)));
232
    put(_Fields.SELLING_PRICE, new FieldMetaData("sellingPrice", TFieldRequirementType.OPTIONAL, 
232
    put(_Fields.SELLING_PRICE, new FieldMetaData("sellingPrice", TFieldRequirementType.OPTIONAL, 
233
        new FieldValueMetaData(TType.DOUBLE)));
233
        new FieldValueMetaData(TType.DOUBLE)));
234
    put(_Fields.TRANSFER_PRICE, new FieldMetaData("transferPrice", TFieldRequirementType.DEFAULT, 
234
    put(_Fields.TRANSFER_PRICE, new FieldMetaData("transferPrice", TFieldRequirementType.OPTIONAL, 
235
        new FieldValueMetaData(TType.DOUBLE)));
235
        new FieldValueMetaData(TType.DOUBLE)));
236
    put(_Fields.WEIGHT, new FieldMetaData("weight", TFieldRequirementType.OPTIONAL, 
236
    put(_Fields.WEIGHT, new FieldMetaData("weight", TFieldRequirementType.OPTIONAL, 
237
        new FieldValueMetaData(TType.DOUBLE)));
237
        new FieldValueMetaData(TType.DOUBLE)));
238
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
238
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
239
        new FieldValueMetaData(TType.I64)));
239
        new FieldValueMetaData(TType.I64)));
240
    put(_Fields.START_DATE, new FieldMetaData("startDate", TFieldRequirementType.DEFAULT, 
240
    put(_Fields.START_DATE, new FieldMetaData("startDate", TFieldRequirementType.OPTIONAL, 
241
        new FieldValueMetaData(TType.I64)));
241
        new FieldValueMetaData(TType.I64)));
242
    put(_Fields.RETIRE_DATE, new FieldMetaData("retireDate", TFieldRequirementType.DEFAULT, 
242
    put(_Fields.RETIRE_DATE, new FieldMetaData("retireDate", TFieldRequirementType.OPTIONAL, 
243
        new FieldValueMetaData(TType.I64)));
243
        new FieldValueMetaData(TType.I64)));
244
    put(_Fields.ITEM_STATUS, new FieldMetaData("itemStatus", TFieldRequirementType.DEFAULT, 
244
    put(_Fields.ITEM_STATUS, new FieldMetaData("itemStatus", TFieldRequirementType.DEFAULT, 
245
        new EnumMetaData(TType.ENUM, status.class)));
245
        new EnumMetaData(TType.ENUM, status.class)));
246
    put(_Fields.STATUS_DESCRIPTION, new FieldMetaData("status_description", TFieldRequirementType.DEFAULT, 
246
    put(_Fields.STATUS_DESCRIPTION, new FieldMetaData("status_description", TFieldRequirementType.DEFAULT, 
247
        new FieldValueMetaData(TType.STRING)));
247
        new FieldValueMetaData(TType.STRING)));
Line 251... Line 251...
251
            new FieldValueMetaData(TType.STRING))));
251
            new FieldValueMetaData(TType.STRING))));
252
    put(_Fields.BEST_DEAL_TEXT, new FieldMetaData("bestDealText", TFieldRequirementType.DEFAULT, 
252
    put(_Fields.BEST_DEAL_TEXT, new FieldMetaData("bestDealText", TFieldRequirementType.DEFAULT, 
253
        new FieldValueMetaData(TType.STRING)));
253
        new FieldValueMetaData(TType.STRING)));
254
    put(_Fields.BEST_DEAL_VALUE, new FieldMetaData("bestDealValue", TFieldRequirementType.OPTIONAL, 
254
    put(_Fields.BEST_DEAL_VALUE, new FieldMetaData("bestDealValue", TFieldRequirementType.OPTIONAL, 
255
        new FieldValueMetaData(TType.DOUBLE)));
255
        new FieldValueMetaData(TType.DOUBLE)));
256
    put(_Fields.DEALER_PRICE, new FieldMetaData("dealerPrice", TFieldRequirementType.DEFAULT, 
256
    put(_Fields.DEALER_PRICE, new FieldMetaData("dealerPrice", TFieldRequirementType.OPTIONAL, 
257
        new FieldValueMetaData(TType.DOUBLE)));
257
        new FieldValueMetaData(TType.DOUBLE)));
258
    put(_Fields.DEFAULT_FOR_ENTITY, new FieldMetaData("defaultForEntity", TFieldRequirementType.DEFAULT, 
258
    put(_Fields.DEFAULT_FOR_ENTITY, new FieldMetaData("defaultForEntity", TFieldRequirementType.DEFAULT, 
259
        new FieldValueMetaData(TType.BOOL)));
259
        new FieldValueMetaData(TType.BOOL)));
260
    put(_Fields.UPDATED_ON, new FieldMetaData("updatedOn", TFieldRequirementType.DEFAULT, 
260
    put(_Fields.UPDATED_ON, new FieldMetaData("updatedOn", TFieldRequirementType.DEFAULT, 
261
        new FieldValueMetaData(TType.I64)));
261
        new FieldValueMetaData(TType.I64)));
Line 285... Line 285...
285
    String comments,
285
    String comments,
286
    long catalogItemId,
286
    long catalogItemId,
287
    long featureId,
287
    long featureId,
288
    String featureDescription,
288
    String featureDescription,
289
    ItemInventory itemInventory,
289
    ItemInventory itemInventory,
290
    double mop,
-
 
291
    double transferPrice,
-
 
292
    long addedOn,
290
    long addedOn,
293
    long startDate,
-
 
294
    long retireDate,
-
 
295
    status itemStatus,
291
    status itemStatus,
296
    String status_description,
292
    String status_description,
297
    Map<String,String> otherInfo,
293
    Map<String,String> otherInfo,
298
    String bestDealText,
294
    String bestDealText,
299
    double dealerPrice,
-
 
300
    boolean defaultForEntity,
295
    boolean defaultForEntity,
301
    long updatedOn,
296
    long updatedOn,
302
    String hotspotCategory,
297
    String hotspotCategory,
303
    boolean risky)
298
    boolean risky)
304
  {
299
  {
Line 317... Line 312...
317
    setCatalogItemIdIsSet(true);
312
    setCatalogItemIdIsSet(true);
318
    this.featureId = featureId;
313
    this.featureId = featureId;
319
    setFeatureIdIsSet(true);
314
    setFeatureIdIsSet(true);
320
    this.featureDescription = featureDescription;
315
    this.featureDescription = featureDescription;
321
    this.itemInventory = itemInventory;
316
    this.itemInventory = itemInventory;
322
    this.mop = mop;
-
 
323
    setMopIsSet(true);
-
 
324
    this.transferPrice = transferPrice;
-
 
325
    setTransferPriceIsSet(true);
-
 
326
    this.addedOn = addedOn;
317
    this.addedOn = addedOn;
327
    setAddedOnIsSet(true);
318
    setAddedOnIsSet(true);
328
    this.startDate = startDate;
-
 
329
    setStartDateIsSet(true);
-
 
330
    this.retireDate = retireDate;
-
 
331
    setRetireDateIsSet(true);
-
 
332
    this.itemStatus = itemStatus;
319
    this.itemStatus = itemStatus;
333
    this.status_description = status_description;
320
    this.status_description = status_description;
334
    this.otherInfo = otherInfo;
321
    this.otherInfo = otherInfo;
335
    this.bestDealText = bestDealText;
322
    this.bestDealText = bestDealText;
336
    this.dealerPrice = dealerPrice;
-
 
337
    setDealerPriceIsSet(true);
-
 
338
    this.defaultForEntity = defaultForEntity;
323
    this.defaultForEntity = defaultForEntity;
339
    setDefaultForEntityIsSet(true);
324
    setDefaultForEntityIsSet(true);
340
    this.updatedOn = updatedOn;
325
    this.updatedOn = updatedOn;
341
    setUpdatedOnIsSet(true);
326
    setUpdatedOnIsSet(true);
342
    this.hotspotCategory = hotspotCategory;
327
    this.hotspotCategory = hotspotCategory;
Line 1736... Line 1721...
1736
        return false;
1721
        return false;
1737
      if (this.mrp != that.mrp)
1722
      if (this.mrp != that.mrp)
1738
        return false;
1723
        return false;
1739
    }
1724
    }
1740
 
1725
 
1741
    boolean this_present_mop = true;
1726
    boolean this_present_mop = true && this.isSetMop();
1742
    boolean that_present_mop = true;
1727
    boolean that_present_mop = true && that.isSetMop();
1743
    if (this_present_mop || that_present_mop) {
1728
    if (this_present_mop || that_present_mop) {
1744
      if (!(this_present_mop && that_present_mop))
1729
      if (!(this_present_mop && that_present_mop))
1745
        return false;
1730
        return false;
1746
      if (this.mop != that.mop)
1731
      if (this.mop != that.mop)
1747
        return false;
1732
        return false;
Line 1754... Line 1739...
1754
        return false;
1739
        return false;
1755
      if (this.sellingPrice != that.sellingPrice)
1740
      if (this.sellingPrice != that.sellingPrice)
1756
        return false;
1741
        return false;
1757
    }
1742
    }
1758
 
1743
 
1759
    boolean this_present_transferPrice = true;
1744
    boolean this_present_transferPrice = true && this.isSetTransferPrice();
1760
    boolean that_present_transferPrice = true;
1745
    boolean that_present_transferPrice = true && that.isSetTransferPrice();
1761
    if (this_present_transferPrice || that_present_transferPrice) {
1746
    if (this_present_transferPrice || that_present_transferPrice) {
1762
      if (!(this_present_transferPrice && that_present_transferPrice))
1747
      if (!(this_present_transferPrice && that_present_transferPrice))
1763
        return false;
1748
        return false;
1764
      if (this.transferPrice != that.transferPrice)
1749
      if (this.transferPrice != that.transferPrice)
1765
        return false;
1750
        return false;
Line 1781... Line 1766...
1781
        return false;
1766
        return false;
1782
      if (this.addedOn != that.addedOn)
1767
      if (this.addedOn != that.addedOn)
1783
        return false;
1768
        return false;
1784
    }
1769
    }
1785
 
1770
 
1786
    boolean this_present_startDate = true;
1771
    boolean this_present_startDate = true && this.isSetStartDate();
1787
    boolean that_present_startDate = true;
1772
    boolean that_present_startDate = true && that.isSetStartDate();
1788
    if (this_present_startDate || that_present_startDate) {
1773
    if (this_present_startDate || that_present_startDate) {
1789
      if (!(this_present_startDate && that_present_startDate))
1774
      if (!(this_present_startDate && that_present_startDate))
1790
        return false;
1775
        return false;
1791
      if (this.startDate != that.startDate)
1776
      if (this.startDate != that.startDate)
1792
        return false;
1777
        return false;
1793
    }
1778
    }
1794
 
1779
 
1795
    boolean this_present_retireDate = true;
1780
    boolean this_present_retireDate = true && this.isSetRetireDate();
1796
    boolean that_present_retireDate = true;
1781
    boolean that_present_retireDate = true && that.isSetRetireDate();
1797
    if (this_present_retireDate || that_present_retireDate) {
1782
    if (this_present_retireDate || that_present_retireDate) {
1798
      if (!(this_present_retireDate && that_present_retireDate))
1783
      if (!(this_present_retireDate && that_present_retireDate))
1799
        return false;
1784
        return false;
1800
      if (this.retireDate != that.retireDate)
1785
      if (this.retireDate != that.retireDate)
1801
        return false;
1786
        return false;
Line 1844... Line 1829...
1844
        return false;
1829
        return false;
1845
      if (this.bestDealValue != that.bestDealValue)
1830
      if (this.bestDealValue != that.bestDealValue)
1846
        return false;
1831
        return false;
1847
    }
1832
    }
1848
 
1833
 
1849
    boolean this_present_dealerPrice = true;
1834
    boolean this_present_dealerPrice = true && this.isSetDealerPrice();
1850
    boolean that_present_dealerPrice = true;
1835
    boolean that_present_dealerPrice = true && that.isSetDealerPrice();
1851
    if (this_present_dealerPrice || that_present_dealerPrice) {
1836
    if (this_present_dealerPrice || that_present_dealerPrice) {
1852
      if (!(this_present_dealerPrice && that_present_dealerPrice))
1837
      if (!(this_present_dealerPrice && that_present_dealerPrice))
1853
        return false;
1838
        return false;
1854
      if (this.dealerPrice != that.dealerPrice)
1839
      if (this.dealerPrice != that.dealerPrice)
1855
        return false;
1840
        return false;
Line 2237... Line 2222...
2237
    if (isSetMrp()) {
2222
    if (isSetMrp()) {
2238
      oprot.writeFieldBegin(MRP_FIELD_DESC);
2223
      oprot.writeFieldBegin(MRP_FIELD_DESC);
2239
      oprot.writeDouble(this.mrp);
2224
      oprot.writeDouble(this.mrp);
2240
      oprot.writeFieldEnd();
2225
      oprot.writeFieldEnd();
2241
    }
2226
    }
-
 
2227
    if (isSetMop()) {
2242
    oprot.writeFieldBegin(MOP_FIELD_DESC);
2228
      oprot.writeFieldBegin(MOP_FIELD_DESC);
2243
    oprot.writeDouble(this.mop);
2229
      oprot.writeDouble(this.mop);
2244
    oprot.writeFieldEnd();
2230
      oprot.writeFieldEnd();
-
 
2231
    }
2245
    if (isSetSellingPrice()) {
2232
    if (isSetSellingPrice()) {
2246
      oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
2233
      oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
2247
      oprot.writeDouble(this.sellingPrice);
2234
      oprot.writeDouble(this.sellingPrice);
2248
      oprot.writeFieldEnd();
2235
      oprot.writeFieldEnd();
2249
    }
2236
    }
-
 
2237
    if (isSetTransferPrice()) {
2250
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
2238
      oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
2251
    oprot.writeDouble(this.transferPrice);
2239
      oprot.writeDouble(this.transferPrice);
2252
    oprot.writeFieldEnd();
2240
      oprot.writeFieldEnd();
-
 
2241
    }
2253
    if (isSetWeight()) {
2242
    if (isSetWeight()) {
2254
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
2243
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
2255
      oprot.writeDouble(this.weight);
2244
      oprot.writeDouble(this.weight);
2256
      oprot.writeFieldEnd();
2245
      oprot.writeFieldEnd();
2257
    }
2246
    }
2258
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
2247
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
2259
    oprot.writeI64(this.addedOn);
2248
    oprot.writeI64(this.addedOn);
2260
    oprot.writeFieldEnd();
2249
    oprot.writeFieldEnd();
-
 
2250
    if (isSetStartDate()) {
2261
    oprot.writeFieldBegin(START_DATE_FIELD_DESC);
2251
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
2262
    oprot.writeI64(this.startDate);
2252
      oprot.writeI64(this.startDate);
2263
    oprot.writeFieldEnd();
2253
      oprot.writeFieldEnd();
-
 
2254
    }
-
 
2255
    if (isSetRetireDate()) {
2264
    oprot.writeFieldBegin(RETIRE_DATE_FIELD_DESC);
2256
      oprot.writeFieldBegin(RETIRE_DATE_FIELD_DESC);
2265
    oprot.writeI64(this.retireDate);
2257
      oprot.writeI64(this.retireDate);
2266
    oprot.writeFieldEnd();
2258
      oprot.writeFieldEnd();
-
 
2259
    }
2267
    if (this.itemStatus != null) {
2260
    if (this.itemStatus != null) {
2268
      oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
2261
      oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
2269
      oprot.writeI32(this.itemStatus.getValue());
2262
      oprot.writeI32(this.itemStatus.getValue());
2270
      oprot.writeFieldEnd();
2263
      oprot.writeFieldEnd();
2271
    }
2264
    }
Line 2295... Line 2288...
2295
    if (isSetBestDealValue()) {
2288
    if (isSetBestDealValue()) {
2296
      oprot.writeFieldBegin(BEST_DEAL_VALUE_FIELD_DESC);
2289
      oprot.writeFieldBegin(BEST_DEAL_VALUE_FIELD_DESC);
2297
      oprot.writeDouble(this.bestDealValue);
2290
      oprot.writeDouble(this.bestDealValue);
2298
      oprot.writeFieldEnd();
2291
      oprot.writeFieldEnd();
2299
    }
2292
    }
-
 
2293
    if (isSetDealerPrice()) {
2300
    oprot.writeFieldBegin(DEALER_PRICE_FIELD_DESC);
2294
      oprot.writeFieldBegin(DEALER_PRICE_FIELD_DESC);
2301
    oprot.writeDouble(this.dealerPrice);
2295
      oprot.writeDouble(this.dealerPrice);
2302
    oprot.writeFieldEnd();
2296
      oprot.writeFieldEnd();
-
 
2297
    }
2303
    oprot.writeFieldBegin(DEFAULT_FOR_ENTITY_FIELD_DESC);
2298
    oprot.writeFieldBegin(DEFAULT_FOR_ENTITY_FIELD_DESC);
2304
    oprot.writeBool(this.defaultForEntity);
2299
    oprot.writeBool(this.defaultForEntity);
2305
    oprot.writeFieldEnd();
2300
    oprot.writeFieldEnd();
2306
    oprot.writeFieldBegin(UPDATED_ON_FIELD_DESC);
2301
    oprot.writeFieldBegin(UPDATED_ON_FIELD_DESC);
2307
    oprot.writeI64(this.updatedOn);
2302
    oprot.writeI64(this.updatedOn);
Line 2411... Line 2406...
2411
      if (!first) sb.append(", ");
2406
      if (!first) sb.append(", ");
2412
      sb.append("mrp:");
2407
      sb.append("mrp:");
2413
      sb.append(this.mrp);
2408
      sb.append(this.mrp);
2414
      first = false;
2409
      first = false;
2415
    }
2410
    }
-
 
2411
    if (isSetMop()) {
2416
    if (!first) sb.append(", ");
2412
      if (!first) sb.append(", ");
2417
    sb.append("mop:");
2413
      sb.append("mop:");
2418
    sb.append(this.mop);
2414
      sb.append(this.mop);
2419
    first = false;
2415
      first = false;
-
 
2416
    }
2420
    if (isSetSellingPrice()) {
2417
    if (isSetSellingPrice()) {
2421
      if (!first) sb.append(", ");
2418
      if (!first) sb.append(", ");
2422
      sb.append("sellingPrice:");
2419
      sb.append("sellingPrice:");
2423
      sb.append(this.sellingPrice);
2420
      sb.append(this.sellingPrice);
2424
      first = false;
2421
      first = false;
2425
    }
2422
    }
-
 
2423
    if (isSetTransferPrice()) {
2426
    if (!first) sb.append(", ");
2424
      if (!first) sb.append(", ");
2427
    sb.append("transferPrice:");
2425
      sb.append("transferPrice:");
2428
    sb.append(this.transferPrice);
2426
      sb.append(this.transferPrice);
2429
    first = false;
2427
      first = false;
-
 
2428
    }
2430
    if (isSetWeight()) {
2429
    if (isSetWeight()) {
2431
      if (!first) sb.append(", ");
2430
      if (!first) sb.append(", ");
2432
      sb.append("weight:");
2431
      sb.append("weight:");
2433
      sb.append(this.weight);
2432
      sb.append(this.weight);
2434
      first = false;
2433
      first = false;
2435
    }
2434
    }
2436
    if (!first) sb.append(", ");
2435
    if (!first) sb.append(", ");
2437
    sb.append("addedOn:");
2436
    sb.append("addedOn:");
2438
    sb.append(this.addedOn);
2437
    sb.append(this.addedOn);
2439
    first = false;
2438
    first = false;
-
 
2439
    if (isSetStartDate()) {
2440
    if (!first) sb.append(", ");
2440
      if (!first) sb.append(", ");
2441
    sb.append("startDate:");
2441
      sb.append("startDate:");
2442
    sb.append(this.startDate);
2442
      sb.append(this.startDate);
2443
    first = false;
2443
      first = false;
-
 
2444
    }
-
 
2445
    if (isSetRetireDate()) {
2444
    if (!first) sb.append(", ");
2446
      if (!first) sb.append(", ");
2445
    sb.append("retireDate:");
2447
      sb.append("retireDate:");
2446
    sb.append(this.retireDate);
2448
      sb.append(this.retireDate);
2447
    first = false;
2449
      first = false;
-
 
2450
    }
2448
    if (!first) sb.append(", ");
2451
    if (!first) sb.append(", ");
2449
    sb.append("itemStatus:");
2452
    sb.append("itemStatus:");
2450
    if (this.itemStatus == null) {
2453
    if (this.itemStatus == null) {
2451
      sb.append("null");
2454
      sb.append("null");
2452
    } else {
2455
    } else {
Line 2489... Line 2492...
2489
      if (!first) sb.append(", ");
2492
      if (!first) sb.append(", ");
2490
      sb.append("bestDealValue:");
2493
      sb.append("bestDealValue:");
2491
      sb.append(this.bestDealValue);
2494
      sb.append(this.bestDealValue);
2492
      first = false;
2495
      first = false;
2493
    }
2496
    }
-
 
2497
    if (isSetDealerPrice()) {
2494
    if (!first) sb.append(", ");
2498
      if (!first) sb.append(", ");
2495
    sb.append("dealerPrice:");
2499
      sb.append("dealerPrice:");
2496
    sb.append(this.dealerPrice);
2500
      sb.append(this.dealerPrice);
2497
    first = false;
2501
      first = false;
-
 
2502
    }
2498
    if (!first) sb.append(", ");
2503
    if (!first) sb.append(", ");
2499
    sb.append("defaultForEntity:");
2504
    sb.append("defaultForEntity:");
2500
    sb.append(this.defaultForEntity);
2505
    sb.append(this.defaultForEntity);
2501
    first = false;
2506
    first = false;
2502
    if (!first) sb.append(", ");
2507
    if (!first) sb.append(", ");