Subversion Repositories SmartDukaan

Rev

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

Rev 9925 Rev 20025
Line 36... Line 36...
36
  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)11);
36
  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)11);
37
  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)12);
37
  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)12);
38
  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)13);
38
  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)13);
39
  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)14);
39
  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)14);
40
  private static final org.apache.thrift.protocol.TField TAX_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("taxType", org.apache.thrift.protocol.TType.I32, (short)15);
40
  private static final org.apache.thrift.protocol.TField TAX_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("taxType", org.apache.thrift.protocol.TType.I32, (short)15);
-
 
41
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseAddressId", org.apache.thrift.protocol.TType.I64, (short)16);
-
 
42
  private static final org.apache.thrift.protocol.TField SHIPPING_WAREHOUSE_ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingWarehouseAddressId", org.apache.thrift.protocol.TType.I64, (short)17);
-
 
43
  private static final org.apache.thrift.protocol.TField BUYER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("buyerId", org.apache.thrift.protocol.TType.I64, (short)18);
41
 
44
 
42
  private long id; // required
45
  private long id; // required
43
  private String poNumber; // required
46
  private String poNumber; // required
44
  private List<LineItem> lineitems; // required
47
  private List<LineItem> lineitems; // required
45
  private long supplierId; // required
48
  private long supplierId; // required
Line 52... Line 55...
52
  private double freightCharges; // required
55
  private double freightCharges; // required
53
  private double realizedCost; // required
56
  private double realizedCost; // required
54
  private double realizedFreightCharges; // required
57
  private double realizedFreightCharges; // required
55
  private POType type; // required
58
  private POType type; // required
56
  private TaxType taxType; // required
59
  private TaxType taxType; // required
-
 
60
  private long warehouseAddressId; // required
-
 
61
  private long shippingWarehouseAddressId; // required
-
 
62
  private long buyerId; // required
57
 
63
 
58
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
60
    ID((short)1, "id"),
66
    ID((short)1, "id"),
61
    PO_NUMBER((short)2, "poNumber"),
67
    PO_NUMBER((short)2, "poNumber"),
Line 81... Line 87...
81
    TYPE((short)14, "type"),
87
    TYPE((short)14, "type"),
82
    /**
88
    /**
83
     * 
89
     * 
84
     * @see TaxType
90
     * @see TaxType
85
     */
91
     */
86
    TAX_TYPE((short)15, "taxType");
92
    TAX_TYPE((short)15, "taxType"),
-
 
93
    WAREHOUSE_ADDRESS_ID((short)16, "warehouseAddressId"),
-
 
94
    SHIPPING_WAREHOUSE_ADDRESS_ID((short)17, "shippingWarehouseAddressId"),
-
 
95
    BUYER_ID((short)18, "buyerId");
87
 
96
 
88
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
97
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
89
 
98
 
90
    static {
99
    static {
91
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
100
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 126... Line 135...
126
          return REALIZED_FREIGHT_CHARGES;
135
          return REALIZED_FREIGHT_CHARGES;
127
        case 14: // TYPE
136
        case 14: // TYPE
128
          return TYPE;
137
          return TYPE;
129
        case 15: // TAX_TYPE
138
        case 15: // TAX_TYPE
130
          return TAX_TYPE;
139
          return TAX_TYPE;
-
 
140
        case 16: // WAREHOUSE_ADDRESS_ID
-
 
141
          return WAREHOUSE_ADDRESS_ID;
-
 
142
        case 17: // SHIPPING_WAREHOUSE_ADDRESS_ID
-
 
143
          return SHIPPING_WAREHOUSE_ADDRESS_ID;
-
 
144
        case 18: // BUYER_ID
-
 
145
          return BUYER_ID;
131
        default:
146
        default:
132
          return null;
147
          return null;
133
      }
148
      }
134
    }
149
    }
135
 
150
 
Line 176... Line 191...
176
  private static final int __UPDATEDAT_ISSET_ID = 5;
191
  private static final int __UPDATEDAT_ISSET_ID = 5;
177
  private static final int __TOTALCOST_ISSET_ID = 6;
192
  private static final int __TOTALCOST_ISSET_ID = 6;
178
  private static final int __FREIGHTCHARGES_ISSET_ID = 7;
193
  private static final int __FREIGHTCHARGES_ISSET_ID = 7;
