Subversion Repositories SmartDukaan

Rev

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

Rev 4269 Rev 4506
Line 69... Line 69...
69
  private static final org.apache.thrift.protocol.TField RESHIP_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("reship_timestamp", org.apache.thrift.protocol.TType.I64, (short)44);
69
  private static final org.apache.thrift.protocol.TField RESHIP_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("reship_timestamp", org.apache.thrift.protocol.TType.I64, (short)44);
70
  private static final org.apache.thrift.protocol.TField REFUND_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("refund_timestamp", org.apache.thrift.protocol.TType.I64, (short)45);
70
  private static final org.apache.thrift.protocol.TField REFUND_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("refund_timestamp", org.apache.thrift.protocol.TType.I64, (short)45);
71
  private static final org.apache.thrift.protocol.TField NEW_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("new_order_id", org.apache.thrift.protocol.TType.I64, (short)46);
71
  private static final org.apache.thrift.protocol.TField NEW_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("new_order_id", org.apache.thrift.protocol.TType.I64, (short)46);
72
  private static final org.apache.thrift.protocol.TField PREVIOUS_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("previousStatus", org.apache.thrift.protocol.TType.I32, (short)47);
72
  private static final org.apache.thrift.protocol.TField PREVIOUS_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("previousStatus", org.apache.thrift.protocol.TType.I32, (short)47);
73
  private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)48);
73
  private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)48);
-
 
74
  private static final org.apache.thrift.protocol.TField DOA_AUTH_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("doa_auth_timestamp", org.apache.thrift.protocol.TType.I64, (short)49);
74
 
75
 
75
  private long id; // required
76
  private long id; // required
76
  private long warehouse_id; // required
77
  private long warehouse_id; // required
77
  private List<LineItem> lineitems; // required
78
  private List<LineItem> lineitems; // required
78
  private long logistics_provider_id; // required
79
  private long logistics_provider_id; // required
Line 118... Line 119...
118
  private long reship_timestamp; // required
119
  private long reship_timestamp; // required
119
  private long refund_timestamp; // required
120
  private long refund_timestamp; // required
120
  private long new_order_id; // required
121
  private long new_order_id; // required
121
  private OrderStatus previousStatus; // required
122
  private OrderStatus previousStatus; // required
122
  private long vendorId; // required
123
  private long vendorId; // required
-
 
124
  private long doa_auth_timestamp; // required
123
 
125
 
124
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
126
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
125
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
127
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
126
    ID((short)1, "id"),
128
    ID((short)1, "id"),
127
    WAREHOUSE_ID((short)2, "warehouse_id"),
129
    WAREHOUSE_ID((short)2, "warehouse_id"),
Line 202... Line 204...
202
    /**
204
    /**
203
     * 
205
     * 
204
     * @see OrderStatus
206
     * @see OrderStatus
205
     */
207
     */
206
    PREVIOUS_STATUS((short)47, "previousStatus"),
208
    PREVIOUS_STATUS((short)47, "previousStatus"),
207
    VENDOR_ID((short)48, "vendorId");
209
    VENDOR_ID((short)48, "vendorId"),
-
 
210
    DOA_AUTH_TIMESTAMP((short)49, "doa_auth_timestamp");
208
 
211
 
209
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
212
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
210
 
213
 
211
    static {
214
    static {
212
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
215
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 313... Line 316...
313
          return NEW_ORDER_ID;
316
          return NEW_ORDER_ID;
314
        case 47: // PREVIOUS_STATUS
317
        case 47: // PREVIOUS_STATUS
315
          return PREVIOUS_STATUS;
318
          return PREVIOUS_STATUS;
316
        case 48: // VENDOR_ID
319
        case 48: // VENDOR_ID
317
          return VENDOR_ID;
320
          return VENDOR_ID;
-
 
321
        case 49: // DOA_AUTH_TIMESTAMP
-
 
322
          return DOA_AUTH_TIMESTAMP;
318
        default:
323
        default:
319
          return null;
324
          return null;
320
      }
325
      }
321
    }
326
    }
322
 
327
 
Line 381... Line 386...
381
  private static final int __PROMISED_SHIPPING_TIME_ISSET_ID = 23;
