Subversion Repositories SmartDukaan

Rev

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

Rev 17470 Rev 19973
Line 100... Line 100...
100
  private static final org.apache.thrift.protocol.TField DATA_PROTECTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)75);
100
  private static final org.apache.thrift.protocol.TField DATA_PROTECTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)75);
101
  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)76);
101
  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)76);
102
  private static final org.apache.thrift.protocol.TField LOGISTICS_TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTransactionId", org.apache.thrift.protocol.TType.STRING, (short)77);
102
  private static final org.apache.thrift.protocol.TField LOGISTICS_TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTransactionId", org.apache.thrift.protocol.TType.STRING, (short)77);
103
  private static final org.apache.thrift.protocol.TField SHIPPING_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingCost", org.apache.thrift.protocol.TType.DOUBLE, (short)78);
103
  private static final org.apache.thrift.protocol.TField SHIPPING_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingCost", org.apache.thrift.protocol.TType.DOUBLE, (short)78);
104
  private static final org.apache.thrift.protocol.TField COD_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("codCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)79);
104
  private static final org.apache.thrift.protocol.TField COD_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("codCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)79);
-
 
105
  private static final org.apache.thrift.protocol.TField SELLER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("seller_id", org.apache.thrift.protocol.TType.I64, (short)80);
105
 
106
 
106
  private long id; // required
107
  private long id; // required
107
  private long warehouse_id; // required
108
  private long warehouse_id; // required
108
  private List<LineItem> lineitems; // required
109
  private List<LineItem> lineitems; // required
109
  private long logistics_provider_id; // required
110
  private long logistics_provider_id; // required
Line 180... Line 181...
180
  private double dataProtectionAmount; // required
181
  private double dataProtectionAmount; // required
181
  private TaxType taxType; // required
182
  private TaxType taxType; // required
182
  private String logisticsTransactionId; // required
183
  private String logisticsTransactionId; // required
183
  private double shippingCost; // required
184
  private double shippingCost; // required
184
  private double codCharges; // required
185
  private double codCharges; // required
-
 
186
  private long seller_id; // required
185
 
187
 
186
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
188
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
187
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
189
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
188
    ID((short)1, "id"),
190
    ID((short)1, "id"),
189
    WAREHOUSE_ID((short)2, "warehouse_id"),
191
    WAREHOUSE_ID((short)2, "warehouse_id"),
Line 307... Line 309...
307
     * @see TaxType
309
     * @see TaxType
308
     */
310
     */
309
    TAX_TYPE((short)76, "taxType"),
311
    TAX_TYPE((short)76, "taxType"),
310
    LOGISTICS_TRANSACTION_ID((short)77, "logisticsTransactionId"),
312
    LOGISTICS_TRANSACTION_ID((short)77, "logisticsTransactionId"),
311
    SHIPPING_COST((short)78, "shippingCost"),
313
    SHIPPING_COST((short)78, "shippingCost"),
312
    COD_CHARGES((short)79, "codCharges");
314
    COD_CHARGES((short)79, "codCharges"),
-
 
315
    SELLER_ID((short)80, "seller_id");
313
 
316
 
314
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
317
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
315
 
318
 
316
    static {
319
    static {
317
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
320
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 480... Line 483...
480
          return LOGISTICS_TRANSACTION_ID;
483
          return LOGISTICS_TRANSACTION_ID;
481
        case 78: // SHIPPING_COST
484
        case 78: // SHIPPING_COST
482
          return SHIPPING_COST;
485
          return SHIPPING_COST;
483
        case 79: // COD_CHARGES
486
        case 79: // COD_CHARGES
484
          return COD_CHARGES;
487
          return COD_CHARGES;
-
 
488
        case 80: // SELLER_ID
-
 
489
          return SELLER_ID;
485
        default:
490
        default:
486
          return null;
491
          return null;
487
      }
492
      }
488
    }
493
    }
489
 
494
 
Line 571... Line 576...
571
  private static final int __STOREID_ISSET_ID = 46;
576
  private static final int __STOREID_ISSET_ID = 46;
572
  private static final int __DATAPROTECTIONINSURER_ISSET_ID = 47;
577
  private static final int __DATAPROTECTIONINSURER_ISSET_ID = 47;
573
  private static final int __DATAPROTECTIONAMOUNT_ISSET_ID = 48;
578
  private static final int __DATAPROTECTIONAMOUNT_ISSET_ID = 48;
574
  private static final int __SHIPPINGCOST_ISSET_ID = 49;
579
  private static final int __SHIPPINGCOST_ISSET_ID = 49;
