Subversion Repositories SmartDukaan

Rev

Rev 11219 | Rev 12800 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5372 mandeep.dh 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.warehouse;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class DetailedPurchaseScan implements org.apache.thrift.TBase<DetailedPurchaseScan, DetailedPurchaseScan._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DetailedPurchaseScan");
25
 
26
  private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField PO_CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("poCreatedAt", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField SUPPLIER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierName", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBERS_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumbers", org.apache.thrift.protocol.TType.STRING, (short)4);
6494 amar.kumar 30
  private static final org.apache.thrift.protocol.TField RECEIVED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("receivedBy", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)6);
32
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)10);
36
  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)11);
37
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)12);
38
  private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)13);
39
  private static final org.apache.thrift.protocol.TField PURCHASED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("purchasedAt", org.apache.thrift.protocol.TType.I64, (short)14);
7672 rajveer 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);
8580 amar.kumar 41
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)16);
9433 amar.kumar 42
  private static final org.apache.thrift.protocol.TField TAX_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("taxType", org.apache.thrift.protocol.TType.I64, (short)17);
11219 manish.sha 43
  private static final org.apache.thrift.protocol.TField INVOICE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceDate", org.apache.thrift.protocol.TType.I64, (short)18);
12620 amit.gupta 44
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
5372 mandeep.dh 45
 
46
  private long purchaseOrderId; // required
47
  private long poCreatedAt; // required
48
  private String supplierName; // required
49
  private String invoiceNumbers; // required
6494 amar.kumar 50
  private String receivedBy; // required
5372 mandeep.dh 51
  private long itemId; // required
5545 mandeep.dh 52
  private String brand; // required
53
  private String modelName; // required
54
  private String modelNumber; // required
55
  private String color; // required
5372 mandeep.dh 56
  private double unitPrice; // required
57
  private long quantity; // required
6361 rajveer 58
  private long purchaseId; // required
59
  private long purchasedAt; // required
7672 rajveer 60
  private double nlc; // required
8580 amar.kumar 61
  private long warehouseId; // required
9433 amar.kumar 62
  private long taxType; // required
11219 manish.sha 63
  private long invoiceDate; // required
12620 amit.gupta 64
  private double mrp; // required
5372 mandeep.dh 65
 
66
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
67
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68
    PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
69
    PO_CREATED_AT((short)2, "poCreatedAt"),
70
    SUPPLIER_NAME((short)3, "supplierName"),
71
    INVOICE_NUMBERS((short)4, "invoiceNumbers"),
6494 amar.kumar 72
    RECEIVED_BY((short)5, "receivedBy"),
73
    ITEM_ID((short)6, "itemId"),
74
    BRAND((short)7, "brand"),
75
    MODEL_NAME((short)8, "modelName"),
76
    MODEL_NUMBER((short)9, "modelNumber"),
77
    COLOR((short)10, "color"),
78
    UNIT_PRICE((short)11, "unitPrice"),
79
    QUANTITY((short)12, "quantity"),
80
    PURCHASE_ID((short)13, "purchaseId"),
7672 rajveer 81
    PURCHASED_AT((short)14, "purchasedAt"),
8580 amar.kumar 82
    NLC((short)15, "nlc"),
9433 amar.kumar 83
    WAREHOUSE_ID((short)16, "warehouseId"),
11219 manish.sha 84
    TAX_TYPE((short)17, "taxType"),
12620 amit.gupta 85
    INVOICE_DATE((short)18, "invoiceDate"),
86
    MRP((short)19, "mrp");
5372 mandeep.dh 87
 
88
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
89
 
90
    static {
91
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
92
        byName.put(field.getFieldName(), field);
93
      }
94
    }
95
 
96
    /**
97
     * Find the _Fields constant that matches fieldId, or null if its not found.
98
     */
99
    public static _Fields findByThriftId(int fieldId) {
100
      switch(fieldId) {
101
        case 1: // PURCHASE_ORDER_ID
102
          return PURCHASE_ORDER_ID;
103
        case 2: // PO_CREATED_AT
104
          return PO_CREATED_AT;
105
        case 3: // SUPPLIER_NAME
106
          return SUPPLIER_NAME;
107
        case 4: // INVOICE_NUMBERS
108
          return INVOICE_NUMBERS;
6494 amar.kumar 109
        case 5: // RECEIVED_BY
110
          return RECEIVED_BY;
111
        case 6: // ITEM_ID
5372 mandeep.dh 112
          return ITEM_ID;
6494 amar.kumar 113
        case 7: // BRAND
5545 mandeep.dh 114
          return BRAND;
6494 amar.kumar 115
        case 8: // MODEL_NAME
5545 mandeep.dh 116
          return MODEL_NAME;
6494 amar.kumar 117
        case 9: // MODEL_NUMBER
5545 mandeep.dh 118
          return MODEL_NUMBER;
6494 amar.kumar 119
        case 10: // COLOR
5545 mandeep.dh 120
          return COLOR;
6494 amar.kumar 121
        case 11: // UNIT_PRICE
5372 mandeep.dh 122
          return UNIT_PRICE;
6494 amar.kumar 123
        case 12: // QUANTITY
5372 mandeep.dh 124
          return QUANTITY;
6494 amar.kumar 125
        case 13: // PURCHASE_ID
6361 rajveer 126
          return PURCHASE_ID;
6494 amar.kumar 127
        case 14: // PURCHASED_AT
6361 rajveer 128
          return PURCHASED_AT;
7672 rajveer 129
        case 15: // NLC
130
          return NLC;
8580 amar.kumar 131
        case 16: // WAREHOUSE_ID
132
          return WAREHOUSE_ID;
9433 amar.kumar 133
        case 17: // TAX_TYPE
134
          return TAX_TYPE;
11219 manish.sha 135
        case 18: // INVOICE_DATE
136
          return INVOICE_DATE;
12620 amit.gupta 137
        case 19: // MRP
138
          return MRP;
5372 mandeep.dh 139
        default:
140
          return null;
141
      }
142
    }
143
 
144
    /**
145
     * Find the _Fields constant that matches fieldId, throwing an exception
146
     * if it is not found.
147
     */
148
    public static _Fields findByThriftIdOrThrow(int fieldId) {
149
      _Fields fields = findByThriftId(fieldId);
150
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
151
      return fields;
152
    }
153
 
154
    /**
155
     * Find the _Fields constant that matches name, or null if its not found.
156
     */
157
    public static _Fields findByName(String name) {
158
      return byName.get(name);
159
    }
160
 
161
    private final short _thriftId;
162
    private final String _fieldName;
163
 
164
    _Fields(short thriftId, String fieldName) {
165
      _thriftId = thriftId;
166
      _fieldName = fieldName;
167
    }
168
 
169
    public short getThriftFieldId() {
170
      return _thriftId;
171
    }
172
 
173
    public String getFieldName() {
174
      return _fieldName;
175
    }
176
  }
177
 
178
  // isset id assignments
179
  private static final int __PURCHASEORDERID_ISSET_ID = 0;
180
  private static final int __POCREATEDAT_ISSET_ID = 1;
181
  private static final int __ITEMID_ISSET_ID = 2;
182
  private static final int __UNITPRICE_ISSET_ID = 3;
183
  private static final int __QUANTITY_ISSET_ID = 4;
6361 rajveer 184
  private static final int __PURCHASEID_ISSET_ID = 5;
185
  private static final int __PURCHASEDAT_ISSET_ID = 6;
7672 rajveer 186
  private static final int __NLC_ISSET_ID = 7;
8580 amar.kumar 187
  private static final int __WAREHOUSEID_ISSET_ID = 8;
9433 amar.kumar 188
  private static final int __TAXTYPE_ISSET_ID = 9;
11219 manish.sha 189
  private static final int __INVOICEDATE_ISSET_ID = 10;
12620 amit.gupta 190
  private static final int __MRP_ISSET_ID = 11;
191
  private BitSet __isset_bit_vector = new BitSet(12);
5372 mandeep.dh 192
 