179
  private static final int __REALIZEDCOST_ISSET_ID = 8;
194
  private static final int __REALIZEDCOST_ISSET_ID = 8;
180
  private static final int __REALIZEDFREIGHTCHARGES_ISSET_ID = 9;
195
  private static final int __REALIZEDFREIGHTCHARGES_ISSET_ID = 9;
-
 
196
  private static final int __WAREHOUSEADDRESSID_ISSET_ID = 10;
-
 
197
  private static final int __SHIPPINGWAREHOUSEADDRESSID_ISSET_ID = 11;
-
 
198
  private static final int __BUYERID_ISSET_ID = 12;
181
  private BitSet __isset_bit_vector = new BitSet(10);
199
  private BitSet __isset_bit_vector = new BitSet(13);
182
 
200
 
183
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
201
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
184
  static {
202
  static {
185
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
203
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
186
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
204
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 212... Line 230...
212
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
230
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
213
    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
231
    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
214
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, POType.class)));
232
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, POType.class)));
215
    tmpMap.put(_Fields.TAX_TYPE, new org.apache.thrift.meta_data.FieldMetaData("taxType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
233
    tmpMap.put(_Fields.TAX_TYPE, new org.apache.thrift.meta_data.FieldMetaData("taxType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
216
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TaxType.class)));
234
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TaxType.class)));
-
 
235
    tmpMap.put(_Fields.WAREHOUSE_ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseAddressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
236
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
237
    tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseAddressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
238
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
239
    tmpMap.put(_Fields.BUYER_ID, new org.apache.thrift.meta_data.FieldMetaData("buyerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
240
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
217
    metaDataMap = Collections.unmodifiableMap(tmpMap);
241
    metaDataMap = Collections.unmodifiableMap(tmpMap);
218
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PurchaseOrder.class, metaDataMap);
242
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PurchaseOrder.class, metaDataMap);
219
  }
243
  }
220
 
244
 
221
  public PurchaseOrder() {
245
  public PurchaseOrder() {
Line 234... Line 258...
234
    double totalCost,
258
    double totalCost,
235
    double freightCharges,
259
    double freightCharges,
236
    double realizedCost,
260
    double realizedCost,
237
    double realizedFreightCharges,
261
    double realizedFreightCharges,
238
    POType type,
262
    POType type,
239
    TaxType taxType)
263
    TaxType taxType,
-
 
264
    long warehouseAddressId,
-
 
265
    long shippingWarehouseAddressId,
-
 
266
    long buyerId)
240
  {
267
  {
241
    this();
268
    this();
242
    this.id = id;
269
    this.id = id;
243
    setIdIsSet(true);
270
    setIdIsSet(true);
244
    this.poNumber = poNumber;
271
    this.poNumber = poNumber;
Line 262... Line 289...
262
    setRealizedCostIsSet(true);
289
    setRealizedCostIsSet(true);
263
    this.realizedFreightCharges = realizedFreightCharges;
290
    this.realizedFreightCharges = realizedFreightCharges;
264
    setRealizedFreightChargesIsSet(true);
291
    setRealizedFreightChargesIsSet(true);
265
    this.type = type;
292
    this.type = type;
266
    this.taxType = taxType;
293
    this.taxType = taxType;
-
 
294
    this.warehouseAddressId = warehouseAddressId;
-
 
295
    setWarehouseAddressIdIsSet(true);
-
 
296
    this.shippingWarehouseAddressId = shippingWarehouseAddressId;
-
 
297
    setShippingWarehouseAddressIdIsSet(true);
-
 
298
    this.buyerId = buyerId;
-
 
299
    setBuyerIdIsSet(true);
267
  }
300
  }
268
 
301
 
269
  /**
302
  /**
270
   * Performs a deep copy on <i>other</i>.
303
   * Performs a deep copy on <i>other</i>.
271
   */
304
   */
Line 299... Line 332...
299
      this.type = other.type;
332
      this.type = other.type;
300
    }
333
    }
301
    if (other.isSetTaxType()) {
334
    if (other.isSetTaxType()) {
302
      this.taxType = other.taxType;
335
      this.taxType = other.taxType;
303
    }
336
    }
-
 
337
    this.warehouseAddressId = other.warehouseAddressId;
-
 