575
  private static final int __CODCHARGES_ISSET_ID = 50;
580
  private static final int __CODCHARGES_ISSET_ID = 50;
-
 
581
  private static final int __SELLER_ID_ISSET_ID = 51;
576
  private BitSet __isset_bit_vector = new BitSet(51);
582
  private BitSet __isset_bit_vector = new BitSet(52);
577
 
583
 
578
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
584
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
579
  static {
585
  static {
580
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
586
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
581
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
587
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 735... Line 741...
735
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
741
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
736
    tmpMap.put(_Fields.SHIPPING_COST, new org.apache.thrift.meta_data.FieldMetaData("shippingCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
742
    tmpMap.put(_Fields.SHIPPING_COST, new org.apache.thrift.meta_data.FieldMetaData("shippingCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
737
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
743
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
738
    tmpMap.put(_Fields.COD_CHARGES, new org.apache.thrift.meta_data.FieldMetaData("codCharges", org.apache.thrift.TFieldRequirementType.DEFAULT, 
744
    tmpMap.put(_Fields.COD_CHARGES, new org.apache.thrift.meta_data.FieldMetaData("codCharges", org.apache.thrift.TFieldRequirementType.DEFAULT, 
739
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
745
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
746
    tmpMap.put(_Fields.SELLER_ID, new org.apache.thrift.meta_data.FieldMetaData("seller_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
747
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
740
    metaDataMap = Collections.unmodifiableMap(tmpMap);
748
    metaDataMap = Collections.unmodifiableMap(tmpMap);
741
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
749
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
742
  }
750
  }
743
 
751
 
744
  public Order() {
752
  public Order() {
Line 814... Line 822...
814
    long dataProtectionInsurer,
822
    long dataProtectionInsurer,
815
    double dataProtectionAmount,
823
    double dataProtectionAmount,
816
    TaxType taxType,
824
    TaxType taxType,
817
    String logisticsTransactionId,
825
    String logisticsTransactionId,
818
    double shippingCost,
826
    double shippingCost,
819
    double codCharges)
827
    double codCharges,
-
 
828
    long seller_id)
820
  {
829
  {
821
    this();
830
    this();
822
    this.id = id;
831
    this.id = id;
823
    setIdIsSet(true);
832
    setIdIsSet(true);
824
    this.warehouse_id = warehouse_id;
833
    this.warehouse_id = warehouse_id;
Line 933... Line 942...
933
    this.logisticsTransactionId = logisticsTransactionId;
942
    this.logisticsTransactionId = logisticsTransactionId;
934
    this.shippingCost = shippingCost;
943
    this.shippingCost = shippingCost;
935
    setShippingCostIsSet(true);
944
    setShippingCostIsSet(true);
936
    this.codCharges = codCharges;
945
    this.codCharges = codCharges;
937
    setCodChargesIsSet(true);
946
    setCodChargesIsSet(true);
-
 
947
    this.seller_id = seller_id;
-
 
948
    setSeller_idIsSet(true);
938
  }
949
  }
939
 
950
 
940
  /**
951
  /**
941
   * Performs a deep copy on <i>other</i>.
952
   * Performs a deep copy on <i>other</i>.
942
   */
953
   */
Line 1080... Line 1091...
1080
    if (other.isSetLogisticsTransactionId()) {
1091
    if (other.isSetLogisticsTransactionId()) {
1081
      this.logisticsTransactionId = other.logisticsTransactionId;
1092
      this.logisticsTransactionId = other.logisticsTransactionId;
1082
    }
1093
    }
1083
    this.shippingCost = other.shippingCost;
1094
    this.shippingCost = other.shippingCost;
1084
    this.codCharges = other.codCharges;
1095
    this.codCharges = other.codCharges;
-
 
1096
    this.seller_id = other.seller_id;
1085
  }
1097
  }
1086
 
1098
 
1087
  public Order deepCopy() {
1099
  public Order deepCopy() {
1088
    return new Order(this);
1100
    return new Order(this);
1089
  }
1101
  }
Line 1218... Line 1230...
1218
    this.logisticsTransactionId = null;
1230
    this.logisticsTransactionId = null;
1219
    setShippingCostIsSet(false);
1231
    setShippingCostIsSet(false);
1220
    this.shippingCost = 0.0;
1232
    this.shippingCost = 0.0;
1221
    setCodChargesIsSet(false);
1233
    setCodChargesIsSet(false);
1222
    this.codCharges = 0.0;
1234
    this.codCharges = 0.0;
-
 
1235
    setSeller_idIsSet(false);
-
 
1236
    this.seller_id = 0;
1223
  }
1237
  }
1224
 
1238
 
1225
  public long getId() {
1239
  public long getId() {
1226
    return this.id;
1240
    return this.id;
1227
  }
1241
  }
Line 3093... Line 3107...
3093
 
3107
 
3094
  public void setCodChargesIsSet(boolean value) {
3108
  public void setCodChargesIsSet(boolean value) {
3095
    __isset_bit_vector.set(__CODCHARGES_ISSET_ID, value);
3109
    __isset_bit_vector.set(__CODCHARGES_ISSET_ID, value);
3096
  }
3110
  }
3097
 
3111
 
-
 
3112
  public long getSeller_id() {
-
 
3113
    return this.seller_id;
-
 
3114
  }
-
 
3115
 
-
 
3116
  public void setSeller_id(long seller_id) {
-
 
3117
    this.seller_id = seller_id;
-
 
3118
    setSeller_idIsSet(true);
-
 
3119
  }
-
 
3120
 
-
 
3121
  public void unsetSeller_id() {
-
 
3122
    __isset_bit_vector.clear(__SELLER_ID_ISSET_ID);
-
 
3123
  }
-
 
3124
 
-
 
3125
  /** Returns true if field seller_id is set (has been assigned a value) and false otherwise */
-
 
3126
  public boolean isSetSeller_id() {
-
 
3127
    return __isset_bit_vector.get(__SELLER_ID_ISSET_ID);
-
 
3128
  }
-
 
3129
 
-
 
3130
  public void setSeller_idIsSet(boolean value) {
-
 
3131
    __isset_bit_vector.set(__SELLER_ID_ISSET_ID, value);
-
 
3132
  }
-
 
3133
 
3098
  public void setFieldValue(_Fields field, Object value) {
3134
  public void setFieldValue(_Fields field, Object value) {
3099
    switch (field) {
3135
    switch (field) {
3100
    case ID:
3136
    case ID:
3101
      if (value == null) {
3137
      if (value == null) {
3102
        unsetId();
3138
        unsetId();
Line 3727... Line 3763...
3727
      } else {
3763
      } else {
3728
        setCodCharges((Double)value);
3764
        setCodCharges((Double)value);
3729
      }
3765
      }
3730
      break;
3766
      break;
3731
 
3767
 
-
 
3768
    case SELLER_ID:
-
 
3769
      if (value == null) {
-
 
3770
        unsetSeller_id();
-
 
3771
      } else {
-
 
3772
        setSeller_id((Long)value);
-
 
3773
      }
-
 
3774
      break;
-
 
3775
 
3732
    }
3776
    }
3733
  }
3777
  }
3734
 
3778
 
3735
  public Object getFieldValue(_Fields field) {
3779
  public Object getFieldValue(_Fields field) {
3736
    switch (field) {
3780
    switch (field) {
Line 3969... Line 4013...
3969
      return Double.valueOf(getShippingCost());
4013
      return Double.valueOf(getShippingCost());
3970
 
4014
 
3971
    case COD_CHARGES:
4015
    case COD_CHARGES:
3972
      return Double.valueOf(getCodCharges());
4016
      return Double.valueOf(getCodCharges());
3973
 
4017
 
-
 
4018
    case SELLER_ID:
-
 
4019
      return Long.valueOf(getSeller_id());
-
 
4020
 
3974
    }
4021
    }
3975
    throw new IllegalStateException();
4022
    throw new IllegalStateException();
3976
  }
4023
  }
3977
 
4024
 
3978
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4025
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 4138... Line 4185...
4138
      return isSetLogisticsTransactionId();
4185
      return isSetLogisticsTransactionId();
4139
    case SHIPPING_COST:
4186
    case SHIPPING_COST:
4140
      return isSetShippingCost();
4187
      return isSetShippingCost();
4141
    case COD_CHARGES:
4188
    case COD_CHARGES:
4142
      return isSetCodCharges();
4189
      return isSetCodCharges();
-
 
4190
    case SELLER_ID:
-
 
4191
      return isSetSeller_id();
4143
    }
4192
    }
4144
    throw new IllegalStateException();
4193
    throw new IllegalStateException();
4145
  }
4194
  }
4146
 
4195
 
4147
  @Override
4196
  @Override
Line 4866... Line 4915...
4866
        return false;
4915
        return false;
4867
      if (this.codCharges != that.codCharges)
4916
      if (this.codCharges != that.codCharges)
4868
        return false;
4917
        return false;
4869
    }
4918
    }