386
  private static final int __PROMISED_SHIPPING_TIME_ISSET_ID = 23;
382
  private static final int __RESHIP_TIMESTAMP_ISSET_ID = 24;
387
  private static final int __RESHIP_TIMESTAMP_ISSET_ID = 24;
383
  private static final int __REFUND_TIMESTAMP_ISSET_ID = 25;
388
  private static final int __REFUND_TIMESTAMP_ISSET_ID = 25;
384
  private static final int __NEW_ORDER_ID_ISSET_ID = 26;
389
  private static final int __NEW_ORDER_ID_ISSET_ID = 26;
385
  private static final int __VENDORID_ISSET_ID = 27;
390
  private static final int __VENDORID_ISSET_ID = 27;
-
 
391
  private static final int __DOA_AUTH_TIMESTAMP_ISSET_ID = 28;
386
  private BitSet __isset_bit_vector = new BitSet(28);
392
  private BitSet __isset_bit_vector = new BitSet(29);
387
 
393
 
388
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
394
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
389
  static {
395
  static {
390
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
396
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
391
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
397
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 483... Line 489...
483
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
489
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
484
    tmpMap.put(_Fields.PREVIOUS_STATUS, new org.apache.thrift.meta_data.FieldMetaData("previousStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
490
    tmpMap.put(_Fields.PREVIOUS_STATUS, new org.apache.thrift.meta_data.FieldMetaData("previousStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
485
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
491
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
486
    tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
492
    tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
487
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
493
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
494
    tmpMap.put(_Fields.DOA_AUTH_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("doa_auth_timestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
495
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
488
    metaDataMap = Collections.unmodifiableMap(tmpMap);
496
    metaDataMap = Collections.unmodifiableMap(tmpMap);
489
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
497
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
490
  }
498
  }
491
 
499
 
492
  public Order() {
500
  public Order() {
Line 708... Line 716...
708
    this.new_order_id = other.new_order_id;
716
    this.new_order_id = other.new_order_id;
709
    if (other.isSetPreviousStatus()) {
717
    if (other.isSetPreviousStatus()) {
710
      this.previousStatus = other.previousStatus;
718
      this.previousStatus = other.previousStatus;
711
    }
719
    }
712
    this.vendorId = other.vendorId;
720
    this.vendorId = other.vendorId;
-
 
721
    this.doa_auth_timestamp = other.doa_auth_timestamp;
713
  }
722
  }
714
 
723
 
715
  public Order deepCopy() {
724
  public Order deepCopy() {
716
    return new Order(this);
725
    return new Order(this);
717
  }
726
  }
Line 792... Line 801...
792
    setNew_order_idIsSet(false);
801
    setNew_order_idIsSet(false);
793
    this.new_order_id = 0;
802
    this.new_order_id = 0;
794
    this.previousStatus = null;
803
    this.previousStatus = null;
795
    setVendorIdIsSet(false);
804
    setVendorIdIsSet(false);
796
    this.vendorId = 0;
805
    this.vendorId = 0;
-
 
806
    setDoa_auth_timestampIsSet(false);
-
 
807
    this.doa_auth_timestamp = 0;
797
  }
808
  }
798
 
809
 
799
  public long getId() {
810
  public long getId() {
800
    return this.id;
811
    return this.id;
801
  }
812
  }
Line 1953... Line 1964...
1953
 
1964
 
1954
  public void setVendorIdIsSet(boolean value) {
1965
  public void setVendorIdIsSet(boolean value) {
1955
    __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
1966
    __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
1956
  }
1967
  }
1957
 
1968
 
-
 
1969
  public long getDoa_auth_timestamp() {
-
 
1970
    return this.doa_auth_timestamp;
-
 
1971
  }
-
 
1972
 
-
 
1973
  public void setDoa_auth_timestamp(long doa_auth_timestamp) {
-
 
1974
    this.doa_auth_timestamp = doa_auth_timestamp;
-
 
1975
    setDoa_auth_timestampIsSet(true);
-
 
1976
  }
-
 
1977
 
-
 
1978
  public void unsetDoa_auth_timestamp() {
-
 
1979
    __isset_bit_vector.clear(__DOA_AUTH_TIMESTAMP_ISSET_ID);
-
 
1980
  }
-
 
1981
 
-
 
1982
  /** Returns true if field doa_auth_timestamp is set (has been assigned a value) and false otherwise */
-
 
1983
  public boolean isSetDoa_auth_timestamp() {
-
 
1984
    return __isset_bit_vector.get(__DOA_AUTH_TIMESTAMP_ISSET_ID);
-
 
1985
  }
-
 
1986
 
-
 
1987
  public void setDoa_auth_timestampIsSet(boolean value) {
-
 
1988
    __isset_bit_vector.set(__DOA_AUTH_TIMESTAMP_ISSET_ID, value);
-
 
1989
  }
-
 
1990
 
1958
  public void setFieldValue(_Fields field, Object value) {
1991
  public void setFieldValue(_Fields field, Object value) {
1959
    switch (field) {
1992
    switch (field) {
1960
    case ID:
1993
    case ID:
1961
      if (value == null) {
1994
      if (value == null) {
1962
        unsetId();
1995
        unsetId();
Line 2339... Line 2372...
2339
      } else {
2372
      } else {
2340
        setVendorId((Long)value);
2373
        setVendorId((Long)value);
2341
      }
2374
      }
2342
      break;
2375
      break;
2343
 
2376
 
-
 
2377
    case DOA_AUTH_TIMESTAMP:
-
 
2378
      if (value == null) {
-
 
2379
        unsetDoa_auth_timestamp();
-
 
2380
      } else {
-
 
2381
        setDoa_auth_timestamp((Long)value);
-
 
2382
      }
-
 
2383
      break;
-
 
2384
 
2344
    }
2385
    }
2345
  }
2386
  }
2346
 
2387
 
2347
  public Object getFieldValue(_Fields field) {
2388
  public Object getFieldValue(_Fields field) {
2348
    switch (field) {
2389
    switch (field) {
Line 2488... Line 2529...
2488
      return getPreviousStatus();
2529
      return getPreviousStatus();
2489
 
2530
 
2490
    case VENDOR_ID:
2531
    case VENDOR_ID:
2491
      return Long.valueOf(getVendorId());
2532
      return Long.valueOf(getVendorId());
2492
 
2533
 
-
 
2534
    case DOA_AUTH_TIMESTAMP:
-
 
2535
      return Long.valueOf(getDoa_auth_timestamp());
-
 
2536
 
2493
    }
2537
    }
2494
    throw new IllegalStateException();
2538
    throw new IllegalStateException();
2495
  }
2539
  }
2496
 
2540
 
2497
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2541
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 2595... Line 2639...
2595
      return isSetNew_order_id();
2639
      return isSetNew_order_id();
2596
    case PREVIOUS_STATUS:
2640
    case PREVIOUS_STATUS:
2597
      return isSetPreviousStatus();
2641
      return isSetPreviousStatus();
2598
    case VENDOR_ID:
2642
    case VENDOR_ID:
2599
      return isSetVendorId();
2643
      return isSetVendorId();
-
 
2644
    case DOA_AUTH_TIMESTAMP:
-
 
2645
      return isSetDoa_auth_timestamp();
2600
    }
2646
    }
2601
    throw new IllegalStateException();
2647
    throw new IllegalStateException();
2602
  }
2648
  }
