Subversion Repositories SmartDukaan

Rev

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

Rev 1133 Rev 1209
Line 52... Line 52...
52
  private static final TField ACCEPTED_TIMESTAMP_FIELD_DESC = new TField("accepted_timestamp", TType.I64, (short)24);
52
  private static final TField ACCEPTED_TIMESTAMP_FIELD_DESC = new TField("accepted_timestamp", TType.I64, (short)24);
53
  private static final TField BILLING_TIMESTAMP_FIELD_DESC = new TField("billing_timestamp", TType.I64, (short)25);
53
  private static final TField BILLING_TIMESTAMP_FIELD_DESC = new TField("billing_timestamp", TType.I64, (short)25);
54
  private static final TField SHIPPING_TIMESTAMP_FIELD_DESC = new TField("shipping_timestamp", TType.I64, (short)26);
54
  private static final TField SHIPPING_TIMESTAMP_FIELD_DESC = new TField("shipping_timestamp", TType.I64, (short)26);
55
  private static final TField PICKUP_TIMESTAMP_FIELD_DESC = new TField("pickup_timestamp", TType.I64, (short)27);
55
  private static final TField PICKUP_TIMESTAMP_FIELD_DESC = new TField("pickup_timestamp", TType.I64, (short)27);
56
  private static final TField DELIVERY_TIMESTAMP_FIELD_DESC = new TField("delivery_timestamp", TType.I64, (short)28);
56
  private static final TField DELIVERY_TIMESTAMP_FIELD_DESC = new TField("delivery_timestamp", TType.I64, (short)28);
-
 
57
  private static final TField OUTOFSTOCK_TIMESTAMP_FIELD_DESC = new TField("outofstock_timestamp", TType.I64, (short)29);
57
  private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacket_number", TType.I64, (short)29);
58
  private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacket_number", TType.I64, (short)30);
58
  private static final TField RECEIVER_FIELD_DESC = new TField("receiver", TType.STRING, (short)30);
59
  private static final TField RECEIVER_FIELD_DESC = new TField("receiver", TType.STRING, (short)31);
59
 
60
 
60
  private long id;
61
  private long id;
61
  private long warehouse_id;
62
  private long warehouse_id;
62
  private List<LineItem> lineitems;
63
  private List<LineItem> lineitems;
63
  private long logistics_provider_id;
64
  private long logistics_provider_id;
Line 83... Line 84...
83
  private long accepted_timestamp;
84
  private long accepted_timestamp;
84
  private long billing_timestamp;
85
  private long billing_timestamp;
85
  private long shipping_timestamp;
86
  private long shipping_timestamp;
86
  private long pickup_timestamp;
87
  private long pickup_timestamp;
87
  private long delivery_timestamp;
88
  private long delivery_timestamp;
-
 
89
  private long outofstock_timestamp;
88
  private long jacket_number;
90
  private long jacket_number;
89
  private String receiver;
91
  private String receiver;
90
 
92
 
91
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
93
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
92
  public enum _Fields implements TFieldIdEnum {
94
  public enum _Fields implements TFieldIdEnum {
Line 142... Line 144...
142
    ACCEPTED_TIMESTAMP((short)24, "accepted_timestamp"),
144
    ACCEPTED_TIMESTAMP((short)24, "accepted_timestamp"),
143
    BILLING_TIMESTAMP((short)25, "billing_timestamp"),
145
    BILLING_TIMESTAMP((short)25, "billing_timestamp"),
144
    SHIPPING_TIMESTAMP((short)26, "shipping_timestamp"),
146
    SHIPPING_TIMESTAMP((short)26, "shipping_timestamp"),
145
    PICKUP_TIMESTAMP((short)27, "pickup_timestamp"),
147
    PICKUP_TIMESTAMP((short)27, "pickup_timestamp"),
146
    DELIVERY_TIMESTAMP((short)28, "delivery_timestamp"),
148
    DELIVERY_TIMESTAMP((short)28, "delivery_timestamp"),
-
 
149
    OUTOFSTOCK_TIMESTAMP((short)29, "outofstock_timestamp"),
147
    JACKET_NUMBER((short)29, "jacket_number"),
150
    JACKET_NUMBER((short)30, "jacket_number"),
148
    RECEIVER((short)30, "receiver");
151
    RECEIVER((short)31, "receiver");
149
 
152
 
150
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
153
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
151
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
154
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
152
 
155
 
153
    static {
156
    static {
Line 210... Line 213...
210
  private static final int __ACCEPTED_TIMESTAMP_ISSET_ID = 8;
213
  private static final int __ACCEPTED_TIMESTAMP_ISSET_ID = 8;
211
  private static final int __BILLING_TIMESTAMP_ISSET_ID = 9;
214
  private static final int __BILLING_TIMESTAMP_ISSET_ID = 9;
212
  private static final int __SHIPPING_TIMESTAMP_ISSET_ID = 10;
215
  private static final int __SHIPPING_TIMESTAMP_ISSET_ID = 10;
213
  private static final int __PICKUP_TIMESTAMP_ISSET_ID = 11;
216
  private static final int __PICKUP_TIMESTAMP_ISSET_ID = 11;
214
  private static final int __DELIVERY_TIMESTAMP_ISSET_ID = 12;
217
  private static final int __DELIVERY_TIMESTAMP_ISSET_ID = 12;
-
 
218
  private static final int __OUTOFSTOCK_TIMESTAMP_ISSET_ID = 13;
215
  private static final int __JACKET_NUMBER_ISSET_ID = 13;
219
  private static final int __JACKET_NUMBER_ISSET_ID = 14;
216
  private BitSet __isset_bit_vector = new BitSet(14);
220
  private BitSet __isset_bit_vector = new BitSet(15);
217
 
221
 
218
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
222
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
219
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
223
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
220
        new FieldValueMetaData(TType.I64)));
224
        new FieldValueMetaData(TType.I64)));