193
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
194
  static {
195
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
196
    tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
197
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
198
    tmpMap.put(_Fields.PO_CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("poCreatedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
200
    tmpMap.put(_Fields.SUPPLIER_NAME, new org.apache.thrift.meta_data.FieldMetaData("supplierName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
202
    tmpMap.put(_Fields.INVOICE_NUMBERS, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumbers", org.apache.thrift.TFieldRequirementType.DEFAULT, 
203
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6494 amar.kumar 204
    tmpMap.put(_Fields.RECEIVED_BY, new org.apache.thrift.meta_data.FieldMetaData("receivedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5372 mandeep.dh 206
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
207
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5545 mandeep.dh 208
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5372 mandeep.dh 209
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5545 mandeep.dh 210
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
211
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
212
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
213
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
214
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5372 mandeep.dh 216
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
218
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6361 rajveer 220
    tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
221
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
222
    tmpMap.put(_Fields.PURCHASED_AT, new org.apache.thrift.meta_data.FieldMetaData("purchasedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
223
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7672 rajveer 224
    tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
225
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
8580 amar.kumar 226
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
227
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9433 amar.kumar 228
    tmpMap.put(_Fields.TAX_TYPE, new org.apache.thrift.meta_data.FieldMetaData("taxType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
229
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11219 manish.sha 230
    tmpMap.put(_Fields.INVOICE_DATE, new org.apache.thrift.meta_data.FieldMetaData("invoiceDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
231
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12620 amit.gupta 232
    tmpMap.put(_Fields.MRP, new org.apache.thrift.meta_data.FieldMetaData("mrp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
233
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
5372 mandeep.dh 234
    metaDataMap = Collections.unmodifiableMap(tmpMap);
235
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DetailedPurchaseScan.class, metaDataMap);
236
  }
237
 
238
  public DetailedPurchaseScan() {
239
  }
240
 
241
  public DetailedPurchaseScan(
242
    long purchaseOrderId,
243
    long poCreatedAt,
244
    String supplierName,
245
    String invoiceNumbers,
6494 amar.kumar 246
    String receivedBy,
5372 mandeep.dh 247
    long itemId,
5545 mandeep.dh 248
    String brand,
249
    String modelName,
250
    String modelNumber,
251
    String color,
5372 mandeep.dh 252
    double unitPrice,
6361 rajveer 253
    long quantity,
254
    long purchaseId,
7672 rajveer 255
    long purchasedAt,
8580 amar.kumar 256
    double nlc,
9433 amar.kumar 257
    long warehouseId,
11219 manish.sha 258
    long taxType,
12620 amit.gupta 259
    long invoiceDate,
260
    double mrp)
5372 mandeep.dh 261
  {
262
    this();
263
    this.purchaseOrderId = purchaseOrderId;
264
    setPurchaseOrderIdIsSet(true);
265
    this.poCreatedAt = poCreatedAt;
266
    setPoCreatedAtIsSet(true);
267
    this.supplierName = supplierName;
268
    this.invoiceNumbers = invoiceNumbers;
6494 amar.kumar 269
    this.receivedBy = receivedBy;
5372 mandeep.dh 270
    this.itemId = itemId;
271
    setItemIdIsSet(true);
5545 mandeep.dh 272
    this.brand = brand;
273
    this.modelName = modelName;
274
    this.modelNumber = modelNumber;
275
    this.color = color;
5372 mandeep.dh 276
    this.unitPrice = unitPrice;
277
    setUnitPriceIsSet(true);
278
    this.quantity = quantity;
279
    setQuantityIsSet(true);
6361 rajveer 280
    this.purchaseId = purchaseId;
281
    setPurchaseIdIsSet(true);
282
    this.purchasedAt = purchasedAt;
283
    setPurchasedAtIsSet(true);
7672 rajveer 284
    this.nlc = nlc;
285
    setNlcIsSet(true);
8580 amar.kumar 286
    this.warehouseId = warehouseId;
287
    setWarehouseIdIsSet(true);
9433 amar.kumar 288
    this.taxType = taxType;
289
    setTaxTypeIsSet(true);
11219 manish.sha 290
    this.invoiceDate = invoiceDate;
291
    setInvoiceDateIsSet(true);
12620 amit.gupta 292
    this.mrp = mrp;
293
    setMrpIsSet(true);
5372 mandeep.dh 294
  }
295
 
296
  /**
297
   * Performs a deep copy on <i>other</i>.
298
   */
299
  public DetailedPurchaseScan(DetailedPurchaseScan other) {
300
    __isset_bit_vector.clear();
301
    __isset_bit_vector.or(other.__isset_bit_vector);
302
    this.purchaseOrderId = other.purchaseOrderId;
303
    this.poCreatedAt = other.poCreatedAt;
304
    if (other.isSetSupplierName()) {
305
      this.supplierName = other.supplierName;
306
    }
307
    if (other.isSetInvoiceNumbers()) {
308
      this.invoiceNumbers = other.invoiceNumbers;
309
    }
6494 amar.kumar 310
    if (other.isSetReceivedBy()) {
311
      this.receivedBy = other.receivedBy;
312
    }
5372 mandeep.dh 313
    this.itemId = other.itemId;
5545 mandeep.dh 314
    if (other.isSetBrand()) {
315
      this.brand = other.brand;
5372 mandeep.dh 316
    }
5545 mandeep.dh 317
    if (other.isSetModelName()) {
318
      this.modelName = other.modelName;
319
    }
320
    if (other.isSetModelNumber()) {
321
      this.modelNumber = other.modelNumber;
322
    }
323
    if (other.isSetColor()) {
324
      this.color = other.color;
325
    }
5372 mandeep.dh 326
    this.unitPrice = other.unitPrice;
327
    this.quantity = other.quantity;
6361 rajveer 328
    this.purchaseId = other.purchaseId;
329
    this.purchasedAt = other.purchasedAt;
7672 rajveer 330
    this.nlc = other.nlc;
8580 amar.kumar 331
    this.warehouseId = other.warehouseId;
9433 amar.kumar 332
    this.taxType = other.taxType;
11219 manish.sha 333
    this.invoiceDate = other.invoiceDate;
12620 amit.gupta 334
    this.mrp = other.mrp;
5372 mandeep.dh 335
  }
336
 
337
  public DetailedPurchaseScan deepCopy() {
338
    return new DetailedPurchaseScan(this);
339
  }
340
 
341
  @Override
342
  public void clear() {
343
    setPurchaseOrderIdIsSet(false);
344
    this.purchaseOrderId = 0;
345
    setPoCreatedAtIsSet(false);
346
    this.poCreatedAt = 0;
347
    this.supplierName = null;
348
    this.invoiceNumbers = null;
6494 amar.kumar 349
    this.receivedBy = null;
5372 mandeep.dh 350
    setItemIdIsSet(false);
351
    this.itemId = 0;
5545 mandeep.dh 352
    this.brand = null;
353
    this.modelName = null;
354
    this.modelNumber = null;
355
    this.color = null;
5372 mandeep.dh 356
    setUnitPriceIsSet(false);
357
    this.unitPrice = 0.0;
358
    setQuantityIsSet(false);
359
    this.quantity = 0;
6361 rajveer 360
    setPurchaseIdIsSet(false);
361
    this.purchaseId = 0;
362
    setPurchasedAtIsSet(false);
363
    this.purchasedAt = 0;
7672 rajveer 364
    setNlcIsSet(false);
365
    this.nlc = 0.0;
8580 amar.kumar 366
    setWarehouseIdIsSet(false);
367
    this.warehouseId = 0;
9433 amar.kumar 368
    setTaxTypeIsSet(false);
369
    this.taxType = 0;
11219 manish.sha 370
    setInvoiceDateIsSet(false);
371
    this.invoiceDate = 0;
12620 amit.gupta 372
    setMrpIsSet(false);
373
    this.mrp = 0.0;
5372 mandeep.dh 374
  }
375
 
376
  public long getPurchaseOrderId() {
377
    return this.purchaseOrderId;
378
  }
379
 
380
  public void setPurchaseOrderId(long purchaseOrderId) {
381
    this.purchaseOrderId = purchaseOrderId;
382
    setPurchaseOrderIdIsSet(true);
383
  }
384
 
385
  public void unsetPurchaseOrderId() {
386
    __isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
387
  }
388
 
389
  /** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
390
  public boolean isSetPurchaseOrderId() {
391
    return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
392
  }
393
 
394
  public void setPurchaseOrderIdIsSet(boolean value) {
395
    __isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
396
  }
397
 
398
  public long getPoCreatedAt() {
399
    return this.poCreatedAt;
400
  }
401
 
402
  public void setPoCreatedAt(long poCreatedAt) {
403
    this.poCreatedAt = poCreatedAt;
404
    setPoCreatedAtIsSet(true);
405
  }
406
 
407
  public void unsetPoCreatedAt() {
408
    __isset_bit_vector.clear(__POCREATEDAT_ISSET_ID);
409
  }
410
 
411
  /** Returns true if field poCreatedAt is set (has been assigned a value) and false otherwise */
412
  public boolean isSetPoCreatedAt() {
413
    return __isset_bit_vector.get(__POCREATEDAT_ISSET_ID);
414
  }
415
 
416
  public void setPoCreatedAtIsSet(boolean value) {
417
    __isset_bit_vector.set(__POCREATEDAT_ISSET_ID, value);
418
  }
419
 
420
  public String getSupplierName() {
421
    return this.supplierName;
422
  }
423
 
424
  public void setSupplierName(String supplierName) {
425
    this.supplierName = supplierName;
426
  }
427
 
428
  public void unsetSupplierName() {
429
    this.supplierName = null;
430
  }
431
 
432
  /** Returns true if field supplierName is set (has been assigned a value) and false otherwise */
433
  public boolean isSetSupplierName() {
434
    return this.supplierName != null;
435
  }
436
 
437
  public void setSupplierNameIsSet(boolean value) {
438
    if (!value) {
439
      this.supplierName = null;
440
    }
441
  }
442
 
443
  public String getInvoiceNumbers() {
444
    return this.invoiceNumbers;
445
  }
446
 
447
  public void setInvoiceNumbers(String invoiceNumbers) {
448
    this.invoiceNumbers = invoiceNumbers;
449
  }
450
 
451
  public void unsetInvoiceNumbers() {
452
    this.invoiceNumbers = null;
453
  }
454
 
455
  /** Returns true if field invoiceNumbers is set (has been assigned a value) and false otherwise */
456
  public boolean isSetInvoiceNumbers() {
457
    return this.invoiceNumbers != null;
458
  }
459
 
460
  public void setInvoiceNumbersIsSet(boolean value) {
461
    if (!value) {
462
      this.invoiceNumbers = null;
463
    }
464
  }
465
 
6494 amar.kumar 466
  public String getReceivedBy() {
467
    return this.receivedBy;
468
  }
469
 
470
  public void setReceivedBy(String receivedBy) {
471
    this.receivedBy = receivedBy;
472
  }
473
 
474
  public void unsetReceivedBy() {
475
    this.receivedBy = null;
476
  }
477
 
478
  /** Returns true if field receivedBy is set (has been assigned a value) and false otherwise */
479
  public boolean isSetReceivedBy() {
480
    return this.receivedBy != null;
481
  }
482
 
483
  public void setReceivedByIsSet(boolean value) {
484
    if (!value) {
485
      this.receivedBy = null;
486
    }
487
  }
488
 
5372 mandeep.dh 489
  public long getItemId() {
490
    return this.itemId;
491
  }
492
 
493
  public void setItemId(long itemId) {
494
    this.itemId = itemId;
495
    setItemIdIsSet(true);
496
  }
497
 
498
  public void unsetItemId() {
499
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
500
  }
501
 
502
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
503
  public boolean isSetItemId() {
504
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
505
  }
506
 
507
  public void setItemIdIsSet(boolean value) {
508
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
509
  }
510
 
5545 mandeep.dh 511
  public String getBrand() {
512
    return this.brand;
5372 mandeep.dh 513
  }
514
 
5545 mandeep.dh 515
  public void setBrand(String brand) {
516
    this.brand = brand;
5372 mandeep.dh 517
  }
518
 
5545 mandeep.dh 519
  public void unsetBrand() {
520
    this.brand = null;
5372 mandeep.dh 521
  }
522
 
5545 mandeep.dh 523
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
524
  public boolean isSetBrand() {
525
    return this.brand != null;
5372 mandeep.dh 526
  }
527
 
5545 mandeep.dh 528
  public void setBrandIsSet(boolean value) {
5372 mandeep.dh 529
    if (!value) {
5545 mandeep.dh 530
      this.brand = null;
5372 mandeep.dh 531
    }
532
  }
533
 
5545 mandeep.dh 534
  public String getModelName() {
535
    return this.modelName;
536
  }
537
 
538
  public void setModelName(String modelName) {
539
    this.modelName = modelName;
540
  }
541
 
542
  public void unsetModelName() {
543
    this.modelName = null;
544
  }
545
 
546
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
547
  public boolean isSetModelName() {
548
    return this.modelName != null;
549
  }
550
 
551
  public void setModelNameIsSet(boolean value) {
552
    if (!value) {
553
      this.modelName = null;
554
    }
555
  }
556
 
557
  public String getModelNumber() {
558
    return this.modelNumber;
559
  }
560
 
561
  public void setModelNumber(String modelNumber) {
562
    this.modelNumber = modelNumber;
563
  }
564
 
565
  public void unsetModelNumber() {
566
    this.modelNumber = null;
567
  }
568
 
569
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
570
  public boolean isSetModelNumber() {
571
    return this.modelNumber != null;
572
  }
573
 
574
  public void setModelNumberIsSet(boolean value) {
575
    if (!value) {
576
      this.modelNumber = null;
577
    }
578
  }
579
 
580
  public String getColor() {
581
    return this.color;
582
  }
583
 
584
  public void setColor(String color) {
585
    this.color = color;
586
  }
587
 
588
  public void unsetColor() {
589
    this.color = null;
590
  }
591
 
592
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
593
  public boolean isSetColor() {
594
    return this.color != null;
595
  }
596
 
597
  public void setColorIsSet(boolean value) {
598
    if (!value) {
599
      this.color = null;
600
    }
601
  }
602
 
5372 mandeep.dh 603
  public double getUnitPrice() {
604
    return this.unitPrice;
605
  }
606
 
607
  public void setUnitPrice(double unitPrice) {
608
    this.unitPrice = unitPrice;
609
    setUnitPriceIsSet(true);
610
  }
611
 
612
  public void unsetUnitPrice() {
613
    __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
614
  }
615
 
616
  /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
617
  public boolean isSetUnitPrice() {
618
    return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
619
  }
620
 
621
  public void setUnitPriceIsSet(boolean value) {
622
    __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
623
  }
624
 
625
  public long getQuantity() {
626
    return this.quantity;
627
  }
628
 
629
  public void setQuantity(long quantity) {
630
    this.quantity = quantity;
631
    setQuantityIsSet(true);
632
  }
633
 
634
  public void unsetQuantity() {
635
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
636
  }
637
 
638
  /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
639
  public boolean isSetQuantity() {
640
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
641
  }
642
 
643
  public void setQuantityIsSet(boolean value) {
644
    __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
645
  }
646
 
6361 rajveer 647
  public long getPurchaseId() {
648
    return this.purchaseId;
649
  }
650
 
651
  public void setPurchaseId(long purchaseId) {
652
    this.purchaseId = purchaseId;
653
    setPurchaseIdIsSet(true);
654
  }
655
 
656
  public void unsetPurchaseId() {
657
    __isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
658
  }
659
 
660
  /** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
661
  public boolean isSetPurchaseId() {
662
    return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
663
  }
664
 
665
  public void setPurchaseIdIsSet(boolean value) {
666
    __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
667
  }
668
 
669
  public long getPurchasedAt() {
670
    return this.purchasedAt;
671
  }
672
 
673
  public void setPurchasedAt(long purchasedAt) {
674
    this.purchasedAt = purchasedAt;
675
    setPurchasedAtIsSet(true);
676
  }
677
 
678
  public void unsetPurchasedAt() {
679
    __isset_bit_vector.clear(__PURCHASEDAT_ISSET_ID);
680
  }
681
 
682
  /** Returns true if field purchasedAt is set (has been assigned a value) and false otherwise */
683
  public boolean isSetPurchasedAt() {
684
    return __isset_bit_vector.get(__PURCHASEDAT_ISSET_ID);
685
  }
686
 
687
  public void setPurchasedAtIsSet(boolean value) {
688
    __isset_bit_vector.set(__PURCHASEDAT_ISSET_ID, value);
689
  }
690
 
7672 rajveer 691
  public double getNlc() {
692
    return this.nlc;
693
  }
694
 
695
  public void setNlc(double nlc) {
696
    this.nlc = nlc;
697
    setNlcIsSet(true);
698
  }
699
 
700
  public void unsetNlc() {
701
    __isset_bit_vector.clear(__NLC_ISSET_ID);
702
  }
703
 
704
  /** Returns true if field nlc is set (has been assigned a value) and false otherwise */
705
  public boolean isSetNlc() {
706
    return __isset_bit_vector.get(__NLC_ISSET_ID);
707
  }
708
 
709
  public void setNlcIsSet(boolean value) {
710
    __isset_bit_vector.set(__NLC_ISSET_ID, value);
711
  }
712
 
8580 amar.kumar 713
  public long getWarehouseId() {
714
    return this.warehouseId;
715
  }
716
 
717
  public void setWarehouseId(long warehouseId) {
718
    this.warehouseId = warehouseId;
719
    setWarehouseIdIsSet(true);
720
  }
721
 
722
  public void unsetWarehouseId() {
723
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
724
  }
725
 
726
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
727
  public boolean isSetWarehouseId() {
728
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
729
  }
730
 
731
  public void setWarehouseIdIsSet(boolean value) {
732
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
733
  }
734
 
9433 amar.kumar 735
  public long getTaxType() {
736
    return this.taxType;
737
  }
738
 
739
  public void setTaxType(long taxType) {
740
    this.taxType = taxType;
741
    setTaxTypeIsSet(true);
742
  }
743
 
744
  public void unsetTaxType() {
745
    __isset_bit_vector.clear(__TAXTYPE_ISSET_ID);
746
  }
747
 
748
  /** Returns true if field taxType is set (has been assigned a value) and false otherwise */
749
  public boolean isSetTaxType() {
750
    return __isset_bit_vector.get(__TAXTYPE_ISSET_ID);
751
  }
752
 
753
  public void setTaxTypeIsSet(boolean value) {
754
    __isset_bit_vector.set(__TAXTYPE_ISSET_ID, value);
755
  }
756
 
11219 manish.sha 757
  public long getInvoiceDate() {
758
    return this.invoiceDate;
759
  }
760
 
761
  public void setInvoiceDate(long invoiceDate) {
762
    this.invoiceDate = invoiceDate;
763
    setInvoiceDateIsSet(true);
764
  }
765
 
766
  public void unsetInvoiceDate() {
767
    __isset_bit_vector.clear(__INVOICEDATE_ISSET_ID);
768
  }
769
 
770
  /** Returns true if field invoiceDate is set (has been assigned a value) and false otherwise */
771
  public boolean isSetInvoiceDate() {
772
    return __isset_bit_vector.get(__INVOICEDATE_ISSET_ID);
773
  }
774
 
775
  public void setInvoiceDateIsSet(boolean value) {
776
    __isset_bit_vector.set(__INVOICEDATE_ISSET_ID, value);
777
  }
778
 
12620 amit.gupta 779
  public double getMrp() {
780
    return this.mrp;
781
  }
782
 
783
  public void setMrp(double mrp) {
784
    this.mrp = mrp;
785
    setMrpIsSet(true);
786
  }
787
 
788
  public void unsetMrp() {
789
    __isset_bit_vector.clear(__MRP_ISSET_ID);
790
  }
791
 
792
  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
793
  public boolean isSetMrp() {
794
    return __isset_bit_vector.get(__MRP_ISSET_ID);
795
  }
796
 
797
  public void setMrpIsSet(boolean value) {
798
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
799
  }
800
 
5372 mandeep.dh 801
  public void setFieldValue(_Fields field, Object value) {
802
    switch (field) {
803
    case PURCHASE_ORDER_ID:
804
      if (value == null) {
805
        unsetPurchaseOrderId();
806
      } else {
807
        setPurchaseOrderId((Long)value);
808
      }
809
      break;
810
 
811
    case PO_CREATED_AT:
812
      if (value == null) {
813
        unsetPoCreatedAt();
814
      } else {
815
        setPoCreatedAt((Long)value);
816
      }
817
      break;
818
 
819
    case SUPPLIER_NAME:
820
      if (value == null) {
821
        unsetSupplierName();
822
      } else {
823
        setSupplierName((String)value);
824
      }
825
      break;
826
 
827
    case INVOICE_NUMBERS:
828
      if (value == null) {
829
        unsetInvoiceNumbers();
830
      } else {
831
        setInvoiceNumbers((String)value);
832
      }
833
      break;
834
 
6494 amar.kumar 835
    case RECEIVED_BY:
836
      if (value == null) {
837
        unsetReceivedBy();
838
      } else {
839
        setReceivedBy((String)value);
840
      }
841
      break;
842
 
5372 mandeep.dh 843
    case ITEM_ID:
844
      if (value == null) {
845
        unsetItemId();
846
      } else {
847
        setItemId((Long)value);
848
      }
849
      break;
850
 
5545 mandeep.dh 851
    case BRAND:
5372 mandeep.dh 852
      if (value == null) {
5545 mandeep.dh 853
        unsetBrand();
5372 mandeep.dh 854
      } else {
5545 mandeep.dh 855
        setBrand((String)value);
5372 mandeep.dh 856
      }
857
      break;
858
 
5545 mandeep.dh 859
    case MODEL_NAME:
860
      if (value == null) {
861
        unsetModelName();
862
      } else {
863
        setModelName((String)value);
864
      }
865
      break;
866
 
867
    case MODEL_NUMBER:
868
      if (value == null) {
869
        unsetModelNumber();
870
      } else {
871
        setModelNumber((String)value);
872
      }
873
      break;
874
 
875
    case COLOR:
876
      if (value == null) {
877
        unsetColor();
878
      } else {
879
        setColor((String)value);
880
      }
881
      break;
882
 
5372 mandeep.dh 883
    case UNIT_PRICE:
884
      if (value == null) {
885
        unsetUnitPrice();
886
      } else {
887
        setUnitPrice((Double)value);
888
      }
889
      break;
890
 
891
    case QUANTITY:
892
      if (value == null) {
893
        unsetQuantity();
894
      } else {
895
        setQuantity((Long)value);
896
      }
897
      break;
898
 
6361 rajveer 899
    case PURCHASE_ID:
900
      if (value == null) {
901
        unsetPurchaseId();
902
      } else {
903
        setPurchaseId((Long)value);
904
      }
905
      break;
906
 
907
    case PURCHASED_AT:
908
      if (value == null) {
909
        unsetPurchasedAt();
910
      } else {
911
        setPurchasedAt((Long)value);
912
      }
913
      break;
914
 
7672 rajveer 915
    case NLC:
916
      if (value == null) {
917
        unsetNlc();
918
      } else {
919
        setNlc((Double)value);
920
      }
921
      break;
922
 
8580 amar.kumar 923
    case WAREHOUSE_ID:
924
      if (value == null) {
925
        unsetWarehouseId();
926
      } else {
927
        setWarehouseId((Long)value);
928
      }
929
      break;
930
 
9433 amar.kumar 931
    case TAX_TYPE:
932
      if (value == null) {
933
        unsetTaxType();
934
      } else {
935
        setTaxType((Long)value);
936
      }
937
      break;
938
 
11219 manish.sha 939
    case INVOICE_DATE:
940
      if (value == null) {
941
        unsetInvoiceDate();
942
      } else {
943
        setInvoiceDate((Long)value);
944
      }
945
      break;
946
 
12620 amit.gupta 947
    case MRP:
948
      if (value == null) {
949
        unsetMrp();
950
      } else {
951
        setMrp((Double)value);
952
      }
953
      break;
954
 
5372 mandeep.dh 955
    }
956
  }
957
 
958
  public Object getFieldValue(_Fields field) {
959
    switch (field) {
960
    case PURCHASE_ORDER_ID:
961
      return Long.valueOf(getPurchaseOrderId());
962
 
963
    case PO_CREATED_AT:
964
      return Long.valueOf(getPoCreatedAt());
965
 
966
    case SUPPLIER_NAME:
967
      return getSupplierName();
968
 
969
    case INVOICE_NUMBERS:
970
      return getInvoiceNumbers();
971
 
6494 amar.kumar 972
    case RECEIVED_BY:
973
      return getReceivedBy();
974
 
5372 mandeep.dh 975
    case ITEM_ID:
976
      return Long.valueOf(getItemId());
977
 
5545 mandeep.dh 978
    case BRAND:
979
      return getBrand();
5372 mandeep.dh 980
 
5545 mandeep.dh 981
    case MODEL_NAME:
982
      return getModelName();
983
 
984
    case MODEL_NUMBER:
985
      return getModelNumber();
986
 
987
    case COLOR:
988
      return getColor();
989
 
5372 mandeep.dh 990
    case UNIT_PRICE:
991
      return Double.valueOf(getUnitPrice());
992
 
993
    case QUANTITY:
994
      return Long.valueOf(getQuantity());
995
 
6361 rajveer 996
    case PURCHASE_ID:
997
      return Long.valueOf(getPurchaseId());
998
 
999
    case PURCHASED_AT:
1000
      return Long.valueOf(getPurchasedAt());
1001
 
7672 rajveer 1002
    case NLC:
1003
      return Double.valueOf(getNlc());
1004
 
8580 amar.kumar 1005
    case WAREHOUSE_ID:
1006
      return Long.valueOf(getWarehouseId());
1007
 
9433 amar.kumar 1008
    case TAX_TYPE:
1009
      return Long.valueOf(getTaxType());
1010
 
11219 manish.sha 1011
    case INVOICE_DATE:
1012
      return Long.valueOf(getInvoiceDate());
1013
 
12620 amit.gupta 1014
    case MRP:
1015
      return Double.valueOf(getMrp());
1016
 
5372 mandeep.dh 1017
    }
1018
    throw new IllegalStateException();
1019
  }
1020
 
1021
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1022
  public boolean isSet(_Fields field) {
1023
    if (field == null) {
1024
      throw new IllegalArgumentException();
1025
    }
1026
 
1027
    switch (field) {
1028
    case PURCHASE_ORDER_ID:
1029
      return isSetPurchaseOrderId();
1030
    case PO_CREATED_AT:
1031
      return isSetPoCreatedAt();
1032
    case SUPPLIER_NAME:
1033
      return isSetSupplierName();
1034
    case INVOICE_NUMBERS:
1035
      return isSetInvoiceNumbers();
6494 amar.kumar 1036
    case RECEIVED_BY:
1037
      return isSetReceivedBy();
5372 mandeep.dh 1038
    case ITEM_ID:
1039
      return isSetItemId();
5545 mandeep.dh 1040
    case BRAND:
1041
      return isSetBrand();
1042
    case MODEL_NAME:
1043
      return isSetModelName();
1044
    case MODEL_NUMBER:
1045
      return isSetModelNumber();
1046
    case COLOR:
1047
      return isSetColor();
5372 mandeep.dh 1048
    case UNIT_PRICE:
1049
      return isSetUnitPrice();
1050
    case QUANTITY:
1051
      return isSetQuantity();
6361 rajveer 1052
    case PURCHASE_ID:
1053
      return isSetPurchaseId();
1054
    case PURCHASED_AT:
1055
      return isSetPurchasedAt();
7672 rajveer 1056
    case NLC:
1057
      return isSetNlc();
8580 amar.kumar 1058
    case WAREHOUSE_ID:
1059
      return isSetWarehouseId();
9433 amar.kumar 1060
    case TAX_TYPE:
1061
      return isSetTaxType();
11219 manish.sha 1062
    case INVOICE_DATE:
1063
      return isSetInvoiceDate();
12620 amit.gupta 1064
    case MRP:
1065
      return isSetMrp();
5372 mandeep.dh 1066
    }
1067
    throw new IllegalStateException();
1068
  }
1069
 
1070
  @Override
1071
  public boolean equals(Object that) {
1072
    if (that == null)
1073
      return false;
1074
    if (that instanceof DetailedPurchaseScan)
1075
      return this.equals((DetailedPurchaseScan)that);
1076
    return false;
1077
  }
1078
 
1079
  public boolean equals(DetailedPurchaseScan that) {
1080
    if (that == null)
1081
      return false;
1082
 
1083
    boolean this_present_purchaseOrderId = true;
1084
    boolean that_present_purchaseOrderId = true;
1085
    if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
1086
      if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
1087
        return false;
1088
      if (this.purchaseOrderId != that.purchaseOrderId)
1089
        return false;
1090
    }
1091
 
1092
    boolean this_present_poCreatedAt = true;
1093
    boolean that_present_poCreatedAt = true;
1094
    if (this_present_poCreatedAt || that_present_poCreatedAt) {
1095
      if (!(this_present_poCreatedAt && that_present_poCreatedAt))
1096
        return false;
1097
      if (this.poCreatedAt != that.poCreatedAt)
1098
        return false;
1099
    }
1100
 
1101
    boolean this_present_supplierName = true && this.isSetSupplierName();
1102
    boolean that_present_supplierName = true && that.isSetSupplierName();
1103
    if (this_present_supplierName || that_present_supplierName) {
1104
      if (!(this_present_supplierName && that_present_supplierName))
1105
        return false;
1106
      if (!this.supplierName.equals(that.supplierName))
1107
        return false;
1108
    }
1109
 
1110
    boolean this_present_invoiceNumbers = true && this.isSetInvoiceNumbers();
1111
    boolean that_present_invoiceNumbers = true && that.isSetInvoiceNumbers();
1112
    if (this_present_invoiceNumbers || that_present_invoiceNumbers) {
1113
      if (!(this_present_invoiceNumbers && that_present_invoiceNumbers))
1114
        return false;
1115
      if (!this.invoiceNumbers.equals(that.invoiceNumbers))
1116
        return false;
1117
    }
1118
 
6494 amar.kumar 1119
    boolean this_present_receivedBy = true && this.isSetReceivedBy();
1120
    boolean that_present_receivedBy = true && that.isSetReceivedBy();
1121
    if (this_present_receivedBy || that_present_receivedBy) {
1122
      if (!(this_present_receivedBy && that_present_receivedBy))
1123
        return false;
1124
      if (!this.receivedBy.equals(that.receivedBy))
1125
        return false;
1126
    }
1127
 
5372 mandeep.dh 1128
    boolean this_present_itemId = true;
1129
    boolean that_present_itemId = true;
1130
    if (this_present_itemId || that_present_itemId) {
1131
      if (!(this_present_itemId && that_present_itemId))
1132
        return false;
1133
      if (this.itemId != that.itemId)
1134
        return false;
1135
    }
1136
 
5545 mandeep.dh 1137
    boolean this_present_brand = true && this.isSetBrand();
1138
    boolean that_present_brand = true && that.isSetBrand();
1139
    if (this_present_brand || that_present_brand) {
1140
      if (!(this_present_brand && that_present_brand))
5372 mandeep.dh 1141
        return false;
5545 mandeep.dh 1142
      if (!this.brand.equals(that.brand))
5372 mandeep.dh 1143
        return false;
1144
    }
1145
 
5545 mandeep.dh 1146
    boolean this_present_modelName = true && this.isSetModelName();
1147
    boolean that_present_modelName = true && that.isSetModelName();
1148
    if (this_present_modelName || that_present_modelName) {
1149
      if (!(this_present_modelName && that_present_modelName))
1150
        return false;
1151
      if (!this.modelName.equals(that.modelName))
1152
        return false;
1153
    }
1154
 
1155
    boolean this_present_modelNumber = true && this.isSetModelNumber();
1156
    boolean that_present_modelNumber = true && that.isSetModelNumber();
1157
    if (this_present_modelNumber || that_present_modelNumber) {
1158
      if (!(this_present_modelNumber && that_present_modelNumber))
1159
        return false;
1160
      if (!this.modelNumber.equals(that.modelNumber))
1161
        return false;
1162
    }
1163
 
1164
    boolean this_present_color = true && this.isSetColor();
1165
    boolean that_present_color = true && that.isSetColor();
1166
    if (this_present_color || that_present_color) {
1167
      if (!(this_present_color && that_present_color))
1168
        return false;
1169
      if (!this.color.equals(that.color))
1170
        return false;
1171
    }
1172
 
5372 mandeep.dh 1173
    boolean this_present_unitPrice = true;
1174
    boolean that_present_unitPrice = true;
1175
    if (this_present_unitPrice || that_present_unitPrice) {
1176
      if (!(this_present_unitPrice && that_present_unitPrice))
1177
        return false;
1178
      if (this.unitPrice != that.unitPrice)
1179
        return false;
1180
    }
1181
 
1182
    boolean this_present_quantity = true;
1183
    boolean that_present_quantity = true;
1184
    if (this_present_quantity || that_present_quantity) {
1185
      if (!(this_present_quantity && that_present_quantity))
1186
        return false;
1187
      if (this.quantity != that.quantity)
1188
        return false;
1189
    }
1190
 
6361 rajveer 1191
    boolean this_present_purchaseId = true;
1192
    boolean that_present_purchaseId = true;
1193
    if (this_present_purchaseId || that_present_purchaseId) {
1194
      if (!(this_present_purchaseId && that_present_purchaseId))
1195
        return false;
1196
      if (this.purchaseId != that.purchaseId)
1197
        return false;
1198
    }
1199
 
1200
    boolean this_present_purchasedAt = true;
1201
    boolean that_present_purchasedAt = true;
1202
    if (this_present_purchasedAt || that_present_purchasedAt) {
1203
      if (!(this_present_purchasedAt && that_present_purchasedAt))
1204
        return false;
1205
      if (this.purchasedAt != that.purchasedAt)
1206
        return false;
1207
    }
1208
 
7672 rajveer 1209
    boolean this_present_nlc = true;
1210
    boolean that_present_nlc = true;
1211
    if (this_present_nlc || that_present_nlc) {
1212
      if (!(this_present_nlc && that_present_nlc))
1213
        return false;
1214
      if (this.nlc != that.nlc)
1215
        return false;
1216
    }
1217
 
8580 amar.kumar 1218
    boolean this_present_warehouseId = true;
1219
    boolean that_present_warehouseId = true;
1220
    if (this_present_warehouseId || that_present_warehouseId) {
1221
      if (!(this_present_warehouseId && that_present_warehouseId))
1222
        return false;
1223
      if (this.warehouseId != that.warehouseId)
1224
        return false;
1225
    }
1226
 
9433 amar.kumar 1227
    boolean this_present_taxType = true;
1228
    boolean that_present_taxType = true;
1229
    if (this_present_taxType || that_present_taxType) {
1230
      if (!(this_present_taxType && that_present_taxType))
1231
        return false;
1232
      if (this.taxType != that.taxType)
1233
        return false;
1234
    }
1235
 
11219 manish.sha 1236
    boolean this_present_invoiceDate = true;
1237
    boolean that_present_invoiceDate = true;
1238
    if (this_present_invoiceDate || that_present_invoiceDate) {
1239
      if (!(this_present_invoiceDate && that_present_invoiceDate))
1240
        return false;
1241
      if (this.invoiceDate != that.invoiceDate)
1242
        return false;
1243
    }
1244
 
12620 amit.gupta 1245
    boolean this_present_mrp = true;
1246
    boolean that_present_mrp = true;
1247
    if (this_present_mrp || that_present_mrp) {
1248
      if (!(this_present_mrp && that_present_mrp))
1249
        return false;
1250
      if (this.mrp != that.mrp)
1251
        return false;
1252
    }
1253
 
5372 mandeep.dh 1254
    return true;
1255
  }
1256
 
1257
  @Override
1258
  public int hashCode() {
1259
    return 0;
1260
  }
1261
 
1262
  public int compareTo(DetailedPurchaseScan other) {
1263
    if (!getClass().equals(other.getClass())) {
1264
      return getClass().getName().compareTo(other.getClass().getName());
1265
    }
1266
 
1267
    int lastComparison = 0;
1268
    DetailedPurchaseScan typedOther = (DetailedPurchaseScan)other;
1269
 
1270
    lastComparison = Boolean.valueOf(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
1271
    if (lastComparison != 0) {
1272
      return lastComparison;
1273
    }
1274
    if (isSetPurchaseOrderId()) {
1275
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
1276
      if (lastComparison != 0) {
1277
        return lastComparison;
1278
      }
1279
    }
1280
    lastComparison = Boolean.valueOf(isSetPoCreatedAt()).compareTo(typedOther.isSetPoCreatedAt());
1281
    if (lastComparison != 0) {
1282
      return lastComparison;
1283
    }
1284
    if (isSetPoCreatedAt()) {
1285
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.poCreatedAt, typedOther.poCreatedAt);
1286
      if (lastComparison != 0) {
1287
        return lastComparison;
1288
      }
1289
    }
1290
    lastComparison = Boolean.valueOf(isSetSupplierName()).compareTo(typedOther.isSetSupplierName());
1291
    if (lastComparison != 0) {
1292
      return lastComparison;
1293
    }
1294
    if (isSetSupplierName()) {
1295
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplierName, typedOther.supplierName);
1296
      if (lastComparison != 0) {
1297
        return lastComparison;
1298
      }
1299
    }
1300
    lastComparison = Boolean.valueOf(isSetInvoiceNumbers()).compareTo(typedOther.isSetInvoiceNumbers());
1301
    if (lastComparison != 0) {
1302
      return lastComparison;
1303
    }
1304
    if (isSetInvoiceNumbers()) {
1305
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumbers, typedOther.invoiceNumbers);
1306
      if (lastComparison != 0) {
1307
        return lastComparison;
1308
      }
1309
    }
6494 amar.kumar 1310
    lastComparison = Boolean.valueOf(isSetReceivedBy()).compareTo(typedOther.isSetReceivedBy());
1311
    if (lastComparison != 0) {
1312
      return lastComparison;
1313
    }
1314
    if (isSetReceivedBy()) {
1315
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receivedBy, typedOther.receivedBy);
1316
      if (lastComparison != 0) {
1317
        return lastComparison;
1318
      }
1319
    }
5372 mandeep.dh 1320
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
1321
    if (lastComparison != 0) {
1322
      return lastComparison;
1323
    }
1324
    if (isSetItemId()) {
1325
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
1326
      if (lastComparison != 0) {
1327
        return lastComparison;
1328
      }
1329
    }
5545 mandeep.dh 1330
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
5372 mandeep.dh 1331
    if (lastComparison != 0) {
1332
      return lastComparison;
1333
    }
5545 mandeep.dh 1334
    if (isSetBrand()) {
1335
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
5372 mandeep.dh 1336
      if (lastComparison != 0) {
1337
        return lastComparison;
1338
      }
1339
    }
5545 mandeep.dh 1340
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
1341
    if (lastComparison != 0) {
1342
      return lastComparison;
1343
    }
1344
    if (isSetModelName()) {
1345
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
1346
      if (lastComparison != 0) {
1347
        return lastComparison;
1348
      }
1349
    }
1350
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
1351
    if (lastComparison != 0) {
1352
      return lastComparison;
1353
    }
1354
    if (isSetModelNumber()) {
1355
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
1356
      if (lastComparison != 0) {
1357
        return lastComparison;
1358
      }
1359
    }
1360
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
1361
    if (lastComparison != 0) {
1362
      return lastComparison;
1363
    }
1364
    if (isSetColor()) {
1365
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
1366
      if (lastComparison != 0) {
1367
        return lastComparison;
1368
      }
1369
    }
5372 mandeep.dh 1370
    lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
1371
    if (lastComparison != 0) {
1372
      return lastComparison;
1373
    }
1374
    if (isSetUnitPrice()) {
1375
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
1376
      if (lastComparison != 0) {
1377
        return lastComparison;
1378
      }
1379
    }
1380
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
1381
    if (lastComparison != 0) {
1382
      return lastComparison;
1383
    }
1384
    if (isSetQuantity()) {
1385
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
1386
      if (lastComparison != 0) {
1387
        return lastComparison;
1388
      }
1389
    }
6361 rajveer 1390
    lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
1391
    if (lastComparison != 0) {
1392
      return lastComparison;
1393
    }
1394
    if (isSetPurchaseId()) {
1395
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
1396
      if (lastComparison != 0) {
1397
        return lastComparison;
1398
      }
1399
    }
1400
    lastComparison = Boolean.valueOf(isSetPurchasedAt()).compareTo(typedOther.isSetPurchasedAt());
1401
    if (lastComparison != 0) {
1402
      return lastComparison;
1403
    }
1404
    if (isSetPurchasedAt()) {
1405
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchasedAt, typedOther.purchasedAt);
1406
      if (lastComparison != 0) {
1407
        return lastComparison;
1408
      }
1409
    }
7672 rajveer 1410
    lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());
1411
    if (lastComparison != 0) {
1412
      return lastComparison;
1413
    }
1414
    if (isSetNlc()) {
1415
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
1416
      if (lastComparison != 0) {
1417
        return lastComparison;
1418
      }
1419
    }
8580 amar.kumar 1420
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
1421
    if (lastComparison != 0) {
1422
      return lastComparison;
1423
    }
1424
    if (isSetWarehouseId()) {
1425
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
1426
      if (lastComparison != 0) {
1427
        return lastComparison;
1428
      }
1429
    }
9433 amar.kumar 1430
    lastComparison = Boolean.valueOf(isSetTaxType()).compareTo(typedOther.isSetTaxType());
1431
    if (lastComparison != 0) {
1432
      return lastComparison;
1433
    }
1434
    if (isSetTaxType()) {
1435
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taxType, typedOther.taxType);
1436
      if (lastComparison != 0) {
1437
        return lastComparison;
1438
      }
1439
    }
11219 manish.sha 1440
    lastComparison = Boolean.valueOf(isSetInvoiceDate()).compareTo(typedOther.isSetInvoiceDate());
1441
    if (lastComparison != 0) {
1442
      return lastComparison;
1443
    }
1444
    if (isSetInvoiceDate()) {
1445
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceDate, typedOther.invoiceDate);
1446
      if (lastComparison != 0) {
1447
        return lastComparison;
1448
      }
1449
    }
12620 amit.gupta 1450
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
1451
    if (lastComparison != 0) {
1452
      return lastComparison;
1453
    }
1454
    if (isSetMrp()) {
1455
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
1456
      if (lastComparison != 0) {
1457
        return lastComparison;
1458
      }
1459
    }
5372 mandeep.dh 1460
    return 0;
1461
  }
1462
 
1463
  public _Fields fieldForId(int fieldId) {
1464
    return _Fields.findByThriftId(fieldId);
1465
  }
1466
 
1467
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1468
    org.apache.thrift.protocol.TField field;
1469
    iprot.readStructBegin();
1470
    while (true)
1471
    {
1472
      field = iprot.readFieldBegin();
1473
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1474
        break;
1475
      }
1476
      switch (field.id) {
1477
        case 1: // PURCHASE_ORDER_ID
1478
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1479
            this.purchaseOrderId = iprot.readI64();
1480
            setPurchaseOrderIdIsSet(true);
1481
          } else { 
1482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1483
          }
1484
          break;
1485
        case 2: // PO_CREATED_AT
1486
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1487
            this.poCreatedAt = iprot.readI64();
1488
            setPoCreatedAtIsSet(true);
1489
          } else { 
1490
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1491
          }
1492
          break;
1493
        case 3: // SUPPLIER_NAME
1494
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1495
            this.supplierName = iprot.readString();
1496
          } else { 
1497
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1498
          }
1499
          break;
1500
        case 4: // INVOICE_NUMBERS
1501
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1502
            this.invoiceNumbers = iprot.readString();
1503
          } else { 
1504
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1505
          }
1506
          break;
6494 amar.kumar 1507
        case 5: // RECEIVED_BY
1508
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1509
            this.receivedBy = iprot.readString();
1510
          } else { 
1511
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1512
          }
1513
          break;
1514
        case 6: // ITEM_ID
5372 mandeep.dh 1515
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1516
            this.itemId = iprot.readI64();
1517
            setItemIdIsSet(true);
1518
          } else { 
1519
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1520
          }
1521
          break;
6494 amar.kumar 1522
        case 7: // BRAND
5372 mandeep.dh 1523
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
5545 mandeep.dh 1524
            this.brand = iprot.readString();
5372 mandeep.dh 1525
          } else { 
1526
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1527
          }
