Subversion Repositories SmartDukaan

Rev

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

Rev 8182 Rev 8241
Line 30... Line 30...
30
  private static final org.apache.thrift.protocol.TField SUBSIDY_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("subsidyAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
30
  private static final org.apache.thrift.protocol.TField SUBSIDY_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("subsidyAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField EBAY_TXN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayTxnDate", org.apache.thrift.protocol.TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField EBAY_TXN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("ebayTxnDate", org.apache.thrift.protocol.TType.I64, (short)6);
32
  private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField LISTING_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("listingName", org.apache.thrift.protocol.TType.STRING, (short)8);
33
  private static final org.apache.thrift.protocol.TField LISTING_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("listingName", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField LISTING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("listingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
34
  private static final org.apache.thrift.protocol.TField LISTING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("listingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
-
 
35
  private static final org.apache.thrift.protocol.TField BLUEDART_PAISA_PAY_REF_FIELD_DESC = new org.apache.thrift.protocol.TField("bluedartPaisaPayRef", org.apache.thrift.protocol.TType.I64, (short)10);
35
 
36
 
36
  private long orderId; // required
37
  private long orderId; // required
37
  private long salesRecordNumber; // required
38
  private long salesRecordNumber; // required
38
  private String paisaPayId; // required
39
  private String paisaPayId; // required
39
  private String ebayListingId; // required
40
  private String ebayListingId; // required
40
  private double subsidyAmount; // required
41
  private double subsidyAmount; // required
41
  private long ebayTxnDate; // required
42
  private long ebayTxnDate; // required
42
  private String transactionId; // required
43
  private String transactionId; // required
43
  private String listingName; // required
44
  private String listingName; // required
44
  private double listingPrice; // required
45
  private double listingPrice; // required
-
 
46
  private long bluedartPaisaPayRef; // required
45
 
47
 
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48
    ORDER_ID((short)1, "orderId"),
50
    ORDER_ID((short)1, "orderId"),
49
    SALES_RECORD_NUMBER((short)2, "salesRecordNumber"),
51
    SALES_RECORD_NUMBER((short)2, "salesRecordNumber"),
Line 51... Line 53...
51
    EBAY_LISTING_ID((short)4, "ebayListingId"),
53
    EBAY_LISTING_ID((short)4, "ebayListingId"),
52
    SUBSIDY_AMOUNT((short)5, "subsidyAmount"),
54
    SUBSIDY_AMOUNT((short)5, "subsidyAmount"),
53
    EBAY_TXN_DATE((short)6, "ebayTxnDate"),
55
    EBAY_TXN_DATE((short)6, "ebayTxnDate"),
54
    TRANSACTION_ID((short)7, "transactionId"),
56
    TRANSACTION_ID((short)7, "transactionId"),
55
    LISTING_NAME((short)8, "listingName"),
57
    LISTING_NAME((short)8, "listingName"),
56
    LISTING_PRICE((short)9, "listingPrice");
58
    LISTING_PRICE((short)9, "listingPrice"),
-
 
59
    BLUEDART_PAISA_PAY_REF((short)10, "bluedartPaisaPayRef");
57
 
60
 
58
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
61
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59
 
62
 
60
    static {
63
    static {
61
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
64
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 84... Line 87...
84
          return TRANSACTION_ID;
87
          return TRANSACTION_ID;
85
        case 8: // LISTING_NAME
88
        case 8: // LISTING_NAME
86
          return LISTING_NAME;
89
          return LISTING_NAME;
87
        case 9: // LISTING_PRICE
90
        case 9: // LISTING_PRICE
88
          return LISTING_PRICE;
91
          return LISTING_PRICE;
-
 
92
        case 10: // BLUEDART_PAISA_PAY_REF
-
 
93
          return BLUEDART_PAISA_PAY_REF;
89
        default:
94
        default:
90
          return null;
95
          return null;
91
      }
96
      }
92
    }
97
    }
93
 
98
 
Line 129... Line 134...
129
  private static final int __ORDERID_ISSET_ID = 0;
134
  private static final int __ORDERID_ISSET_ID = 0;
130
  private static final int __SALESRECORDNUMBER_ISSET_ID = 1;
135
  private static final int __SALESRECORDNUMBER_ISSET_ID = 1;
131
  private static final int __SUBSIDYAMOUNT_ISSET_ID = 2;
136
  private static final int __SUBSIDYAMOUNT_ISSET_ID = 2;
132
  private static final int __EBAYTXNDATE_ISSET_ID = 3;
137
  private static final int __EBAYTXNDATE_ISSET_ID = 3;
133
  private static final int __LISTINGPRICE_ISSET_ID = 4;
138
  private static final int __LISTINGPRICE_ISSET_ID = 4;
-
 
139
  private static final int __BLUEDARTPAISAPAYREF_ISSET_ID = 5;
134
  private BitSet __isset_bit_vector = new BitSet(5);
140
  private BitSet __isset_bit_vector = new BitSet(6);
135
 
141
 
136
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
142
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
137
  static {
143
  static {
138
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
144
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
139
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
145
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 152... Line 158...
152
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
153
    tmpMap.put(_Fields.LISTING_NAME, new org.apache.thrift.meta_data.FieldMetaData("listingName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
159
    tmpMap.put(_Fields.LISTING_NAME, new org.apache.thrift.meta_data.FieldMetaData("listingName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
155
    tmpMap.put(_Fields.LISTING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("listingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
161
    tmpMap.put(_Fields.LISTING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("listingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
156
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
163
    tmpMap.put(_Fields.BLUEDART_PAISA_PAY_REF, new org.apache.thrift.meta_data.FieldMetaData("bluedartPaisaPayRef", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
157
    metaDataMap = Collections.unmodifiableMap(tmpMap);
165
    metaDataMap = Collections.unmodifiableMap(tmpMap);
158
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(EbayOrder.class, metaDataMap);
166
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(EbayOrder.class, metaDataMap);
159
  }
167
  }
160
 
168
 
161
  public EbayOrder() {
169
  public EbayOrder() {
Line 168... Line 176...
168
    String ebayListingId,
176
    String ebayListingId,
169
    double subsidyAmount,
177
    double subsidyAmount,
170
    long ebayTxnDate,
178
    long ebayTxnDate,
171
    String transactionId,
179
    String transactionId,
172
    String listingName,
180
    String listingName,
173
    double listingPrice)
181
    double listingPrice,
-
 
182
    long bluedartPaisaPayRef)
174
  {
183
  {
175
    this();
184
    this();
176
    this.orderId = orderId;
185
    this.orderId = orderId;
177
    setOrderIdIsSet(true);
186
    setOrderIdIsSet(true);
178
    this.salesRecordNumber = salesRecordNumber;
187
    this.salesRecordNumber = salesRecordNumber;
Line 185... Line 194...
185
    setEbayTxnDateIsSet(true);
194
    setEbayTxnDateIsSet(true);
186
    this.transactionId = transactionId;
195
    this.transactionId = transactionId;
187
    this.listingName = listingName;
196
    this.listingName = listingName;
188
    this.listingPrice = listingPrice;
197
    this.listingPrice = listingPrice;
189
    setListingPriceIsSet(true);
198
    setListingPriceIsSet(true);
-
 
199
    this.bluedartPaisaPayRef = bluedartPaisaPayRef;
-
 
200
    setBluedartPaisaPayRefIsSet(true);
190
  }
201
  }
191
 
202
 
192
  /**
203
  /**
193
   * Performs a deep copy on <i>other</i>.
204
   * Performs a deep copy on <i>other</i>.
194
   */
205
   */
Line 210... Line 221...
210
    }
221
    }
211
    if (other.isSetListingName()) {
222
    if (other.isSetListingName()) {
212
      this.listingName = other.listingName;
223
      this.listingName = other.listingName;
213
    }
224
    }
214
    this.listingPrice = other.listingPrice;
225
    this.listingPrice = other.listingPrice;
-
 
226
    this.bluedartPaisaPayRef = other.bluedartPaisaPayRef;
215
  }
227
  }
216
 
228
 
217
  public EbayOrder deepCopy() {
229
  public EbayOrder deepCopy() {
218
    return new EbayOrder(this);
230
    return new EbayOrder(this);
219
  }
231
  }
Line 232... Line 244...
232
    this.ebayTxnDate = 0;
244
    this.ebayTxnDate = 0;
233
    this.transactionId = null;
245
    this.transactionId = null;
234
    this.listingName = null;
246
    this.listingName = null;
235
    setListingPriceIsSet(false);
247
    setListingPriceIsSet(false);
236
    this.listingPrice = 0.0;
248
    this.listingPrice = 0.0;
-
 
249
    setBluedartPaisaPayRefIsSet(false);
-
 
250
    this.bluedartPaisaPayRef = 0;
237
  }
251
  }
238
 
252
 
239
  public long getOrderId() {
253
  public long getOrderId() {
240
    return this.orderId;
254
    return this.orderId;
241
  }
255
  }
Line 436... Line 450...
436
 
450
 
437
  public void setListingPriceIsSet(boolean value) {
451
  public void setListingPriceIsSet(boolean value) {
438
    __isset_bit_vector.set(__LISTINGPRICE_ISSET_ID, value);
452
    __isset_bit_vector.set(__LISTINGPRICE_ISSET_ID, value);
439
  }
453
  }
440
 
454
 
-
 
455
  public long getBluedartPaisaPayRef() {
-
 
456
    return this.bluedartPaisaPayRef;
-
 
457
  }
-
 
458
 
-
 
459
  public void setBluedartPaisaPayRef(long bluedartPaisaPayRef) {
-
 
460
    this.bluedartPaisaPayRef = bluedartPaisaPayRef;
-
 
461
    setBluedartPaisaPayRefIsSet(true);
-
 
462
  }
-
 
463
 
-
 
464
  public void unsetBluedartPaisaPayRef() {
-
 
465
    __isset_bit_vector.clear(__BLUEDARTPAISAPAYREF_ISSET_ID);
-
 
466
  }
-
 
467
 
-
 
468
  /** Returns true if field bluedartPaisaPayRef is set (has been assigned a value) and false otherwise */
-
 
469
  public boolean isSetBluedartPaisaPayRef() {
-
 
470
    return __isset_bit_vector.get(__BLUEDARTPAISAPAYREF_ISSET_ID);
-
 
471
  }
-
 
472
 
-
 
473
  public void setBluedartPaisaPayRefIsSet(boolean value) {
-
 
474
    __isset_bit_vector.set(__BLUEDARTPAISAPAYREF_ISSET_ID, value);
-
 
475
  }
-
 
476
 
441
  public void setFieldValue(_Fields field, Object value) {
477
  public void setFieldValue(_Fields field, Object value) {
442
    switch (field) {
478
    switch (field) {
443
    case ORDER_ID:
479
    case ORDER_ID:
444
      if (value == null) {
480
      if (value == null) {
445
        unsetOrderId();
481
        unsetOrderId();
Line 510... Line 546...
510
      } else {
546
      } else {
511
        setListingPrice((Double)value);
547
        setListingPrice((Double)value);
512
      }
548
      }
513
      break;
549
      break;
514
 
550
 
-
 
551
    case BLUEDART_PAISA_PAY_REF:
-
 
552
      if (value == null) {
-
 
553
        unsetBluedartPaisaPayRef();
-
 
554
      } else {
-
 
555
        setBluedartPaisaPayRef((Long)value);
-
 
556
      }
-
 
557
      break;
-
 
558
 
515
    }
559
    }
516
  }
560
  }
517
 
561
 
518
  public Object getFieldValue(_Fields field) {
562
  public Object getFieldValue(_Fields field) {
519
    switch (field) {
563
    switch (field) {
Line 542... Line 586...
542
      return getListingName();
586
      return getListingName();
543
 
587
 
544
    case LISTING_PRICE:
588
    case LISTING_PRICE:
545
      return Double.valueOf(getListingPrice());
589
      return Double.valueOf(getListingPrice());
546
 
590
 
-
 
591
    case BLUEDART_PAISA_PAY_REF:
-
 
592
      return Long.valueOf(getBluedartPaisaPayRef());
-
 
593
 
547
    }
594
    }
548
    throw new IllegalStateException();
595
    throw new IllegalStateException();
549
  }
596
  }
550
 
597
 
551
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
598
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 571... Line 618...
571
      return isSetTransactionId();
618
      return isSetTransactionId();
572
    case LISTING_NAME:
619
    case LISTING_NAME:
573
      return isSetListingName();
620
      return isSetListingName();
574
    case LISTING_PRICE:
621
    case LISTING_PRICE:
575
      return isSetListingPrice();
622
      return isSetListingPrice();
-
 
623
    case BLUEDART_PAISA_PAY_REF:
-
 
624
      return isSetBluedartPaisaPayRef();
576
    }
625
    }
577
    throw new IllegalStateException();
626
    throw new IllegalStateException();
578
  }
627
  }
579
 
628
 
580
  @Override
629
  @Override
Line 669... Line 718...
669
        return false;
718
        return false;
670
      if (this.listingPrice != that.listingPrice)
719
      if (this.listingPrice != that.listingPrice)
671
        return false;
720
        return false;
672
    }
721
    }
673
 
722
 
-
 
723
    boolean this_present_bluedartPaisaPayRef = true;
-
 
724
    boolean that_present_bluedartPaisaPayRef = true;
-
 
725
    if (this_present_bluedartPaisaPayRef || that_present_bluedartPaisaPayRef) {
-
 
726
      if (!(this_present_bluedartPaisaPayRef && that_present_bluedartPaisaPayRef))
-
 
727
        return false;
-
 
728
      if (this.bluedartPaisaPayRef != that.bluedartPaisaPayRef)
-
 
729
        return false;
-
 
730
    }
-
 
731
 
674
    return true;
732
    return true;
675
  }