338
    this.shippingWarehouseAddressId = other.shippingWarehouseAddressId;
-
 
339
    this.buyerId = other.buyerId;
304
  }
340
  }
305
 
341
 
306
  public PurchaseOrder deepCopy() {
342
  public PurchaseOrder deepCopy() {
307
    return new PurchaseOrder(this);
343
    return new PurchaseOrder(this);
308
  }
344
  }
Line 332... Line 368...
332
    this.realizedCost = 0.0;
368
    this.realizedCost = 0.0;
333
    setRealizedFreightChargesIsSet(false);
369
    setRealizedFreightChargesIsSet(false);
334
    this.realizedFreightCharges = 0.0;
370
    this.realizedFreightCharges = 0.0;
335
    this.type = null;
371
    this.type = null;
336
    this.taxType = null;
372
    this.taxType = null;
-
 
373
    setWarehouseAddressIdIsSet(false);
-
 
374
    this.warehouseAddressId = 0;
-
 
375
    setShippingWarehouseAddressIdIsSet(false);
-
 
376
    this.shippingWarehouseAddressId = 0;
-
 
377
    setBuyerIdIsSet(false);
-
 
378
    this.buyerId = 0;
337
  }
379
  }
338
 
380
 
339
  public long getId() {
381
  public long getId() {
340
    return this.id;
382
    return this.id;
341
  }
383
  }
Line 708... Line 750...
708
    if (!value) {
750
    if (!value) {
709
      this.taxType = null;
751
      this.taxType = null;
710
    }
752
    }
711
  }
753
  }
712
 
754
 
-
 
755
  public long getWarehouseAddressId() {
-
 
756
    return this.warehouseAddressId;
-
 
757
  }
-
 
758
 
-
 
759
  public void setWarehouseAddressId(long warehouseAddressId) {
-
 
760
    this.warehouseAddressId = warehouseAddressId;
-
 
761
    setWarehouseAddressIdIsSet(true);
-
 
762
  }
-
 
763
 
-
 
764
  public void unsetWarehouseAddressId() {
-
 
765
    __isset_bit_vector.clear(__WAREHOUSEADDRESSID_ISSET_ID);
-
 
766
  }
-
 
767
 
-
 
768
  /** Returns true if field warehouseAddressId is set (has been assigned a value) and false otherwise */
-
 
769
  public boolean isSetWarehouseAddressId() {
-
 
770
    return __isset_bit_vector.get(__WAREHOUSEADDRESSID_ISSET_ID);
-
 
771
  }
-
 
772
 
-
 
773
  public void setWarehouseAddressIdIsSet(boolean value) {
-
 
774
    __isset_bit_vector.set(__WAREHOUSEADDRESSID_ISSET_ID, value);
-
 
775
  }
-
 
776
 
-
 
777
  public long getShippingWarehouseAddressId() {
-
 
778
    return this.shippingWarehouseAddressId;
-
 
779
  }
-
 
780
 
-
 
781
  public void setShippingWarehouseAddressId(long shippingWarehouseAddressId) {
-
 
782
    this.shippingWarehouseAddressId = shippingWarehouseAddressId;
-
 
783
    setShippingWarehouseAddressIdIsSet(true);
-
 
784
  }
-
 
785
 
-
 
786
  public void unsetShippingWarehouseAddressId() {
-
 
787
    __isset_bit_vector.clear(__SHIPPINGWAREHOUSEADDRESSID_ISSET_ID);
-
 
788
  }
-
 
789
 
-
 
790
  /** Returns true if field shippingWarehouseAddressId is set (has been assigned a value) and false otherwise */
-
 
791
  public boolean isSetShippingWarehouseAddressId() {
-
 
792
    return __isset_bit_vector.get(__SHIPPINGWAREHOUSEADDRESSID_ISSET_ID);
-
 
793
  }
-
 
794
 
-
 
795
  public void setShippingWarehouseAddressIdIsSet(boolean value) {
-
 
796
    __isset_bit_vector.set(__SHIPPINGWAREHOUSEADDRESSID_ISSET_ID, value);
-
 
797
  }
-
 
798
 
-
 
799
  public long getBuyerId() {
-
 
800
    return this.buyerId;
-
 
801
  }
-
 
802
 
-
 
803
  public void setBuyerId(long buyerId) {
-
 
804
    this.buyerId = buyerId;
-
 
805
    setBuyerIdIsSet(true);
-
 
806
  }