2603
 
2649
 
2604
  @Override
2650
  @Override
Line 3044... Line 3090...
3044
        return false;
3090
        return false;
3045
      if (this.vendorId != that.vendorId)
3091
      if (this.vendorId != that.vendorId)
3046
        return false;
3092
        return false;
3047
    }
3093
    }
3048
 
3094
 
-
 
3095
    boolean this_present_doa_auth_timestamp = true && this.isSetDoa_auth_timestamp();
-
 
3096
    boolean that_present_doa_auth_timestamp = true && that.isSetDoa_auth_timestamp();
-
 
3097
    if (this_present_doa_auth_timestamp || that_present_doa_auth_timestamp) {
-
 
3098
      if (!(this_present_doa_auth_timestamp && that_present_doa_auth_timestamp))
-
 
3099
        return false;
-
 
3100
      if (this.doa_auth_timestamp != that.doa_auth_timestamp)
-
 
3101
        return false;
-
 
3102
    }
-
 
3103
 
3049
    return true;
3104
    return true;
3050
  }
3105
  }
3051
 
3106
 
3052
  @Override
3107
  @Override
3053
  public int hashCode() {
3108
  public int hashCode() {
Line 3540... Line 3595...
3540
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
3595
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
3541
      if (lastComparison != 0) {
3596
      if (lastComparison != 0) {
3542
        return lastComparison;
3597
        return lastComparison;
3543
      }
3598
      }
3544
    }
3599
    }
