Subversion Repositories SmartDukaan

Rev

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

Rev 2820 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.warehouse;
6
package in.shop2020.warehouse;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class PurchaseOrder implements TBase<PurchaseOrder._Fields>, java.io.Serializable, Cloneable, Comparable<PurchaseOrder> {
23
public class PurchaseOrder implements org.apache.thrift.TBase<PurchaseOrder, PurchaseOrder._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("PurchaseOrder");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PurchaseOrder");
28
 
25
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final TField PO_NUMBER_FIELD_DESC = new TField("poNumber", TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField PO_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("poNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
31
  private static final TField LINEITEMS_FIELD_DESC = new TField("lineitems", TType.LIST, (short)3);
28
  private static final org.apache.thrift.protocol.TField LINEITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("lineitems", org.apache.thrift.protocol.TType.LIST, (short)3);
32
  private static final TField SUPPLIER_ID_FIELD_DESC = new TField("supplierId", TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)4);
33
  private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)5);
30
  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)5);
34
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)6);
31
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)6);
35
  private static final TField CREATED_AT_FIELD_DESC = new TField("createdAt", TType.I64, (short)7);
32
  private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)7);
36
  private static final TField UPDATED_AT_FIELD_DESC = new TField("updatedAt", TType.I64, (short)8);
33
  private static final org.apache.thrift.protocol.TField UPDATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedAt", org.apache.thrift.protocol.TType.I64, (short)8);
37
  private static final TField TOTAL_COST_FIELD_DESC = new TField("totalCost", TType.DOUBLE, (short)9);