733
  }
676
 
734
 
677
  @Override
735
  @Override
678
  public int hashCode() {
736
  public int hashCode() {
Line 775... Line 833...
775
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.listingPrice, typedOther.listingPrice);
833
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.listingPrice, typedOther.listingPrice);
776
      if (lastComparison != 0) {
834
      if (lastComparison != 0) {
777
        return lastComparison;
835
        return lastComparison;
778
      }
836
      }
779
    }
837
    }
-
 
838
    lastComparison = Boolean.valueOf(isSetBluedartPaisaPayRef()).compareTo(typedOther.isSetBluedartPaisaPayRef());
-
 
839
    if (lastComparison != 0) {
-
 
840
      return lastComparison;
-
 
841
    }
-
 
842
    if (isSetBluedartPaisaPayRef()) {
-
 
843
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bluedartPaisaPayRef, typedOther.bluedartPaisaPayRef);
-
 
844
      if (lastComparison != 0) {
-
 
845
        return lastComparison;
-
 
846
      }
-
 
847
    }
780
    return 0;
848
    return 0;
781
  }
849
  }
782
 
850
 
783
  public _Fields fieldForId(int fieldId) {
851
  public _Fields fieldForId(int fieldId) {
784
    return _Fields.findByThriftId(fieldId);
852
    return _Fields.findByThriftId(fieldId);
Line 860... Line 928...
860
            setListingPriceIsSet(true);
928
            setListingPriceIsSet(true);
861
          } else { 
929
          } else { 
862
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
863
          }
931
          }