1528
          break;
6494 amar.kumar 1529
        case 8: // MODEL_NAME
5545 mandeep.dh 1530
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1531
            this.modelName = iprot.readString();
1532
          } else { 
1533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1534
          }
1535
          break;
6494 amar.kumar 1536
        case 9: // MODEL_NUMBER
5545 mandeep.dh 1537
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1538
            this.modelNumber = iprot.readString();
1539
          } else { 
1540
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1541
          }
1542
          break;
6494 amar.kumar 1543
        case 10: // COLOR
5545 mandeep.dh 1544
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1545
            this.color = iprot.readString();
1546
          } else { 
1547
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1548
          }
1549
          break;
6494 amar.kumar 1550
        case 11: // UNIT_PRICE
5372 mandeep.dh 1551
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1552
            this.unitPrice = iprot.readDouble();
1553
            setUnitPriceIsSet(true);
1554
          } else { 
1555
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1556
          }
1557
          break;
6494 amar.kumar 1558
        case 12: // QUANTITY
5372 mandeep.dh 1559
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1560
            this.quantity = iprot.readI64();
1561
            setQuantityIsSet(true);
1562
          } else { 
1563
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1564
          }
1565
          break;
6494 amar.kumar 1566
        case 13: // PURCHASE_ID
6361 rajveer 1567
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1568
            this.purchaseId = iprot.readI64();