-
 
807
 
-
 
808
  public void unsetBuyerId() {
-
 
809
    __isset_bit_vector.clear(__BUYERID_ISSET_ID);
-
 
810
  }
-
 
811
 
-
 
812
  /** Returns true if field buyerId is set (has been assigned a value) and false otherwise */
-
 
813
  public boolean isSetBuyerId() {
-
 
814
    return __isset_bit_vector.get(__BUYERID_ISSET_ID);
-
 
815
  }
-
 
816
 
-
 
817
  public void setBuyerIdIsSet(boolean value) {
-
 
818
    __isset_bit_vector.set(__BUYERID_ISSET_ID, value);
-
 
819
  }
-
 
820
 
713
  public void setFieldValue(_Fields field, Object value) {
821
  public void setFieldValue(_Fields field, Object value) {
714
    switch (field) {
822
    switch (field) {
715
    case ID:
823
    case ID:
716
      if (value == null) {
824
      if (value == null) {
717
        unsetId();
825
        unsetId();
Line 830... Line 938...
830
      } else {
938
      } else {
831
        setTaxType((TaxType)value);
939
        setTaxType((TaxType)value);
832
      }
940
      }
833
      break;
941
      break;
834
 
942
 
-
 
943
    case WAREHOUSE_ADDRESS_ID:
-
 
944
      if (value == null) {
-
 
945
        unsetWarehouseAddressId();
-
 
946
      } else {
-
 
947
        setWarehouseAddressId((Long)value);
-
 
948
      }
-
 
949
      break;
-
 
950
 
-
 
951
    case SHIPPING_WAREHOUSE_ADDRESS_ID:
-
 
952
      if (value == null) {
-
 
953
        unsetShippingWarehouseAddressId();
-
 
954
      } else {
-
 
955
        setShippingWarehouseAddressId((Long)value);
-
 
956
      }
-
 
957
      break;
-
 
958
 
-
 
959
    case BUYER_ID:
-
 
960
      if (value == null) {
-
 
961
        unsetBuyerId();
-
 
962
      } else {
-
 
963
        setBuyerId((Long)value);
-
 
964
      }
-
 
965
      break;
-
 
966
 
835
    }
967
    }
836
  }
968
  }
837
 
969
 
838
  public Object getFieldValue(_Fields field) {
970
  public Object getFieldValue(_Fields field) {
839
    switch (field) {
971
    switch (field) {
Line 880... Line 1012...
880
      return getType();
1012
      return getType();
881
 
1013
 
882
    case TAX_TYPE:
1014
    case TAX_TYPE:
883
      return getTaxType();
1015
      return getTaxType();
884
 
1016
 
-
 
1017
    case WAREHOUSE_ADDRESS_ID:
-
 
1018
      return Long.valueOf(getWarehouseAddressId());
-
 
1019
 
-
 
1020
    case SHIPPING_WAREHOUSE_ADDRESS_ID:
-
 
1021
      return Long.valueOf(getShippingWarehouseAddressId());
-
 
1022
 
-
 
1023
    case BUYER_ID:
-
 
1024
      return Long.valueOf(getBuyerId());
-
 
1025
 
885
    }
1026
    }
886
    throw new IllegalStateException();
1027
    throw new IllegalStateException();
887
  }
1028
  }
888
 
1029
 
889
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1030
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 921... Line 1062...
921
      return isSetRealizedFreightCharges();
1062
      return isSetRealizedFreightCharges();
922
    case TYPE:
1063
    case TYPE:
923
      return isSetType();
1064
      return isSetType();
924
    case TAX_TYPE:
1065
    case TAX_TYPE:
925
      return isSetTaxType();
1066
      return isSetTaxType();
-
 
1067
    case WAREHOUSE_ADDRESS_ID:
-
 
1068
      return isSetWarehouseAddressId();
-
 
1069
    case SHIPPING_WAREHOUSE_ADDRESS_ID:
-
 
1070
      return isSetShippingWarehouseAddressId();
-
 
1071
    case BUYER_ID:
-
 
1072
      return isSetBuyerId();
926
    }
1073
    }
927
    throw new IllegalStateException();
1074
    throw new IllegalStateException();
928
  }
1075
  }
929
 
1076
 