221
    put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouse_id", TFieldRequirementType.DEFAULT, 
225
    put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouse_id", TFieldRequirementType.DEFAULT, 
Line 271... Line 275...
271
        new FieldValueMetaData(TType.I64)));
275
        new FieldValueMetaData(TType.I64)));
272
    put(_Fields.PICKUP_TIMESTAMP, new FieldMetaData("pickup_timestamp", TFieldRequirementType.DEFAULT, 
276
    put(_Fields.PICKUP_TIMESTAMP, new FieldMetaData("pickup_timestamp", TFieldRequirementType.DEFAULT, 
273
        new FieldValueMetaData(TType.I64)));
277
        new FieldValueMetaData(TType.I64)));
274
    put(_Fields.DELIVERY_TIMESTAMP, new FieldMetaData("delivery_timestamp", TFieldRequirementType.DEFAULT, 
278
    put(_Fields.DELIVERY_TIMESTAMP, new FieldMetaData("delivery_timestamp", TFieldRequirementType.DEFAULT, 
275
        new FieldValueMetaData(TType.I64)));
279
        new FieldValueMetaData(TType.I64)));
-
 
280
    put(_Fields.OUTOFSTOCK_TIMESTAMP, new FieldMetaData("outofstock_timestamp", TFieldRequirementType.DEFAULT, 
-
 
281
        new FieldValueMetaData(TType.I64)));
276
    put(_Fields.JACKET_NUMBER, new FieldMetaData("jacket_number", TFieldRequirementType.DEFAULT, 
282
    put(_Fields.JACKET_NUMBER, new FieldMetaData("jacket_number", TFieldRequirementType.DEFAULT, 
277
        new FieldValueMetaData(TType.I64)));
283
        new FieldValueMetaData(TType.I64)));
278
    put(_Fields.RECEIVER, new FieldMetaData("receiver", TFieldRequirementType.DEFAULT, 
284
    put(_Fields.RECEIVER, new FieldMetaData("receiver", TFieldRequirementType.DEFAULT, 
279
        new FieldValueMetaData(TType.STRING)));
285
        new FieldValueMetaData(TType.STRING)));
280
  }});
286
  }});
Line 313... Line 319...
313
    long accepted_timestamp,
319
    long accepted_timestamp,
314
    long billing_timestamp,
320
    long billing_timestamp,
315
    long shipping_timestamp,
321
    long shipping_timestamp,
316
    long pickup_timestamp,
322
    long pickup_timestamp,
317
    long delivery_timestamp,
323
    long delivery_timestamp,
-
 
324
    long outofstock_timestamp,
318
    long jacket_number,
325
    long jacket_number,
319
    String receiver)
326
    String receiver)