1569
            setPurchaseIdIsSet(true);
1570
          } else { 
1571
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1572
          }
1573
          break;
6494 amar.kumar 1574
        case 14: // PURCHASED_AT
6361 rajveer 1575
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1576
            this.purchasedAt = iprot.readI64();
1577
            setPurchasedAtIsSet(true);
1578
          } else { 
1579
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1580
          }
1581
          break;
7672 rajveer 1582
        case 15: // NLC
1583
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1584
            this.nlc = iprot.readDouble();
1585
            setNlcIsSet(true);
1586
          } else { 
1587
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1588
          }
1589
          break;
8580 amar.kumar 1590
        case 16: // WAREHOUSE_ID
1591
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1592
            this.warehouseId = iprot.readI64();
1593
            setWarehouseIdIsSet(true);
1594
          } else { 
1595
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1596
          }
1597
          break;
9433 amar.kumar 1598
        case 17: // TAX_TYPE
1599
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1600
            this.taxType = iprot.readI64();
1601
            setTaxTypeIsSet(true);
1602
          } else { 
1603
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1604
          }
1605
          break;
11219 manish.sha 1606
        case 18: // INVOICE_DATE
1607
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1608
            this.invoiceDate = iprot.readI64();
1609
            setInvoiceDateIsSet(true);