-
 
3600
    lastComparison = Boolean.valueOf(isSetDoa_auth_timestamp()).compareTo(typedOther.isSetDoa_auth_timestamp());
-
 
3601
    if (lastComparison != 0) {
-
 
3602
      return lastComparison;
-
 
3603
    }
-
 
3604
    if (isSetDoa_auth_timestamp()) {
-
 
3605
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doa_auth_timestamp, typedOther.doa_auth_timestamp);
-
 
3606
      if (lastComparison != 0) {
-
 
3607
        return lastComparison;
-
 
3608
      }
-
 
3609
    }
3545
    return 0;
3610
    return 0;
3546
  }
3611
  }
3547
 
3612
 
3548
  public _Fields fieldForId(int fieldId) {
3613
  public _Fields fieldForId(int fieldId) {
3549
    return _Fields.findByThriftId(fieldId);
3614
    return _Fields.findByThriftId(fieldId);
Line 3932... Line 3997...
3932
            setVendorIdIsSet(true);
3997
            setVendorIdIsSet(true);
3933
          } else { 
3998
          } else { 
3934
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3935
          }
4000
          }
3936
          break;
4001
          break;
-
 
4002
        case 49: // DOA_AUTH_TIMESTAMP
-
 
4003
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
4004
            this.doa_auth_timestamp = iprot.readI64();
-
 
4005
            setDoa_auth_timestampIsSet(true);
-
 
4006
          } else { 
-
 
4007
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4008
          }
-
 
4009
          break;
3937
        default:
4010
        default:
3938
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4011
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3939
      }
4012
      }
3940
      iprot.readFieldEnd();
4013
      iprot.readFieldEnd();
3941
    }
4014
    }
Line 4142... Line 4215...
4142
      oprot.writeFieldEnd();
4215
      oprot.writeFieldEnd();
4143
    }
4216
    }
4144
    oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
4217
    oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
4145
    oprot.writeI64(this.vendorId);
4218
    oprot.writeI64(this.vendorId);
4146
    oprot.writeFieldEnd();
4219
    oprot.writeFieldEnd();
-
 
4220
    if (isSetDoa_auth_timestamp()) {
-
 
4221
      oprot.writeFieldBegin(DOA_AUTH_TIMESTAMP_FIELD_DESC);
-
 
4222
      oprot.writeI64(this.doa_auth_timestamp);
-
 
4223
      oprot.writeFieldEnd();
-
 
4224
    }
4147
    oprot.writeFieldStop();
4225
    oprot.writeFieldStop();
4148
    oprot.writeStructEnd();
4226
    oprot.writeStructEnd();
4149
  }
4227
  }
4150
 
4228
 
4151
  @Override
4229
  @Override
Line 4428... Line 4506...
4428
    first = false;
4506
    first = false;
4429
    if (!first) sb.append(", ");
4507
    if (!first) sb.append(", ");
4430
    sb.append("vendorId:");
4508
    sb.append("vendorId:");
4431
    sb.append(this.vendorId);
4509
    sb.append(this.vendorId);
4432
    first = false;
4510
    first = false;
-
 
4511
    if (isSetDoa_auth_timestamp()) {
-
 
4512
      if (!first) sb.append(", ");
-
 
4513
      sb.append("doa_auth_timestamp:");
-
 
4514
      sb.append(this.doa_auth_timestamp);
-
 
4515
      first = false;
-
 
4516
    }
4433
    sb.append(")");
4517
    sb.append(")");
4434
    return sb.toString();
4518
    return sb.toString();
4435
  }
4519
  }
4436
 
4520
 
4437
  public void validate() throws org.apache.thrift.TException {
4521
  public void validate() throws org.apache.thrift.TException {