930
  @Override
1077
  @Override
Line 1073... Line 1220...
1073
        return false;
1220
        return false;
1074
      if (!this.taxType.equals(that.taxType))
1221
      if (!this.taxType.equals(that.taxType))
1075
        return false;
1222
        return false;
1076
    }
1223
    }
1077
 
1224
 
-
 
1225
    boolean this_present_warehouseAddressId = true;
-
 
1226
    boolean that_present_warehouseAddressId = true;
-
 
1227
    if (this_present_warehouseAddressId || that_present_warehouseAddressId) {
-
 
1228
      if (!(this_present_warehouseAddressId && that_present_warehouseAddressId))
-
 
1229
        return false;
-
 
1230
      if (this.warehouseAddressId != that.warehouseAddressId)
-
 
1231
        return false;
-
 
1232
    }
-
 
1233
 
-
 
1234
    boolean this_present_shippingWarehouseAddressId = true;
-
 
1235
    boolean that_present_shippingWarehouseAddressId = true;
-
 
1236
    if (this_present_shippingWarehouseAddressId || that_present_shippingWarehouseAddressId) {
-
 
1237
      if (!(this_present_shippingWarehouseAddressId && that_present_shippingWarehouseAddressId))
-
 
1238
        return false;
-
 
1239
      if (this.shippingWarehouseAddressId != that.shippingWarehouseAddressId)
-
 
1240
        return false;
-
 
1241
    }
-
 
1242
 
-
 
1243
    boolean this_present_buyerId = true;
-
 
1244
    boolean that_present_buyerId = true;
-
 
1245
    if (this_present_buyerId || that_present_buyerId) {
-
 
1246
      if (!(this_present_buyerId && that_present_buyerId))
-
 
1247
        return false;
-
 
1248
      if (this.buyerId != that.buyerId)
-
 
1249
        return false;
-
 
1250
    }
-
 
1251
 
1078
    return true;
1252
    return true;
1079
  }
1253
  }
1080
 
1254
 
1081
  @Override
1255
  @Override
1082
  public int hashCode() {
1256
  public int hashCode() {
Line 1239... Line 1413...
1239
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taxType, typedOther.taxType);
1413
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taxType, typedOther.taxType);
1240
      if (lastComparison != 0) {
1414
      if (lastComparison != 0) {
1241
        return lastComparison;
1415
        return lastComparison;
1242
      }
1416
      }
1243
    }
1417
    }
-
 
1418
    lastComparison = Boolean.valueOf(isSetWarehouseAddressId()).compareTo(typedOther.isSetWarehouseAddressId());
-
 
1419
    if (lastComparison != 0) {
-
 
1420
      return lastComparison;
-
 
1421
    }
-
 
1422
    if (isSetWarehouseAddressId()) {
-
 
1423
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseAddressId, typedOther.warehouseAddressId);
-
 
1424
      if (lastComparison != 0) {
-
 
1425
        return lastComparison;
-
 
1426
      }
-
 
1427
    }
-
 
1428
    lastComparison = Boolean.valueOf(isSetShippingWarehouseAddressId()).compareTo(typedOther.isSetShippingWarehouseAddressId());
-
 
1429
    if (lastComparison != 0) {
-
 
1430
      return lastComparison;
-
 
1431
    }
-
 
1432
    if (isSetShippingWarehouseAddressId()) {
-
 
1433
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseAddressId, typedOther.shippingWarehouseAddressId);
-
 
1434
      if (lastComparison != 0) {
-
 
1435
        return lastComparison;
-
 
1436
      }
-
 
1437
    }
-
 
1438
    lastComparison = Boolean.valueOf(isSetBuyerId()).compareTo(typedOther.isSetBuyerId());
-
 
1439
    if (lastComparison != 0) {
-
 
1440
      return lastComparison;
-
 
1441
    }
-
 
1442
    if (isSetBuyerId()) {
-
 
1443
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.buyerId, typedOther.buyerId);
-
 
1444
      if (lastComparison != 0) {
-
 
1445
        return lastComparison;
-
 
1446
      }
-
 
1447
    }
1244
    return 0;
1448
    return 0;
1245
  }
1449
  }
1246
 
1450
 