320
  {
327
  {
321
    this();
328
    this();
322
    this.id = id;
329
    this.id = id;
Line 358... Line 365...
358
    setShipping_timestampIsSet(true);
365
    setShipping_timestampIsSet(true);
359
    this.pickup_timestamp = pickup_timestamp;
366
    this.pickup_timestamp = pickup_timestamp;
360
    setPickup_timestampIsSet(true);
367
    setPickup_timestampIsSet(true);
361
    this.delivery_timestamp = delivery_timestamp;
368
    this.delivery_timestamp = delivery_timestamp;
362
    setDelivery_timestampIsSet(true);
369
    setDelivery_timestampIsSet(true);
-
 
370
    this.outofstock_timestamp = outofstock_timestamp;
-
 
371
    setOutofstock_timestampIsSet(true);
363
    this.jacket_number = jacket_number;
372
    this.jacket_number = jacket_number;
364
    setJacket_numberIsSet(true);
373
    setJacket_numberIsSet(true);
365
    this.receiver = receiver;
374
    this.receiver = receiver;
366
  }
375
  }
367
 
376
 
Line 431... Line 440...
431
    this.accepted_timestamp = other.accepted_timestamp;
440
    this.accepted_timestamp = other.accepted_timestamp;
432
    this.billing_timestamp = other.billing_timestamp;
441
    this.billing_timestamp = other.billing_timestamp;
433
    this.shipping_timestamp = other.shipping_timestamp;
442
    this.shipping_timestamp = other.shipping_timestamp;
434
    this.pickup_timestamp = other.pickup_timestamp;
443
    this.pickup_timestamp = other.pickup_timestamp;
435
    this.delivery_timestamp = other.delivery_timestamp;
444
    this.delivery_timestamp = other.delivery_timestamp;
-
 
445
    this.outofstock_timestamp = other.outofstock_timestamp;
436
    this.jacket_number = other.jacket_number;
446
    this.jacket_number = other.jacket_number;
437
    if (other.isSetReceiver()) {
447
    if (other.isSetReceiver()) {
438
      this.receiver = other.receiver;
448
      this.receiver = other.receiver;
439
    }
449
    }
440
  }
450
  }
Line 1172... Line 1182...
1172
 
1182
 
1173
  public void setDelivery_timestampIsSet(boolean value) {
1183
  public void setDelivery_timestampIsSet(boolean value) {
1174
    __isset_bit_vector.set(__DELIVERY_TIMESTAMP_ISSET_ID, value);
1184
    __isset_bit_vector.set(__DELIVERY_TIMESTAMP_ISSET_ID, value);
1175
  }
1185
  }
1176
 
1186
 
-
 
1187
  public long getOutofstock_timestamp() {
-
 
1188
    return this.outofstock_timestamp;
-
 
1189
  }
-
 
1190
 
-
 
1191
  public Order setOutofstock_timestamp(long outofstock_timestamp) {
-
 
1192
    this.outofstock_timestamp = outofstock_timestamp;
-
 
1193
    setOutofstock_timestampIsSet(true);
-
 
1194
    return this;
-
 
1195
  }
-
 
1196
 
-
 
1197
  public void unsetOutofstock_timestamp() {
-
 
1198
    __isset_bit_vector.clear(__OUTOFSTOCK_TIMESTAMP_ISSET_ID);
-
 
1199
  }
-
 
1200
 
-
 
1201
  /** Returns true if field outofstock_timestamp is set (has been asigned a value) and false otherwise */
-
 
1202
  public boolean isSetOutofstock_timestamp() {
-
 
1203
    return __isset_bit_vector.get(__OUTOFSTOCK_TIMESTAMP_ISSET_ID);
-
 
1204
  }
-
 
1205
 
-
 
1206
  public void setOutofstock_timestampIsSet(boolean value) {
-
 
1207
    __isset_bit_vector.set(__OUTOFSTOCK_TIMESTAMP_ISSET_ID, value);
-
 
1208
  }
-
 
1209
 
1177
  public long getJacket_number() {
1210
  public long getJacket_number() {
1178
    return this.jacket_number;
1211
    return this.jacket_number;
1179
  }
1212
  }
1180
 
1213
 
1181
  public Order setJacket_number(long jacket_number) {
1214
  public Order setJacket_number(long jacket_number) {
Line 1445... Line 1478...
1445
      } else {
1478
      } else {
1446
        setDelivery_timestamp((Long)value);
1479
        setDelivery_timestamp((Long)value);
1447
      }
1480
      }
1448
      break;
1481
      break;
1449
 
1482
 
-
 
1483
    case OUTOFSTOCK_TIMESTAMP:
-
 
1484
      if (value == null) {
-
 
1485
        unsetOutofstock_timestamp();
-
 
1486
      } else {
-
 
1487
        setOutofstock_timestamp((Long)value);
-
 
1488
      }