1610
          } else { 
1611
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1612
          }
1613
          break;
12620 amit.gupta 1614
        case 19: // MRP
1615
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1616
            this.mrp = iprot.readDouble();
1617
            setMrpIsSet(true);
1618
          } else { 
1619
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1620
          }
1621
          break;
5372 mandeep.dh 1622
        default:
1623
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1624
      }
1625
      iprot.readFieldEnd();
1626
    }
1627
    iprot.readStructEnd();
1628
    validate();
1629
  }
1630
 
1631
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1632
    validate();
1633
 
1634
    oprot.writeStructBegin(STRUCT_DESC);
1635
    oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
1636
    oprot.writeI64(this.purchaseOrderId);
1637
    oprot.writeFieldEnd();
1638
    oprot.writeFieldBegin(PO_CREATED_AT_FIELD_DESC);
1639
    oprot.writeI64(this.poCreatedAt);
1640
    oprot.writeFieldEnd();
1641
    if (this.supplierName != null) {
1642
      oprot.writeFieldBegin(SUPPLIER_NAME_FIELD_DESC);
1643
      oprot.writeString(this.supplierName);
1644
      oprot.writeFieldEnd();
1645
    }
1646
    if (this.invoiceNumbers != null) {
1647
      oprot.writeFieldBegin(INVOICE_NUMBERS_FIELD_DESC);
1648
      oprot.writeString(this.invoiceNumbers);
1649
      oprot.writeFieldEnd();
1650
    }
