Subversion Repositories SmartDukaan

Rev

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