-
 
1489
      break;
-
 
1490
 
1450
    case JACKET_NUMBER:
1491
    case JACKET_NUMBER:
1451
      if (value == null) {
1492
      if (value == null) {
1452
        unsetJacket_number();
1493
        unsetJacket_number();
1453
      } else {
1494
      } else {
1454
        setJacket_number((Long)value);
1495
        setJacket_number((Long)value);
Line 1554... Line 1595...
1554
      return new Long(getPickup_timestamp());
1595
      return new Long(getPickup_timestamp());
1555
 
1596
 
1556
    case DELIVERY_TIMESTAMP:
1597
    case DELIVERY_TIMESTAMP:
1557
      return new Long(getDelivery_timestamp());
1598
      return new Long(getDelivery_timestamp());
1558
 
1599
 
-
 
1600
    case OUTOFSTOCK_TIMESTAMP:
-
 
1601
      return new Long(getOutofstock_timestamp());
-
 
1602
 
1559
    case JACKET_NUMBER:
1603
    case JACKET_NUMBER:
1560
      return new Long(getJacket_number());
1604
      return new Long(getJacket_number());
1561
 
1605
 
1562
    case RECEIVER:
1606
    case RECEIVER:
1563
      return getReceiver();
1607
      return getReceiver();
Line 1627... Line 1671...
1627
      return isSetShipping_timestamp();
1671
      return isSetShipping_timestamp();
1628
    case PICKUP_TIMESTAMP:
1672
    case PICKUP_TIMESTAMP:
1629
      return isSetPickup_timestamp();
1673
      return isSetPickup_timestamp();
1630
    case DELIVERY_TIMESTAMP:
1674
    case DELIVERY_TIMESTAMP:
1631
      return isSetDelivery_timestamp();
1675
      return isSetDelivery_timestamp();
-
 
1676
    case OUTOFSTOCK_TIMESTAMP:
-
 
1677
      return isSetOutofstock_timestamp();
1632
    case JACKET_NUMBER:
1678
    case JACKET_NUMBER:
1633
      return isSetJacket_number();
1679
      return isSetJacket_number();
1634
    case RECEIVER:
1680
    case RECEIVER:
1635
      return isSetReceiver();
1681
      return isSetReceiver();
1636
    }
1682
    }
Line 1904... Line 1950...
1904
        return false;
1950
        return false;
1905
      if (this.delivery_timestamp != that.delivery_timestamp)
1951
      if (this.delivery_timestamp != that.delivery_timestamp)
1906
        return false;
1952
        return false;
1907
    }
1953
    }
1908
 
1954
 
-
 
1955
    boolean this_present_outofstock_timestamp = true;
-
 
1956
    boolean that_present_outofstock_timestamp = true;
-
 
1957
    if (this_present_outofstock_timestamp || that_present_outofstock_timestamp) {
-
 
1958
      if (!(this_present_outofstock_timestamp && that_present_outofstock_timestamp))
-
 
1959
        return false;
-
 
1960
      if (this.outofstock_timestamp != that.outofstock_timestamp)
-
 
1961
        return false;
-
 
1962
    }
-
 
1963
 
1909
    boolean this_present_jacket_number = true;
1964
    boolean this_present_jacket_number = true;
1910
    boolean that_present_jacket_number = true;
1965
    boolean that_present_jacket_number = true;
1911
    if (this_present_jacket_number || that_present_jacket_number) {
1966
    if (this_present_jacket_number || that_present_jacket_number) {
1912
      if (!(this_present_jacket_number && that_present_jacket_number))
1967
      if (!(this_present_jacket_number && that_present_jacket_number))
1913
        return false;
1968
        return false;
Line 2162... Line 2217...
2162
    }
2217
    }
2163
    lastComparison = TBaseHelper.compareTo(delivery_timestamp, typedOther.delivery_timestamp);
2218
    lastComparison = TBaseHelper.compareTo(delivery_timestamp, typedOther.delivery_timestamp);
2164
    if (lastComparison != 0) {
2219
    if (lastComparison != 0) {
2165
      return lastComparison;
2220
      return lastComparison;
2166
    }
2221
    }
-
 
2222
    lastComparison = Boolean.valueOf(isSetOutofstock_timestamp()).compareTo(isSetOutofstock_timestamp());
-
 
2223
    if (lastComparison != 0) {
-
 
2224
      return lastComparison;
-
 
2225
    }
-
 
2226
    lastComparison = TBaseHelper.compareTo(outofstock_timestamp, typedOther.outofstock_timestamp);