4870
 
4919
 
-
 
4920
    boolean this_present_seller_id = true;
-
 
4921
    boolean that_present_seller_id = true;
-
 
4922
    if (this_present_seller_id || that_present_seller_id) {
-
 
4923
      if (!(this_present_seller_id && that_present_seller_id))
-
 
4924
        return false;
-
 
4925
      if (this.seller_id != that.seller_id)
-
 
4926
        return false;
-
 
4927
    }
-
 
4928
 
4871
    return true;
4929
    return true;
4872
  }
4930
  }
4873
 
4931
 
4874
  @Override
4932
  @Override
4875
  public int hashCode() {
4933
  public int hashCode() {
Line 5672... Line 5730...
5672
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codCharges, typedOther.codCharges);
5730
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codCharges, typedOther.codCharges);
5673
      if (lastComparison != 0) {
5731
      if (lastComparison != 0) {
5674
        return lastComparison;
5732
        return lastComparison;
5675
      }
5733
      }
5676
    }
5734
    }
-
 
5735
    lastComparison = Boolean.valueOf(isSetSeller_id()).compareTo(typedOther.isSetSeller_id());
-
 
5736
    if (lastComparison != 0) {
-
 
5737
      return lastComparison;
-
 
5738
    }
-
 
5739
    if (isSetSeller_id()) {
-
 
5740
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.seller_id, typedOther.seller_id);
-
 