34
  private static final org.apache.thrift.protocol.TField TOTAL_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("totalCost", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
38
  private static final TField FREIGHT_CHARGES_FIELD_DESC = new TField("freightCharges", TType.DOUBLE, (short)10);
35
  private static final org.apache.thrift.protocol.TField FREIGHT_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("freightCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
39
  private static final TField REALIZED_COST_FIELD_DESC = new TField("realizedCost", TType.DOUBLE, (short)11);
36
  private static final org.apache.thrift.protocol.TField REALIZED_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("realizedCost", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
40
  private static final TField REALIZED_FREIGHT_CHARGES_FIELD_DESC = new TField("realizedFreightCharges", TType.DOUBLE, (short)12);
37
  private static final org.apache.thrift.protocol.TField REALIZED_FREIGHT_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("realizedFreightCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
41
 
38
 
42
  private long id;
39
  private long id; // required
43
  private String poNumber;
40
  private String poNumber; // required
44
  private List<LineItem> lineitems;
41
  private List<LineItem> lineitems; // required
45
  private long supplierId;
42
  private long supplierId; // required
46
  private long warehouseId;
43
  private long warehouseId; // required
47
  private POStatus status;
44
  private POStatus status; // required
48
  private long createdAt;
45
  private long createdAt; // required
49
  private long updatedAt;
46
  private long updatedAt; // required
50
  private double totalCost;
47
  private double totalCost; // required
51
  private double freightCharges;
48
  private double freightCharges; // required
52
  private double realizedCost;
49
  private double realizedCost; // required
53
  private double realizedFreightCharges;
50
  private double realizedFreightCharges; // required
54
 
51
 
55
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56
  public enum _Fields implements TFieldIdEnum {
53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57
    ID((short)1, "id"),
54
    ID((short)1, "id"),
58
    PO_NUMBER((short)2, "poNumber"),
55
    PO_NUMBER((short)2, "poNumber"),
59
    LINEITEMS((short)3, "lineitems"),
56
    LINEITEMS((short)3, "lineitems"),
60
    SUPPLIER_ID((short)4, "supplierId"),
57
    SUPPLIER_ID((short)4, "supplierId"),
61
    WAREHOUSE_ID((short)5, "warehouseId"),
58
    WAREHOUSE_ID((short)5, "warehouseId"),
Line 69... Line 66...
69
    TOTAL_COST((short)9, "totalCost"),
66
    TOTAL_COST((short)9, "totalCost"),
70
    FREIGHT_CHARGES((short)10, "freightCharges"),
67
    FREIGHT_CHARGES((short)10, "freightCharges"),
71
    REALIZED_COST((short)11, "realizedCost"),
68
    REALIZED_COST((short)11, "realizedCost"),
72
    REALIZED_FREIGHT_CHARGES((short)12, "realizedFreightCharges");
69
    REALIZED_FREIGHT_CHARGES((short)12, "realizedFreightCharges");
73
 
70
 
74
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
75
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
71
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
76
 
72
 
77
    static {
73
    static {
78
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
74
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
79
        byId.put((int)field._thriftId, field);
-
 
80
        byName.put(field.getFieldName(), field);
75
        byName.put(field.getFieldName(), field);
81
      }
76
      }
82
    }
77
    }
83
 
78
 
84
    /**
79
    /**
85
     * Find the _Fields constant that matches fieldId, or null if its not found.
80
     * Find the _Fields constant that matches fieldId, or null if its not found.
86
     */
81
     */
87
    public static _Fields findByThriftId(int fieldId) {
82
    public static _Fields findByThriftId(int fieldId) {
88
      return byId.get(fieldId);
83
      switch(fieldId) {
-
 
84
        case 1: // ID
-
 
85
          return ID;
-
 
86
        case 2: // PO_NUMBER
-
 
87
          return PO_NUMBER;
-
 
88
        case 3: // LINEITEMS
-
 
89
          return LINEITEMS;
-
 
90
        case 4: // SUPPLIER_ID
-
 
91
          return SUPPLIER_ID;
-
 
92
        case 5: // WAREHOUSE_ID
-
 
93
          return WAREHOUSE_ID;
-
 
94
        case 6: // STATUS
-
 
95
          return STATUS;
-
 
96
        case 7: // CREATED_AT
-
 
97
          return CREATED_AT;
-
 
98
        case 8: // UPDATED_AT
-
 
99
          return UPDATED_AT;
-
 
100
        case 9: // TOTAL_COST
-
 
101
          return TOTAL_COST;
-
 
102
        case 10: // FREIGHT_CHARGES
-
 
103
          return FREIGHT_CHARGES;
-
 
104
        case 11: // REALIZED_COST
-
 
105
          return REALIZED_COST;
-
 
106
        case 12: // REALIZED_FREIGHT_CHARGES
-
 
107
          return REALIZED_FREIGHT_CHARGES;
-
 
108
        default:
-
 
109
          return null;
-
 
110
      }
89
    }
111
    }
90
 
112
 
91
    /**
113
    /**
92
     * Find the _Fields constant that matches fieldId, throwing an exception
114
     * Find the _Fields constant that matches fieldId, throwing an exception
93
     * if it is not found.
115
     * if it is not found.
Line 132... Line 154...
132
  private static final int __FREIGHTCHARGES_ISSET_ID = 6;
154
  private static final int __FREIGHTCHARGES_ISSET_ID = 6;
133
  private static final int __REALIZEDCOST_ISSET_ID = 7;
155
  private static final int __REALIZEDCOST_ISSET_ID = 7;
134
  private static final int __REALIZEDFREIGHTCHARGES_ISSET_ID = 8;
156
  private static final int __REALIZEDFREIGHTCHARGES_ISSET_ID = 8;
135
  private BitSet __isset_bit_vector = new BitSet(9);
157
  private BitSet __isset_bit_vector = new BitSet(9);
136
 
158
 
137
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
159
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
138
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
139
        new FieldValueMetaData(TType.I64)));
-
 
140
    put(_Fields.PO_NUMBER, new FieldMetaData("poNumber", TFieldRequirementType.DEFAULT, 
-
 
141
        new FieldValueMetaData(TType.STRING)));
-
 
142
    put(_Fields.LINEITEMS, new FieldMetaData("lineitems", TFieldRequirementType.DEFAULT, 
-
 
143
        new ListMetaData(TType.LIST, 
-
 
144
            new StructMetaData(TType.STRUCT, LineItem.class))));
-
 
145
    put(_Fields.SUPPLIER_ID, new FieldMetaData("supplierId", TFieldRequirementType.DEFAULT, 
-
 
146
        new FieldValueMetaData(TType.I64)));
-
 
147
    put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT, 
-
 
148
        new FieldValueMetaData(TType.I64)));
-
 
149
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
150
        new EnumMetaData(TType.ENUM, POStatus.class)));
-
 
151
    put(_Fields.CREATED_AT, new FieldMetaData("createdAt", TFieldRequirementType.DEFAULT, 
-
 
152
        new FieldValueMetaData(TType.I64)));
-
 
153
    put(_Fields.UPDATED_AT, new FieldMetaData("updatedAt", TFieldRequirementType.DEFAULT, 
-
 
154
        new FieldValueMetaData(TType.I64)));
-
 
155
    put(_Fields.TOTAL_COST, new FieldMetaData("totalCost", TFieldRequirementType.DEFAULT, 
-
 
156
        new FieldValueMetaData(TType.DOUBLE)));
-
 
157
    put(_Fields.FREIGHT_CHARGES, new FieldMetaData("freightCharges", TFieldRequirementType.DEFAULT, 
-
 
158
        new FieldValueMetaData(TType.DOUBLE)));
-
 
159
    put(_Fields.REALIZED_COST, new FieldMetaData("realizedCost", TFieldRequirementType.DEFAULT, 
-
 
160
        new FieldValueMetaData(TType.DOUBLE)));
-
 
161
    put(_Fields.REALIZED_FREIGHT_CHARGES, new FieldMetaData("realizedFreightCharges", TFieldRequirementType.DEFAULT, 
-
 
162
        new FieldValueMetaData(TType.DOUBLE)));
-
 
163
  }});
-
 
164
 
-
 
165
  static {
160
  static {
-
 
161
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
162
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
164
    tmpMap.put(_Fields.PO_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("poNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
166
    tmpMap.put(_Fields.LINEITEMS, new org.apache.thrift.meta_data.FieldMetaData("lineitems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
167
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
168
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LineItem.class))));
-
 
169
    tmpMap.put(_Fields.SUPPLIER_ID, new org.apache.thrift.meta_data.FieldMetaData("supplierId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
171
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
173
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
174
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, POStatus.class)));
-
 
175
    tmpMap.put(_Fields.CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("createdAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
176
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
177
    tmpMap.put(_Fields.UPDATED_AT, new org.apache.thrift.meta_data.FieldMetaData("updatedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
178
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
179
    tmpMap.put(_Fields.TOTAL_COST, new org.apache.thrift.meta_data.FieldMetaData("totalCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
180
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
181
    tmpMap.put(_Fields.FREIGHT_CHARGES, new org.apache.thrift.meta_data.FieldMetaData("freightCharges", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
182
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
183
    tmpMap.put(_Fields.REALIZED_COST, new org.apache.thrift.meta_data.FieldMetaData("realizedCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
184
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
185
    tmpMap.put(_Fields.REALIZED_FREIGHT_CHARGES, new org.apache.thrift.meta_data.FieldMetaData("realizedFreightCharges", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
186
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
187
    metaDataMap = Collections.unmodifiableMap(tmpMap);
166
    FieldMetaData.addStructMetaDataMap(PurchaseOrder.class, metaDataMap);
188
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PurchaseOrder.class, metaDataMap);
167
  }
189
  }
168
 
190
 
169
  public PurchaseOrder() {
191
  public PurchaseOrder() {
170
  }
192
  }
171
 
193
 
Line 239... Line 261...
239
 
261
 
240
  public PurchaseOrder deepCopy() {
262
  public PurchaseOrder deepCopy() {
241
    return new PurchaseOrder(this);
263
    return new PurchaseOrder(this);
242
  }
264
  }
243
 
265
 
244
  @Deprecated
266
  @Override
245
  public PurchaseOrder clone() {
267
  public void clear() {
-
 
268
    setIdIsSet(false);
-
 
269
    this.id = 0;
-
 
270
    this.poNumber = null;
-
 
271
    this.lineitems = null;
-
 
272
    setSupplierIdIsSet(false);
-
 
273
    this.supplierId = 0;
-
 
274
    setWarehouseIdIsSet(false);
-
 
275
    this.warehouseId = 0;
-
 
276
    this.status = null;
-
 
277
    setCreatedAtIsSet(false);
-
 
278
    this.createdAt = 0;
-
 
279
    setUpdatedAtIsSet(false);
-
 
280
    this.updatedAt = 0;
-
 
281
    setTotalCostIsSet(false);
-
 
282
    this.totalCost = 0.0;
246
    return new PurchaseOrder(this);
283
    setFreightChargesIsSet(false);
-
 
284
    this.freightCharges = 0.0;
-
 
285
    setRealizedCostIsSet(false);
-
 
286
    this.realizedCost = 0.0;
-
 
287
    setRealizedFreightChargesIsSet(false);
-
 
288
    this.realizedFreightCharges = 0.0;
247
  }
289
  }
248
 
290
 
249
  public long getId() {
291
  public long getId() {
250
    return this.id;
292
    return this.id;
251
  }
293
  }
252
 
294
 
253
  public PurchaseOrder setId(long id) {
295
  public void setId(long id) {
254
    this.id = id;
296
    this.id = id;
255
    setIdIsSet(true);
297
    setIdIsSet(true);
256
    return this;
-
 
257
  }
298
  }
258
 
299
 
259
  public void unsetId() {
300
  public void unsetId() {
260
    __isset_bit_vector.clear(__ID_ISSET_ID);
301
    __isset_bit_vector.clear(__ID_ISSET_ID);
261
  }
302
  }
262
 
303
 
263
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
304
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
264
  public boolean isSetId() {
305
  public boolean isSetId() {
265
    return __isset_bit_vector.get(__ID_ISSET_ID);
306
    return __isset_bit_vector.get(__ID_ISSET_ID);
266
  }
307
  }
267
 
308
 
268
  public void setIdIsSet(boolean value) {
309
  public void setIdIsSet(boolean value) {
Line 271... Line 312...
271
 
312
 
272
  public String getPoNumber() {
313
  public String getPoNumber() {
273
    return this.poNumber;
314
    return this.poNumber;
274
  }
315
  }
275
 
316
 
276
  public PurchaseOrder setPoNumber(String poNumber) {
317
  public void setPoNumber(String poNumber) {
277
    this.poNumber = poNumber;
318
    this.poNumber = poNumber;
278
    return this;
-
 
279
  }
319
  }
280
 
320
 
281
  public void unsetPoNumber() {
321
  public void unsetPoNumber() {
282
    this.poNumber = null;
322
    this.poNumber = null;
283
  }
323
  }
284
 
324
 
285
  /** Returns true if field poNumber is set (has been asigned a value) and false otherwise */
325
  /** Returns true if field poNumber is set (has been assigned a value) and false otherwise */
286
  public boolean isSetPoNumber() {
326
  public boolean isSetPoNumber() {
287
    return this.poNumber != null;
327
    return this.poNumber != null;
288
  }
328
  }
289
 
329
 
290
  public void setPoNumberIsSet(boolean value) {
330
  public void setPoNumberIsSet(boolean value) {
Line 310... Line 350...
310
 
350
 
311
  public List<LineItem> getLineitems() {
351
  public List<LineItem> getLineitems() {
312
    return this.lineitems;
352
    return this.lineitems;
313
  }
353
  }
314
 
354
 
315
  public PurchaseOrder setLineitems(List<LineItem> lineitems) {
355
  public void setLineitems(List<LineItem> lineitems) {
316
    this.lineitems = lineitems;
356
    this.lineitems = lineitems;
317
    return this;
-
 
318
  }
357
  }
319
 
358
 
320
  public void unsetLineitems() {
359
  public void unsetLineitems() {
321
    this.lineitems = null;
360
    this.lineitems = null;
322
  }
361
  }
323
 
362
 
324
  /** Returns true if field lineitems is set (has been asigned a value) and false otherwise */
363
  /** Returns true if field lineitems is set (has been assigned a value) and false otherwise */
325
  public boolean isSetLineitems() {
364
  public boolean isSetLineitems() {
326
    return this.lineitems != null;
365
    return this.lineitems != null;
327
  }
366
  }
328
 
367
 
329
  public void setLineitemsIsSet(boolean value) {
368
  public void setLineitemsIsSet(boolean value) {
Line 334... Line 373...
334
 
373
 
335
  public long getSupplierId() {
374
  public long getSupplierId() {
336
    return this.supplierId;
375
    return this.supplierId;
337
  }
376
  }
338
 
377
 
339
  public PurchaseOrder setSupplierId(long supplierId) {
378
  public void setSupplierId(long supplierId) {
340
    this.supplierId = supplierId;
379
    this.supplierId = supplierId;
341
    setSupplierIdIsSet(true);
380
    setSupplierIdIsSet(true);
342
    return this;
-
 
343
  }
381
  }
344
 
382
 
345
  public void unsetSupplierId() {
383
  public void unsetSupplierId() {
346
    __isset_bit_vector.clear(__SUPPLIERID_ISSET_ID);
384
    __isset_bit_vector.clear(__SUPPLIERID_ISSET_ID);
347
  }
385
  }
348
 
386
 
349
  /** Returns true if field supplierId is set (has been asigned a value) and false otherwise */
387
  /** Returns true if field supplierId is set (has been assigned a value) and false otherwise */
350
  public boolean isSetSupplierId() {
388
  public boolean isSetSupplierId() {
351
    return __isset_bit_vector.get(__SUPPLIERID_ISSET_ID);
389
    return __isset_bit_vector.get(__SUPPLIERID_ISSET_ID);
352
  }
390
  }
353
 
391
 
354
  public void setSupplierIdIsSet(boolean value) {
392
  public void setSupplierIdIsSet(boolean value) {
Line 357... Line 395...
357
 
395
 
358
  public long getWarehouseId() {
396
  public long getWarehouseId() {
359
    return this.warehouseId;
397
    return this.warehouseId;
360
  }
398
  }
361
 
399
 
362
  public PurchaseOrder setWarehouseId(long warehouseId) {
400
  public void setWarehouseId(long warehouseId) {
363
    this.warehouseId = warehouseId;
401
    this.warehouseId = warehouseId;
364
    setWarehouseIdIsSet(true);
402
    setWarehouseIdIsSet(true);
365
    return this;
-
 
366
  }
403
  }
367
 
404
 
368
  public void unsetWarehouseId() {
405
  public void unsetWarehouseId() {
369
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
406
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
370
  }
407
  }
371
 
408
 
372
  /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
409
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
373
  public boolean isSetWarehouseId() {
410
  public boolean isSetWarehouseId() {
374
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
411
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
375
  }
412
  }
376
 
413
 
377
  public void setWarehouseIdIsSet(boolean value) {
414
  public void setWarehouseIdIsSet(boolean value) {
Line 388... Line 425...
388
 
425
 
389
  /**
426
  /**
390
   * 
427
   * 
391
   * @see POStatus
428
   * @see POStatus
392
   */
429
   */
393
  public PurchaseOrder setStatus(POStatus status) {
430
  public void setStatus(POStatus status) {
394
    this.status = status;
431
    this.status = status;
395
    return this;
-
 
396
  }
432
  }
397
 
433
 
398
  public void unsetStatus() {
434
  public void unsetStatus() {
399
    this.status = null;
435
    this.status = null;
400
  }
436
  }
401
 
437
 
402
  /** Returns true if field status is set (has been asigned a value) and false otherwise */
438
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
403
  public boolean isSetStatus() {
439
  public boolean isSetStatus() {
404
    return this.status != null;
440
    return this.status != null;
405
  }
441
  }
406
 
442
 
407
  public void setStatusIsSet(boolean value) {
443
  public void setStatusIsSet(boolean value) {
Line 412... Line 448...
412
 
448
 
413
  public long getCreatedAt() {
449
  public long getCreatedAt() {
414
    return this.createdAt;
450
    return this.createdAt;
415
  }
451
  }
416
 
452
 
417
  public PurchaseOrder setCreatedAt(long createdAt) {
453
  public void setCreatedAt(long createdAt) {
418
    this.createdAt = createdAt;
454
    this.createdAt = createdAt;
419
    setCreatedAtIsSet(true);
455
    setCreatedAtIsSet(true);
420
    return this;
-
 
421
  }
456
  }
422
 
457
 
423
  public void unsetCreatedAt() {
458
  public void unsetCreatedAt() {
424
    __isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
459
    __isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
425
  }
460
  }
426
 
461
 
427
  /** Returns true if field createdAt is set (has been asigned a value) and false otherwise */
462
  /** Returns true if field createdAt is set (has been assigned a value) and false otherwise */
428
  public boolean isSetCreatedAt() {
463
  public boolean isSetCreatedAt() {
429
    return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
464
    return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
430
  }
465
  }
431
 
466
 
432
  public void setCreatedAtIsSet(boolean value) {
467
  public void setCreatedAtIsSet(boolean value) {
Line 435... Line 470...
435
 
470
 
436
  public long getUpdatedAt() {
471
  public long getUpdatedAt() {
437
    return this.updatedAt;
472
    return this.updatedAt;
438
  }
473
  }
439
 
474
 
440
  public PurchaseOrder setUpdatedAt(long updatedAt) {
475
  public void setUpdatedAt(long updatedAt) {
441
    this.updatedAt = updatedAt;
476
    this.updatedAt = updatedAt;
442
    setUpdatedAtIsSet(true);
477
    setUpdatedAtIsSet(true);
443
    return this;
-
 
444
  }
478
  }
445
 
479
 
446
  public void unsetUpdatedAt() {
480
  public void unsetUpdatedAt() {
447
    __isset_bit_vector.clear(__UPDATEDAT_ISSET_ID);
481
    __isset_bit_vector.clear(__UPDATEDAT_ISSET_ID);
448
  }
482
  }
449
 
483
 
450
  /** Returns true if field updatedAt is set (has been asigned a value) and false otherwise */
484
  /** Returns true if field updatedAt is set (has been assigned a value) and false otherwise */
451
  public boolean isSetUpdatedAt() {
485
  public boolean isSetUpdatedAt() {
452
    return __isset_bit_vector.get(__UPDATEDAT_ISSET_ID);
486
    return __isset_bit_vector.get(__UPDATEDAT_ISSET_ID);
453
  }
487
  }
454
 
488
 
455
  public void setUpdatedAtIsSet(boolean value) {
489
  public void setUpdatedAtIsSet(boolean value) {
Line 458... Line 492...
458
 
492
 
459
  public double getTotalCost() {
493
  public double getTotalCost() {
460
    return this.totalCost;
494
    return this.totalCost;
461
  }
495
  }
462
 
496
 
463
  public PurchaseOrder setTotalCost(double totalCost) {
497
  public void setTotalCost(double totalCost) {
464
    this.totalCost = totalCost;
498
    this.totalCost = totalCost;
465
    setTotalCostIsSet(true);
499
    setTotalCostIsSet(true);
466
    return this;
-
 
467
  }
500
  }
468
 
501
 
469
  public void unsetTotalCost() {
502
  public void unsetTotalCost() {
470
    __isset_bit_vector.clear(__TOTALCOST_ISSET_ID);
503
    __isset_bit_vector.clear(__TOTALCOST_ISSET_ID);
471
  }
504
  }
472
 
505
 
473
  /** Returns true if field totalCost is set (has been asigned a value) and false otherwise */
506
  /** Returns true if field totalCost is set (has been assigned a value) and false otherwise */
474
  public boolean isSetTotalCost() {
507
  public boolean isSetTotalCost() {
475
    return __isset_bit_vector.get(__TOTALCOST_ISSET_ID);
508
    return __isset_bit_vector.get(__TOTALCOST_ISSET_ID);
476
  }
509
  }
477
 
510
 
478
  public void setTotalCostIsSet(boolean value) {
511
  public void setTotalCostIsSet(boolean value) {
Line 481... Line 514...
481
 
514
 
482
  public double getFreightCharges() {
515
  public double getFreightCharges() {
483
    return this.freightCharges;
516
    return this.freightCharges;
484
  }
517
  }
485
 
518
 
486
  public PurchaseOrder setFreightCharges(double freightCharges) {
519
  public void setFreightCharges(double freightCharges) {
487
    this.freightCharges = freightCharges;
520
    this.freightCharges = freightCharges;
488
    setFreightChargesIsSet(true);
521
    setFreightChargesIsSet(true);
489
    return this;
-
 
490
  }
522
  }
491
 
523
 
492
  public void unsetFreightCharges() {
524
  public void unsetFreightCharges() {
493
    __isset_bit_vector.clear(__FREIGHTCHARGES_ISSET_ID);
525
    __isset_bit_vector.clear(__FREIGHTCHARGES_ISSET_ID);
494
  }
526
  }
495
 
527
 
496
  /** Returns true if field freightCharges is set (has been asigned a value) and false otherwise */
528
  /** Returns true if field freightCharges is set (has been assigned a value) and false otherwise */
497
  public boolean isSetFreightCharges() {
529
  public boolean isSetFreightCharges() {
498
    return __isset_bit_vector.get(__FREIGHTCHARGES_ISSET_ID);
530
    return __isset_bit_vector.get(__FREIGHTCHARGES_ISSET_ID);
499
  }
531
  }
500
 
532
 
501
  public void setFreightChargesIsSet(boolean value) {
533
  public void setFreightChargesIsSet(boolean value) {
Line 504... Line 536...
504
 
536
 
505
  public double getRealizedCost() {
537
  public double getRealizedCost() {
506
    return this.realizedCost;
538
    return this.realizedCost;
507
  }
539
  }
508
 
540
 
509
  public PurchaseOrder setRealizedCost(double realizedCost) {
541
  public void setRealizedCost(double realizedCost) {
510
    this.realizedCost = realizedCost;
542
    this.realizedCost = realizedCost;
511
    setRealizedCostIsSet(true);
543
    setRealizedCostIsSet(true);
512
    return this;
-
 
513
  }
544
  }
514
 
545
 
515
  public void unsetRealizedCost() {
546
  public void unsetRealizedCost() {
516
    __isset_bit_vector.clear(__REALIZEDCOST_ISSET_ID);
547
    __isset_bit_vector.clear(__REALIZEDCOST_ISSET_ID);
517
  }
548
  }
518
 
549
 
519
  /** Returns true if field realizedCost is set (has been asigned a value) and false otherwise */
550
  /** Returns true if field realizedCost is set (has been assigned a value) and false otherwise */
520
  public boolean isSetRealizedCost() {
551
  public boolean isSetRealizedCost() {
521
    return __isset_bit_vector.get(__REALIZEDCOST_ISSET_ID);
552
    return __isset_bit_vector.get(__REALIZEDCOST_ISSET_ID);
522
  }
553
  }
523
 
554
 
524
  public void setRealizedCostIsSet(boolean value) {
555
  public void setRealizedCostIsSet(boolean value) {
Line 527... Line 558...
527
 
558
 
528
  public double getRealizedFreightCharges() {
559
  public double getRealizedFreightCharges() {
529
    return this.realizedFreightCharges;
560
    return this.realizedFreightCharges;
530
  }
561
  }
531
 
562
 
532
  public PurchaseOrder setRealizedFreightCharges(double realizedFreightCharges) {
563
  public void setRealizedFreightCharges(double realizedFreightCharges) {
533
    this.realizedFreightCharges = realizedFreightCharges;
564
    this.realizedFreightCharges = realizedFreightCharges;
534
    setRealizedFreightChargesIsSet(true);
565
    setRealizedFreightChargesIsSet(true);
535
    return this;
-
 
536
  }
566
  }
537
 
567
 
538
  public void unsetRealizedFreightCharges() {
568
  public void unsetRealizedFreightCharges() {
539
    __isset_bit_vector.clear(__REALIZEDFREIGHTCHARGES_ISSET_ID);
569
    __isset_bit_vector.clear(__REALIZEDFREIGHTCHARGES_ISSET_ID);
540
  }
570
  }
541
 
571
 
542
  /** Returns true if field realizedFreightCharges is set (has been asigned a value) and false otherwise */
572
  /** Returns true if field realizedFreightCharges is set (has been assigned a value) and false otherwise */
543
  public boolean isSetRealizedFreightCharges() {
573
  public boolean isSetRealizedFreightCharges() {
544
    return __isset_bit_vector.get(__REALIZEDFREIGHTCHARGES_ISSET_ID);
574
    return __isset_bit_vector.get(__REALIZEDFREIGHTCHARGES_ISSET_ID);
545
  }
575
  }
546
 
576
 
547
  public void setRealizedFreightChargesIsSet(boolean value) {
577
  public void setRealizedFreightChargesIsSet(boolean value) {
Line 647... Line 677...
647
      break;
677
      break;
648
 
678
 
649
    }
679
    }
650
  }
680
  }
651
 
681
 
652
  public void setFieldValue(int fieldID, Object value) {
-
 
653
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
654
  }
-
 
655
 
-
 
656
  public Object getFieldValue(_Fields field) {
682
  public Object getFieldValue(_Fields field) {
657
    switch (field) {
683
    switch (field) {
658
    case ID:
684
    case ID:
659
      return new Long(getId());
685
      return Long.valueOf(getId());
660
 
686
 
661
    case PO_NUMBER:
687
    case PO_NUMBER:
662
      return getPoNumber();
688
      return getPoNumber();
663
 
689
 
664
    case LINEITEMS:
690
    case LINEITEMS:
665
      return getLineitems();
691
      return getLineitems();
666
 
692
 
667
    case SUPPLIER_ID:
693
    case SUPPLIER_ID:
668
      return new Long(getSupplierId());
694
      return Long.valueOf(getSupplierId());
669
 
695
 
670
    case WAREHOUSE_ID:
696
    case WAREHOUSE_ID:
671
      return new Long(getWarehouseId());
697
      return Long.valueOf(getWarehouseId());
672
 
698
 
673
    case STATUS:
699
    case STATUS:
674
      return getStatus();
700
      return getStatus();
675
 
701
 
676
    case CREATED_AT:
702
    case CREATED_AT:
677
      return new Long(getCreatedAt());
703
      return Long.valueOf(getCreatedAt());
678
 
704
 
679
    case UPDATED_AT:
705
    case UPDATED_AT:
680
      return new Long(getUpdatedAt());
706
      return Long.valueOf(getUpdatedAt());
681
 
707
 
682
    case TOTAL_COST:
708
    case TOTAL_COST:
683
      return new Double(getTotalCost());
709
      return Double.valueOf(getTotalCost());
684
 
710
 
685
    case FREIGHT_CHARGES:
711
    case FREIGHT_CHARGES:
686
      return new Double(getFreightCharges());
712
      return Double.valueOf(getFreightCharges());
687
 
713
 
688
    case REALIZED_COST:
714
    case REALIZED_COST:
689
      return new Double(getRealizedCost());
715
      return Double.valueOf(getRealizedCost());
690
 
716
 
691
    case REALIZED_FREIGHT_CHARGES:
717
    case REALIZED_FREIGHT_CHARGES:
692
      return new Double(getRealizedFreightCharges());
718
      return Double.valueOf(getRealizedFreightCharges());
693
 
719
 
694
    }
720
    }
695
    throw new IllegalStateException();
721
    throw new IllegalStateException();
696
  }
722
  }
697
 
723
 
698
  public Object getFieldValue(int fieldId) {
-
 
699
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
700
  }
-
 
701
 
-
 
702
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
724
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
703
  public boolean isSet(_Fields field) {
725
  public boolean isSet(_Fields field) {
-
 
726
    if (field == null) {
-
 
727
      throw new IllegalArgumentException();
-
 
728
    }
-
 
729
 
704
    switch (field) {
730
    switch (field) {
705
    case ID:
731
    case ID:
706
      return isSetId();
732
      return isSetId();
707
    case PO_NUMBER:
733
    case PO_NUMBER:
708
      return isSetPoNumber();
734
      return isSetPoNumber();
Line 728... Line 754...
728
      return isSetRealizedFreightCharges();
754
      return isSetRealizedFreightCharges();
729
    }
755
    }
730
    throw new IllegalStateException();
756
    throw new IllegalStateException();
731
  }
757
  }
732
 
758
 
733
  public boolean isSet(int fieldID) {
-
 
734
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
735
  }
-
 
736
 
-
 
737
  @Override
759
  @Override
738
  public boolean equals(Object that) {
760
  public boolean equals(Object that) {
739
    if (that == null)
761
    if (that == null)
740
      return false;
762
      return false;
741
    if (that instanceof PurchaseOrder)
763
    if (that instanceof PurchaseOrder)
Line 869... Line 891...
869
    }
891
    }
870
 
892
 
871
    int lastComparison = 0;
893
    int lastComparison = 0;
872
    PurchaseOrder typedOther = (PurchaseOrder)other;
894
    PurchaseOrder typedOther = (PurchaseOrder)other;
873
 
895
 
874
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
896
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
875
    if (lastComparison != 0) {
897
    if (lastComparison != 0) {
876
      return lastComparison;
898
      return lastComparison;
877
    }
899
    }
-
 
900
    if (isSetId()) {
878
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
901
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
879
    if (lastComparison != 0) {
902
      if (lastComparison != 0) {
880
      return lastComparison;
903
        return lastComparison;
-
 
904
      }
881
    }
905
    }
882
    lastComparison = Boolean.valueOf(isSetPoNumber()).compareTo(isSetPoNumber());
906
    lastComparison = Boolean.valueOf(isSetPoNumber()).compareTo(typedOther.isSetPoNumber());
883
    if (lastComparison != 0) {
907
    if (lastComparison != 0) {
884
      return lastComparison;
908
      return lastComparison;
885
    }
909
    }
-
 
910
    if (isSetPoNumber()) {
886
    lastComparison = TBaseHelper.compareTo(poNumber, typedOther.poNumber);
911
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.poNumber, typedOther.poNumber);
887
    if (lastComparison != 0) {
912
      if (lastComparison != 0) {
888
      return lastComparison;
913
        return lastComparison;
-
 
914
      }
889
    }
915
    }
890
    lastComparison = Boolean.valueOf(isSetLineitems()).compareTo(isSetLineitems());
916
    lastComparison = Boolean.valueOf(isSetLineitems()).compareTo(typedOther.isSetLineitems());
891
    if (lastComparison != 0) {
917
    if (lastComparison != 0) {
892
      return lastComparison;
918
      return lastComparison;
893
    }
919
    }
-
 
920
    if (isSetLineitems()) {
894
    lastComparison = TBaseHelper.compareTo(lineitems, typedOther.lineitems);
921
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lineitems, typedOther.lineitems);
895
    if (lastComparison != 0) {
922
      if (lastComparison != 0) {
896
      return lastComparison;
923
        return lastComparison;
-
 
924
      }
897
    }
925
    }
898
    lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(isSetSupplierId());
926
    lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(typedOther.isSetSupplierId());
899
    if (lastComparison != 0) {
927
    if (lastComparison != 0) {
900
      return lastComparison;
928
      return lastComparison;
901
    }
929
    }
-
 
930
    if (isSetSupplierId()) {
902
    lastComparison = TBaseHelper.compareTo(supplierId, typedOther.supplierId);
931
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplierId, typedOther.supplierId);
903
    if (lastComparison != 0) {
932
      if (lastComparison != 0) {
904
      return lastComparison;
933
        return lastComparison;
-
 
934
      }
905
    }
935
    }
906
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
936
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
907
    if (lastComparison != 0) {
937
    if (lastComparison != 0) {
908
      return lastComparison;
938
      return lastComparison;
909
    }
939
    }
-
 
940
    if (isSetWarehouseId()) {
910
    lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
941
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
911
    if (lastComparison != 0) {
942
      if (lastComparison != 0) {
912
      return lastComparison;
943
        return lastComparison;
-
 
944
      }
913
    }
945
    }
914
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
946
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
915
    if (lastComparison != 0) {
947
    if (lastComparison != 0) {
916
      return lastComparison;
948
      return lastComparison;
917
    }
949
    }
-
 
950
    if (isSetStatus()) {
918
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
951
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
919
    if (lastComparison != 0) {
952
      if (lastComparison != 0) {
920
      return lastComparison;
953
        return lastComparison;
-
 
954
      }
921
    }
955
    }
922
    lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(isSetCreatedAt());
956
    lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(typedOther.isSetCreatedAt());
923
    if (lastComparison != 0) {
957
    if (lastComparison != 0) {
924
      return lastComparison;
958
      return lastComparison;
925
    }
959
    }
-
 
960
    if (isSetCreatedAt()) {
926
    lastComparison = TBaseHelper.compareTo(createdAt, typedOther.createdAt);
961
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdAt, typedOther.createdAt);
927
    if (lastComparison != 0) {
962
      if (lastComparison != 0) {
928
      return lastComparison;
963
        return lastComparison;
-
 
964
      }
929
    }
965
    }
930
    lastComparison = Boolean.valueOf(isSetUpdatedAt()).compareTo(isSetUpdatedAt());
966
    lastComparison = Boolean.valueOf(isSetUpdatedAt()).compareTo(typedOther.isSetUpdatedAt());
931
    if (lastComparison != 0) {
967
    if (lastComparison != 0) {
932
      return lastComparison;
968
      return lastComparison;
933
    }
969
    }
-
 
970
    if (isSetUpdatedAt()) {
934
    lastComparison = TBaseHelper.compareTo(updatedAt, typedOther.updatedAt);
971
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedAt, typedOther.updatedAt);
935
    if (lastComparison != 0) {
972
      if (lastComparison != 0) {
936
      return lastComparison;
973
        return lastComparison;
-
 
974
      }
937
    }
975
    }
938
    lastComparison = Boolean.valueOf(isSetTotalCost()).compareTo(isSetTotalCost());
976
    lastComparison = Boolean.valueOf(isSetTotalCost()).compareTo(typedOther.isSetTotalCost());
939
    if (lastComparison != 0) {
977
    if (lastComparison != 0) {
940
      return lastComparison;
978
      return lastComparison;
941
    }
979
    }
-
 
980
    if (isSetTotalCost()) {
942
    lastComparison = TBaseHelper.compareTo(totalCost, typedOther.totalCost);
981
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalCost, typedOther.totalCost);
943
    if (lastComparison != 0) {
982
      if (lastComparison != 0) {
944
      return lastComparison;
983
        return lastComparison;
-
 
984
      }
945
    }
985
    }
946
    lastComparison = Boolean.valueOf(isSetFreightCharges()).compareTo(isSetFreightCharges());
986
    lastComparison = Boolean.valueOf(isSetFreightCharges()).compareTo(typedOther.isSetFreightCharges());
947
    if (lastComparison != 0) {
987
    if (lastComparison != 0) {
948
      return lastComparison;
988
      return lastComparison;
949
    }
989
    }
-
 
990
    if (isSetFreightCharges()) {
950
    lastComparison = TBaseHelper.compareTo(freightCharges, typedOther.freightCharges);
991
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freightCharges, typedOther.freightCharges);
951
    if (lastComparison != 0) {
992
      if (lastComparison != 0) {
952
      return lastComparison;
993
        return lastComparison;
-
 
994
      }
953
    }
995
    }
954
    lastComparison = Boolean.valueOf(isSetRealizedCost()).compareTo(isSetRealizedCost());
996
    lastComparison = Boolean.valueOf(isSetRealizedCost()).compareTo(typedOther.isSetRealizedCost());
955
    if (lastComparison != 0) {
997
    if (lastComparison != 0) {
956
      return lastComparison;
998
      return lastComparison;
957
    }
999
    }
-
 
1000
    if (isSetRealizedCost()) {
958
    lastComparison = TBaseHelper.compareTo(realizedCost, typedOther.realizedCost);
1001
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.realizedCost, typedOther.realizedCost);
959
    if (lastComparison != 0) {
1002
      if (lastComparison != 0) {
960
      return lastComparison;
1003
        return lastComparison;
-
 
1004
      }
961
    }
1005
    }
962
    lastComparison = Boolean.valueOf(isSetRealizedFreightCharges()).compareTo(isSetRealizedFreightCharges());
1006
    lastComparison = Boolean.valueOf(isSetRealizedFreightCharges()).compareTo(typedOther.isSetRealizedFreightCharges());
963
    if (lastComparison != 0) {
1007
    if (lastComparison != 0) {
964
      return lastComparison;
1008
      return lastComparison;
965
    }
1009
    }
-
 
1010
    if (isSetRealizedFreightCharges()) {
966
    lastComparison = TBaseHelper.compareTo(realizedFreightCharges, typedOther.realizedFreightCharges);
1011
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.realizedFreightCharges, typedOther.realizedFreightCharges);
967
    if (lastComparison != 0) {
1012
      if (lastComparison != 0) {
968
      return lastComparison;
1013
        return lastComparison;
-
 
1014
      }
969
    }
1015
    }
970
    return 0;
1016
    return 0;
971
  }
1017
  }
972
 
1018
 
-
 
1019
  public _Fields fieldForId(int fieldId) {
-
 
1020
    return _Fields.findByThriftId(fieldId);
-
 
1021
  }
-
 
1022
 
973
  public void read(TProtocol iprot) throws TException {
1023
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
974
    TField field;
1024
    org.apache.thrift.protocol.TField field;
975
    iprot.readStructBegin();
1025
    iprot.readStructBegin();
976
    while (true)
1026
    while (true)
977
    {
1027
    {
978
      field = iprot.readFieldBegin();
1028
      field = iprot.readFieldBegin();
979
      if (field.type == TType.STOP) { 
1029
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
980
        break;
1030
        break;
981
      }
1031
      }
982
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
983
      if (fieldId == null) {
-
 
984
        TProtocolUtil.skip(iprot, field.type);
-
 
985
      } else {
-
 
986
        switch (fieldId) {
1032
      switch (field.id) {
987
          case ID:
1033
        case 1: // ID
988
            if (field.type == TType.I64) {
1034
          if (field.type == org.apache.thrift.protocol.TType.I64) {
989
              this.id = iprot.readI64();
1035
            this.id = iprot.readI64();
990
              setIdIsSet(true);
1036
            setIdIsSet(true);
991
            } else { 
1037
          } else { 
992
              TProtocolUtil.skip(iprot, field.type);
1038
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
993
            }
1039
          }
994
            break;
1040
          break;
995
          case PO_NUMBER:
1041
        case 2: // PO_NUMBER
996
            if (field.type == TType.STRING) {
1042
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
997
              this.poNumber = iprot.readString();
1043
            this.poNumber = iprot.readString();
998
            } else { 
1044
          } else { 
999
              TProtocolUtil.skip(iprot, field.type);
1045
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1000
            }
1046
          }
1001
            break;
1047
          break;
1002
          case LINEITEMS:
1048
        case 3: // LINEITEMS
1003
            if (field.type == TType.LIST) {
1049
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
1050
            {
-
 
1051
              org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
-
 
1052
              this.lineitems = new ArrayList<LineItem>(_list0.size);
-
 
1053
              for (int _i1 = 0; _i1 < _list0.size; ++_i1)
1004
              {
1054
              {
1005
                TList _list0 = iprot.readListBegin();
-
 
1006
                this.lineitems = new ArrayList<LineItem>(_list0.size);
-
 
1007
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
-
 
1008
                {
-
 
1009
                  LineItem _elem2;
1055
                LineItem _elem2; // required
1010
                  _elem2 = new LineItem();
1056
                _elem2 = new LineItem();
1011
                  _elem2.read(iprot);
1057
                _elem2.read(iprot);
1012
                  this.lineitems.add(_elem2);
1058
                this.lineitems.add(_elem2);
1013
                }
-
 
1014
                iprot.readListEnd();
-
 
1015
              }
1059
              }
1016
            } else { 
1060
              iprot.readListEnd();
1017
              TProtocolUtil.skip(iprot, field.type);
-
 
1018
            }
1061
            }
-
 
1062
          } else { 
-
 
1063
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1064
          }
1019
            break;
1065
          break;
1020
          case SUPPLIER_ID:
1066
        case 4: // SUPPLIER_ID
1021
            if (field.type == TType.I64) {
1067
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1022
              this.supplierId = iprot.readI64();
1068
            this.supplierId = iprot.readI64();
1023
              setSupplierIdIsSet(true);
1069
            setSupplierIdIsSet(true);
1024
            } else { 
1070
          } else { 
1025
              TProtocolUtil.skip(iprot, field.type);
1071
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1026
            }
1072
          }
1027
            break;
1073
          break;
1028
          case WAREHOUSE_ID:
1074
        case 5: // WAREHOUSE_ID
1029
            if (field.type == TType.I64) {
1075
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1030
              this.warehouseId = iprot.readI64();
1076
            this.warehouseId = iprot.readI64();
1031
              setWarehouseIdIsSet(true);
1077
            setWarehouseIdIsSet(true);
1032
            } else { 
1078
          } else { 
1033
              TProtocolUtil.skip(iprot, field.type);
1079
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1034
            }
1080
          }
1035
            break;
1081
          break;
1036
          case STATUS:
1082
        case 6: // STATUS
1037
            if (field.type == TType.I32) {
1083
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1038
              this.status = POStatus.findByValue(iprot.readI32());
1084
            this.status = POStatus.findByValue(iprot.readI32());
1039
            } else { 
1085
          } else { 
1040
              TProtocolUtil.skip(iprot, field.type);
1086
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1041
            }
1087
          }
1042
            break;
1088
          break;
1043
          case CREATED_AT:
1089
        case 7: // CREATED_AT
1044
            if (field.type == TType.I64) {
1090
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1045
              this.createdAt = iprot.readI64();
1091
            this.createdAt = iprot.readI64();
1046
              setCreatedAtIsSet(true);
1092
            setCreatedAtIsSet(true);
1047
            } else { 
1093
          } else { 
1048
              TProtocolUtil.skip(iprot, field.type);
1094
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1049
            }
1095
          }
1050
            break;
1096
          break;
1051
          case UPDATED_AT:
1097
        case 8: // UPDATED_AT
1052
            if (field.type == TType.I64) {
1098
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1053
              this.updatedAt = iprot.readI64();
1099
            this.updatedAt = iprot.readI64();
1054
              setUpdatedAtIsSet(true);
1100
            setUpdatedAtIsSet(true);
1055
            } else { 
1101
          } else { 
1056
              TProtocolUtil.skip(iprot, field.type);
1102
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1057
            }
1103
          }
1058
            break;
1104
          break;
1059
          case TOTAL_COST:
1105
        case 9: // TOTAL_COST
1060
            if (field.type == TType.DOUBLE) {
1106
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1061
              this.totalCost = iprot.readDouble();
1107
            this.totalCost = iprot.readDouble();
1062
              setTotalCostIsSet(true);
1108
            setTotalCostIsSet(true);
1063
            } else { 
1109
          } else { 
1064
              TProtocolUtil.skip(iprot, field.type);
1110
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1065
            }
1111
          }
1066
            break;
1112
          break;
1067
          case FREIGHT_CHARGES:
1113
        case 10: // FREIGHT_CHARGES
1068
            if (field.type == TType.DOUBLE) {
1114
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1069
              this.freightCharges = iprot.readDouble();
1115
            this.freightCharges = iprot.readDouble();
1070
              setFreightChargesIsSet(true);
1116
            setFreightChargesIsSet(true);
1071
            } else { 
1117
          } else { 
1072
              TProtocolUtil.skip(iprot, field.type);
1118
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1073
            }
1119
          }
1074
            break;
1120
          break;
1075
          case REALIZED_COST:
1121
        case 11: // REALIZED_COST
1076
            if (field.type == TType.DOUBLE) {
1122
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1077
              this.realizedCost = iprot.readDouble();
1123
            this.realizedCost = iprot.readDouble();
1078
              setRealizedCostIsSet(true);
1124
            setRealizedCostIsSet(true);
1079
            } else { 
1125
          } else { 
1080
              TProtocolUtil.skip(iprot, field.type);
1126
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1081
            }
1127
          }
1082
            break;
1128
          break;
1083
          case REALIZED_FREIGHT_CHARGES:
1129
        case 12: // REALIZED_FREIGHT_CHARGES
1084
            if (field.type == TType.DOUBLE) {
1130
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1085
              this.realizedFreightCharges = iprot.readDouble();
1131
            this.realizedFreightCharges = iprot.readDouble();
1086
              setRealizedFreightChargesIsSet(true);
1132
            setRealizedFreightChargesIsSet(true);
1087
            } else { 
1133
          } else { 
1088
              TProtocolUtil.skip(iprot, field.type);
1134
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1089
            }
1135
          }
1090
            break;
1136
          break;
1091
        }
1137
        default:
1092
        iprot.readFieldEnd();
1138
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1093
      }
1139
      }
-
 
1140
      iprot.readFieldEnd();
1094
    }