6494 amar.kumar 1651
    if (this.receivedBy != null) {
1652
      oprot.writeFieldBegin(RECEIVED_BY_FIELD_DESC);
1653
      oprot.writeString(this.receivedBy);
1654
      oprot.writeFieldEnd();
1655
    }
5372 mandeep.dh 1656
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1657
    oprot.writeI64(this.itemId);
1658
    oprot.writeFieldEnd();
5545 mandeep.dh 1659
    if (this.brand != null) {
1660
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
1661
      oprot.writeString(this.brand);
5372 mandeep.dh 1662
      oprot.writeFieldEnd();
1663
    }
5545 mandeep.dh 1664
    if (this.modelName != null) {
1665
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
1666
      oprot.writeString(this.modelName);
1667
      oprot.writeFieldEnd();
1668
    }
1669
    if (this.modelNumber != null) {
1670
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
1671
      oprot.writeString(this.modelNumber);
1672
      oprot.writeFieldEnd();
1673
    }
1674
    if (this.color != null) {
1675
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
1676
      oprot.writeString(this.color);
1677
      oprot.writeFieldEnd();
1678
    }
5372 mandeep.dh 1679
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
1680
    oprot.writeDouble(this.unitPrice);
1681
    oprot.writeFieldEnd();
1682
    oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