864
          break;
932
          break;
-
 
933
        case 10: // BLUEDART_PAISA_PAY_REF
-
 
934
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
935
            this.bluedartPaisaPayRef = iprot.readI64();
-
 
936
            setBluedartPaisaPayRefIsSet(true);
-
 
937
          } else { 
-
 
938
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
939
          }
-
 
940
          break;
865
        default:
941
        default:
866
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
942
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
867
      }
943
      }
868
      iprot.readFieldEnd();
944
      iprot.readFieldEnd();
869
    }
945
    }
Line 908... Line 984...
908
      oprot.writeFieldEnd();
984
      oprot.writeFieldEnd();
909
    }
985
    }
910
    oprot.writeFieldBegin(LISTING_PRICE_FIELD_DESC);
986
    oprot.writeFieldBegin(LISTING_PRICE_FIELD_DESC);
911
    oprot.writeDouble(this.listingPrice);
987
    oprot.writeDouble(this.listingPrice);
912
    oprot.writeFieldEnd();
988
    oprot.writeFieldEnd();
-
 
989
    oprot.writeFieldBegin(BLUEDART_PAISA_PAY_REF_FIELD_DESC);
-
 
990
    oprot.writeI64(this.bluedartPaisaPayRef);
-
 
991
    oprot.writeFieldEnd();
913
    oprot.writeFieldStop();
992
    oprot.writeFieldStop();
914
    oprot.writeStructEnd();
993
    oprot.writeStructEnd();
915
  }
994
  }
916
 
995
 
917
  @Override
996
  @Override
Line 968... Line 1047...
968
    first = false;
1047
    first = false;
969
    if (!first) sb.append(", ");
1048
    if (!first) sb.append(", ");
970
    sb.append("listingPrice:");
1049
    sb.append("listingPrice:");
971
    sb.append(this.listingPrice);
1050
    sb.append(this.listingPrice);
972
    first = false;
1051
    first = false;
-
 
1052
    if (!first) sb.append(", ");
-
 
1053
    sb.append("bluedartPaisaPayRef:");
-
 
1054
    sb.append(this.bluedartPaisaPayRef);
-
 
1055
    first = false;
973
    sb.append(")");
1056
    sb.append(")");
974
    return sb.toString();
1057
    return sb.toString();
975
  }
1058
  }
976
 
1059
 
977
  public void validate() throws org.apache.thrift.TException {
1060
  public void validate() throws org.apache.thrift.TException {