5741
      if (lastComparison != 0) {
-
 
5742
        return lastComparison;
-
 
5743
      }
-
 
5744
    }
5677
    return 0;
5745
    return 0;
5678
  }
5746
  }
5679
 
5747
 
5680
  public _Fields fieldForId(int fieldId) {
5748
  public _Fields fieldForId(int fieldId) {
5681
    return _Fields.findByThriftId(fieldId);
5749
    return _Fields.findByThriftId(fieldId);
Line 6304... Line 6372...
6304
            setCodChargesIsSet(true);
6372
            setCodChargesIsSet(true);
6305
          } else { 
6373
          } else { 
6306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6374
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6307
          }
6375
          }
6308
          break;
6376
          break;
-
 
6377
        case 80: // SELLER_ID
-
 
6378
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
6379
            this.seller_id = iprot.readI64();
-
 
6380
            setSeller_idIsSet(true);
-
 
6381
          } else { 
-
 
6382
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6383
          }
-
 
6384
          break;
6309
        default:
6385
        default:
6310
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6386
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6311
      }
6387
      }
6312
      iprot.readFieldEnd();
6388
      iprot.readFieldEnd();
6313
    }
6389
    }
Line 6631... Line 6707...
6631
    oprot.writeDouble(this.shippingCost);
6707
    oprot.writeDouble(this.shippingCost);
6632
    oprot.writeFieldEnd();
6708
    oprot.writeFieldEnd();
6633
    oprot.writeFieldBegin(COD_CHARGES_FIELD_DESC);
6709
    oprot.writeFieldBegin(COD_CHARGES_FIELD_DESC);
6634
    oprot.writeDouble(this.codCharges);
6710
    oprot.writeDouble(this.codCharges);
6635
    oprot.writeFieldEnd();
6711
    oprot.writeFieldEnd();
-
 
6712
    oprot.writeFieldBegin(SELLER_ID_FIELD_DESC);
-
 
6713
    oprot.writeI64(this.seller_id);
-
 
6714
    oprot.writeFieldEnd();
6636
    oprot.writeFieldStop();
6715
    oprot.writeFieldStop();
6637
    oprot.writeStructEnd();
6716
    oprot.writeStructEnd();
6638
  }
6717
  }
6639
 
6718
 
6640
  @Override
6719
  @Override
Line 7081... Line 7160...
7081
    first = false;
7160
    first = false;
7082
    if (!first) sb.append(", ");
7161
    if (!first) sb.append(", ");
7083
    sb.append("codCharges:");
7162
    sb.append("codCharges:");
7084
    sb.append(this.codCharges);
7163
    sb.append(this.codCharges);
7085
    first = false;
7164
    first = false;
-
 
7165
    if (!first) sb.append(", ");
-
 
7166
    sb.append("seller_id:");
-
 
7167
    sb.append(this.seller_id);
-
 
7168
    first = false;
7086
    sb.append(")");
7169
    sb.append(")");
7087
    return sb.toString();
7170
    return sb.toString();
7088
  }
7171
  }
7089
 
7172
 
7090
  public void validate() throws org.apache.thrift.TException {
7173
  public void validate() throws org.apache.thrift.TException {