1683
    oprot.writeI64(this.quantity);
1684
    oprot.writeFieldEnd();
6361 rajveer 1685
    oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
1686
    oprot.writeI64(this.purchaseId);
1687
    oprot.writeFieldEnd();
1688
    oprot.writeFieldBegin(PURCHASED_AT_FIELD_DESC);
1689
    oprot.writeI64(this.purchasedAt);
1690
    oprot.writeFieldEnd();
7672 rajveer 1691
    oprot.writeFieldBegin(NLC_FIELD_DESC);
1692
    oprot.writeDouble(this.nlc);
1693
    oprot.writeFieldEnd();
8580 amar.kumar 1694
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
1695
    oprot.writeI64(this.warehouseId);
1696
    oprot.writeFieldEnd();
9433 amar.kumar 1697
    oprot.writeFieldBegin(TAX_TYPE_FIELD_DESC);
1698
    oprot.writeI64(this.taxType);
1699
    oprot.writeFieldEnd();
11219 manish.sha 1700
    oprot.writeFieldBegin(INVOICE_DATE_FIELD_DESC);
1701
    oprot.writeI64(this.invoiceDate);
1702
    oprot.writeFieldEnd();
12620 amit.gupta 1703
    oprot.writeFieldBegin(MRP_FIELD_DESC);