1247
  public _Fields fieldForId(int fieldId) {
1451
  public _Fields fieldForId(int fieldId) {
1248
    return _Fields.findByThriftId(fieldId);
1452
    return _Fields.findByThriftId(fieldId);
Line 1382... Line 1586...
1382
            this.taxType = TaxType.findByValue(iprot.readI32());
1586
            this.taxType = TaxType.findByValue(iprot.readI32());
1383
          } else { 
1587
          } else { 
1384
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1588
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1385
          }
1589
          }
1386
          break;
1590
          break;
-
 
1591
        case 16: // WAREHOUSE_ADDRESS_ID
-
 
1592
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1593
            this.warehouseAddressId = iprot.readI64();
-
 
1594
            setWarehouseAddressIdIsSet(true);
-
 
1595
          } else { 
-
 
1596
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1597
          }
-
 
1598
          break;
-
 
1599
        case 17: // SHIPPING_WAREHOUSE_ADDRESS_ID
-
 
1600
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1601
            this.shippingWarehouseAddressId = iprot.readI64();
-
 
1602
            setShippingWarehouseAddressIdIsSet(true);
-
 
1603
          } else { 
-
 
1604
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1605
          }
-
 
1606
          break;
-
 
1607
        case 18: // BUYER_ID
-
 
1608
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1609
            this.buyerId = iprot.readI64();
-
 
1610
            setBuyerIdIsSet(true);
-
 
1611
          } else { 
-
 
1612
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1613
          }
-
 
1614
          break;
1387
        default:
1615
        default:
1388
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1616
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1389
      }
1617
      }
1390
      iprot.readFieldEnd();
1618
      iprot.readFieldEnd();
1391
    }
1619
    }
Line 1457... Line 1685...
1457
    if (this.taxType != null) {
1685
    if (this.taxType != null) {
1458
      oprot.writeFieldBegin(TAX_TYPE_FIELD_DESC);
1686
      oprot.writeFieldBegin(TAX_TYPE_FIELD_DESC);
1459
      oprot.writeI32(this.taxType.getValue());
1687
      oprot.writeI32(this.taxType.getValue());
1460
      oprot.writeFieldEnd();
1688
      oprot.writeFieldEnd();
1461
    }
1689
    }
-
 
1690
    oprot.writeFieldBegin(WAREHOUSE_ADDRESS_ID_FIELD_DESC);
-
 
1691
    oprot.writeI64(this.warehouseAddressId);
-
 
1692
    oprot.writeFieldEnd();
-
 
1693
    oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ADDRESS_ID_FIELD_DESC);
-
 
1694
    oprot.writeI64(this.shippingWarehouseAddressId);
-
 
1695
    oprot.writeFieldEnd();
-
 
1696
    oprot.writeFieldBegin(BUYER_ID_FIELD_DESC);
-
 
1697
    oprot.writeI64(this.buyerId);
-
 
1698
    oprot.writeFieldEnd();
1462
    oprot.writeFieldStop();
1699
    oprot.writeFieldStop();
1463
    oprot.writeStructEnd();
1700
    oprot.writeStructEnd();
1464
  }
1701
  }
1465
 
1702
 
1466
  @Override
1703
  @Override
Line 1545... Line 1782...
1545
      sb.append("null");
1782
      sb.append("null");
1546
    } else {
1783
    } else {
1547
      sb.append(this.taxType);
1784
      sb.append(this.taxType);
1548
    }
1785
    }
1549
    first = false;
1786
    first = false;
-
 
1787
    if (!first) sb.append(", ");
-
 
1788
    sb.append("warehouseAddressId:");
-
 
1789
    sb.append(this.warehouseAddressId);
-
 
1790
    first = false;
-
 
1791
    if (!first) sb.append(", ");
-
 
1792
    sb.append("shippingWarehouseAddressId:");
-
 
1793
    sb.append(this.shippingWarehouseAddressId);
-
 
1794
    first = false;
-
 
1795
    if (!first) sb.append(", ");
-
 
1796
    sb.append("buyerId:");
-
 
1797
    sb.append(this.buyerId);
-
 
1798
    first = false;
1550
    sb.append(")");
1799
    sb.append(")");
1551
    return sb.toString();
1800
    return sb.toString();
1552
  }
1801
  }
1553
 
1802
 
1554
  public void validate() throws org.apache.thrift.TException {
1803
  public void validate() throws org.apache.thrift.TException {