-
 
2227
    if (lastComparison != 0) {
-
 
2228
      return lastComparison;
-
 
2229
    }
2167
    lastComparison = Boolean.valueOf(isSetJacket_number()).compareTo(isSetJacket_number());
2230
    lastComparison = Boolean.valueOf(isSetJacket_number()).compareTo(isSetJacket_number());
2168
    if (lastComparison != 0) {
2231
    if (lastComparison != 0) {
2169
      return lastComparison;
2232
      return lastComparison;
2170
    }
2233
    }
2171
    lastComparison = TBaseHelper.compareTo(jacket_number, typedOther.jacket_number);
2234
    lastComparison = TBaseHelper.compareTo(jacket_number, typedOther.jacket_number);
Line 2415... Line 2478...
2415
              setDelivery_timestampIsSet(true);
2478
              setDelivery_timestampIsSet(true);
2416
            } else { 
2479
            } else { 
2417
              TProtocolUtil.skip(iprot, field.type);
2480
              TProtocolUtil.skip(iprot, field.type);
2418
            }
2481
            }
2419
            break;
2482
            break;
-
 
2483
          case OUTOFSTOCK_TIMESTAMP:
-
 
2484
            if (field.type == TType.I64) {
-
 
2485
              this.outofstock_timestamp = iprot.readI64();
-
 
2486
              setOutofstock_timestampIsSet(true);
-
 
2487
            } else { 
-
 
2488
              TProtocolUtil.skip(iprot, field.type);
-
 
2489
            }
-
 
2490
            break;
2420
          case JACKET_NUMBER:
2491
          case JACKET_NUMBER:
2421
            if (field.type == TType.I64) {
2492
            if (field.type == TType.I64) {
2422
              this.jacket_number = iprot.readI64();
2493
              this.jacket_number = iprot.readI64();
2423
              setJacket_numberIsSet(true);
2494
              setJacket_numberIsSet(true);
2424
            } else { 
2495
            } else { 
Line 2563... Line 2634...
2563
    oprot.writeI64(this.pickup_timestamp);
2634
    oprot.writeI64(this.pickup_timestamp);
2564
    oprot.writeFieldEnd();
2635
    oprot.writeFieldEnd();
2565
    oprot.writeFieldBegin(DELIVERY_TIMESTAMP_FIELD_DESC);
2636
    oprot.writeFieldBegin(DELIVERY_TIMESTAMP_FIELD_DESC);
2566
    oprot.writeI64(this.delivery_timestamp);
2637
    oprot.writeI64(this.delivery_timestamp);
2567
    oprot.writeFieldEnd();
2638
    oprot.writeFieldEnd();
-
 
2639
    oprot.writeFieldBegin(OUTOFSTOCK_TIMESTAMP_FIELD_DESC);
-
 
2640
    oprot.writeI64(this.outofstock_timestamp);
-
 
2641
    oprot.writeFieldEnd();
2568
    oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
2642
    oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
2569
    oprot.writeI64(this.jacket_number);
2643
    oprot.writeI64(this.jacket_number);
2570
    oprot.writeFieldEnd();
2644
    oprot.writeFieldEnd();
2571
    if (this.receiver != null) {
2645
    if (this.receiver != null) {
2572
      oprot.writeFieldBegin(RECEIVER_FIELD_DESC);
2646
      oprot.writeFieldBegin(RECEIVER_FIELD_DESC);
Line 2760... Line 2834...
2760
    if (!first) sb.append(", ");
2834
    if (!first) sb.append(", ");
2761
    sb.append("delivery_timestamp:");
2835
    sb.append("delivery_timestamp:");
2762
    sb.append(this.delivery_timestamp);
2836
    sb.append(this.delivery_timestamp);
2763
    first = false;
2837
    first = false;
2764
    if (!first) sb.append(", ");
2838
    if (!first) sb.append(", ");
-
 
2839
    sb.append("outofstock_timestamp:");
-
 
2840
    sb.append(this.outofstock_timestamp);
-
 
2841
    first = false;
-
 
2842
    if (!first) sb.append(", ");
2765
    sb.append("jacket_number:");
2843
    sb.append("jacket_number:");
2766
    sb.append(this.jacket_number);
2844
    sb.append(this.jacket_number);
2767
    first = false;
2845
    first = false;
2768
    if (!first) sb.append(", ");
2846
    if (!first) sb.append(", ");
2769
    sb.append("receiver:");
2847
    sb.append("receiver:");