1704
    oprot.writeDouble(this.mrp);
1705
    oprot.writeFieldEnd();
5372 mandeep.dh 1706
    oprot.writeFieldStop();
1707
    oprot.writeStructEnd();
1708
  }
1709
 
1710
  @Override
1711
  public String toString() {
1712
    StringBuilder sb = new StringBuilder("DetailedPurchaseScan(");
1713
    boolean first = true;
1714
 
1715
    sb.append("purchaseOrderId:");
1716
    sb.append(this.purchaseOrderId);
1717
    first = false;
1718
    if (!first) sb.append(", ");
1719
    sb.append("poCreatedAt:");
1720
    sb.append(this.poCreatedAt);
1721
    first = false;
1722
    if (!first) sb.append(", ");
1723
    sb.append("supplierName:");
1724
    if (this.supplierName == null) {
1725
      sb.append("null");
1726
    } else {
1727
      sb.append(this.supplierName);
1728
    }
1729
    first = false;
1730
    if (!first) sb.append(", ");
1731
    sb.append("invoiceNumbers:");
1732
    if (this.invoiceNumbers == null) {
1733
      sb.append("null");
1734
    } else {
1735
      sb.append(this.invoiceNumbers);
1736
    }
1737
    first = false;
1738
    if (!first) sb.append(", ");
6494 amar.kumar 1739
    sb.append("receivedBy:");
1740
    if (this.receivedBy == null) {
1741
      sb.append("null");
1742
    } else {
1743
      sb.append(this.receivedBy);
1744
    }
1745
    first = false;
1746
    if (!first) sb.append(", ");
5372 mandeep.dh 1747
    sb.append("itemId:");
1748
    sb.append(this.itemId);
1749
    first = false;
1750
    if (!first) sb.append(", ");
5545 mandeep.dh 1751
    sb.append("brand:");
1752
    if (this.brand == null) {
5372 mandeep.dh 1753
      sb.append("null");
1754
    } else {
5545 mandeep.dh 1755
      sb.append(this.brand);
5372 mandeep.dh 1756
    }
1757
    first = false;
1758
    if (!first) sb.append(", ");
5545 mandeep.dh 1759
    sb.append("modelName:");
1760
    if (this.modelName == null) {
1761
      sb.append("null");
1762
    } else {
1763
      sb.append(this.modelName);
1764
    }
1765
    first = false;
1766
    if (!first) sb.append(", ");
1767
    sb.append("modelNumber:");
1768
    if (this.modelNumber == null) {
1769
      sb.append("null");
1770
    } else {
1771
      sb.append(this.modelNumber);
1772
    }
1773
    first = false;
1774
    if (!first) sb.append(", ");
1775
    sb.append("color:");
1776
    if (this.color == null) {
1777
      sb.append("null");
1778
    } else {
1779
      sb.append(this.color);
1780
    }
1781
    first = false;
1782
    if (!first) sb.append(", ");
5372 mandeep.dh 1783
    sb.append("unitPrice:");
1784
    sb.append(this.unitPrice);
1785
    first = false;
1786
    if (!first) sb.append(", ");
1787
    sb.append("quantity:");
1788
    sb.append(this.quantity);
1789
    first = false;
6361 rajveer 1790
    if (!first) sb.append(", ");
1791
    sb.append("purchaseId:");
1792
    sb.append(this.purchaseId);
1793
    first = false;
1794
    if (!first) sb.append(", ");
1795
    sb.append("purchasedAt:");
1796
    sb.append(this.purchasedAt);
1797
    first = false;
7672 rajveer 1798
    if (!first) sb.append(", ");
1799
    sb.append("nlc:");
1800
    sb.append(this.nlc);
1801
    first = false;
8580 amar.kumar 1802
    if (!first) sb.append(", ");
1803
    sb.append("warehouseId:");
1804
    sb.append(this.warehouseId);
1805
    first = false;
9433 amar.kumar 1806
    if (!first) sb.append(", ");
1807
    sb.append("taxType:");
1808
    sb.append(this.taxType);
1809
    first = false;
11219 manish.sha 1810
    if (!first) sb.append(", ");
1811
    sb.append("invoiceDate:");
1812
    sb.append(this.invoiceDate);
1813
    first = false;
12620 amit.gupta 1814
    if (!first) sb.append(", ");
1815
    sb.append("mrp:");
1816
    sb.append(this.mrp);
1817
    first = false;
5372 mandeep.dh 1818
    sb.append(")");
1819
    return sb.toString();
1820
  }
1821
 
1822
  public void validate() throws org.apache.thrift.TException {
1823
    // check for required fields
1824
  }
1825
 
1826
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1827
    try {
1828
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1829
    } catch (org.apache.thrift.TException te) {
1830
      throw new java.io.IOException(te);
1831
    }
1832
  }
1833
 
1834
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1835
    try {
1836
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1837
      __isset_bit_vector = new BitSet(1);
1838
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1839
    } catch (org.apache.thrift.TException te) {
1840
      throw new java.io.IOException(te);
1841
    }
1842
  }
1843
 
1844
}
1845