1141
    }
1095
    iprot.readStructEnd();
1142
    iprot.readStructEnd();
1096
    validate();
1143
    validate();
1097
  }
1144
  }
1098
 
1145
 
1099
  public void write(TProtocol oprot) throws TException {
1146
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1100
    validate();
1147
    validate();
1101
 
1148
 
1102
    oprot.writeStructBegin(STRUCT_DESC);
1149
    oprot.writeStructBegin(STRUCT_DESC);
1103
    oprot.writeFieldBegin(ID_FIELD_DESC);
1150
    oprot.writeFieldBegin(ID_FIELD_DESC);
1104
    oprot.writeI64(this.id);
1151
    oprot.writeI64(this.id);
Line 1109... Line 1156...
1109
      oprot.writeFieldEnd();
1156
      oprot.writeFieldEnd();
1110
    }
1157
    }
1111
    if (this.lineitems != null) {
1158
    if (this.lineitems != null) {
1112
      oprot.writeFieldBegin(LINEITEMS_FIELD_DESC);
1159
      oprot.writeFieldBegin(LINEITEMS_FIELD_DESC);
1113
      {
1160
      {
1114
        oprot.writeListBegin(new TList(TType.STRUCT, this.lineitems.size()));
1161
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lineitems.size()));
1115
        for (LineItem _iter3 : this.lineitems)
1162
        for (LineItem _iter3 : this.lineitems)
1116
        {
1163
        {
1117
          _iter3.write(oprot);
1164
          _iter3.write(oprot);
1118
        }
1165
        }
1119
        oprot.writeListEnd();
1166
        oprot.writeListEnd();
Line 1188... Line 1235...
1188
    if (!first) sb.append(", ");
1235
    if (!first) sb.append(", ");
1189
    sb.append("status:");
1236
    sb.append("status:");
1190
    if (this.status == null) {
1237
    if (this.status == null) {
1191
      sb.append("null");
1238
      sb.append("null");
1192
    } else {
1239
    } else {
1193
      String status_name = status.name();
-
 
1194
      if (status_name != null) {
-
 
1195
        sb.append(status_name);
-
 
1196
        sb.append(" (");
-
 
1197
      }
-
 
1198
      sb.append(this.status);
1240
      sb.append(this.status);
1199
      if (status_name != null) {
-
 
1200
        sb.append(")");
-
 
1201
      }
-
 
1202
    }
1241
    }
1203
    first = false;
1242
    first = false;
1204
    if (!first) sb.append(", ");
1243
    if (!first) sb.append(", ");
1205
    sb.append("createdAt:");
1244
    sb.append("createdAt:");
1206
    sb.append(this.createdAt);
1245
    sb.append(this.createdAt);
Line 1227... Line 1266...
1227
    first = false;
1266
    first = false;
1228
    sb.append(")");
1267
    sb.append(")");
1229
    return sb.toString();
1268
    return sb.toString();
1230
  }
1269
  }
1231
 
1270
 
1232
  public void validate() throws TException {
1271
  public void validate() throws org.apache.thrift.TException {
1233
    // check for required fields
1272
    // check for required fields
1234
  }
1273
  }
1235
 
1274
 
-
 
1275
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1276
    try {
-
 
1277
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1278
    } catch (org.apache.thrift.TException te) {
-
 
1279
      throw new java.io.IOException(te);
-
 
1280
    }
-
 
1281
  }
-
 
1282
 
-
 
1283
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1284
    try {
-
 
1285
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1286
      __isset_bit_vector = new BitSet(1);
-
 
1287
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1288
    } catch (org.apache.thrift.TException te) {
-
 
1289
      throw new java.io.IOException(te);
-
 
1290
    }
-
 
1291
  }
-
 
1292
 
1236
}
1293
}
1237
 
1294