Subversion Repositories SmartDukaan

Rev

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

Rev 7808 Rev 7968
Line 115... Line 115...
115
     * @param quantity
115
     * @param quantity
116
     */
116
     */
117
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
117
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
118
 
118
 
119
    /**
119
    /**
-
 
120
     * Updates the reservation for Order
-
 
121
     * 
-
 
122
     * @param itemId
-
 
123
     * @param warehouseId
-
 
124
     * @param sourceId
-
 
125
     * @param orderId
-
 
126
     * @param createdTimestamp
-
 
127
     * @param promisedShippingTimestamp
-
 
128
     * @param quantity
-
 
129
     */
-
 
130
    public boolean updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
-
 
131
 
-
 
132
    /**
120
     * Decreases the reservation count for an item in a warehouse. Should always succeed normally.
133
     * Decreases the reservation count for an item in a warehouse. Should always succeed normally.
121
     * 
134
     * 
122
     * @param itemId
135
     * @param itemId
123
     * @param warehouseId
136
     * @param warehouseId
124
     * @param sourceId
137
     * @param sourceId
Line 348... Line 361...
348
 
361
 
349
    public void isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isOrderBillable_call> resultHandler) throws org.apache.thrift.TException;
362
    public void isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isOrderBillable_call> resultHandler) throws org.apache.thrift.TException;
350
 
363
 
351
    public void reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reserveItemInWarehouse_call> resultHandler) throws org.apache.thrift.TException;
364
    public void reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reserveItemInWarehouse_call> resultHandler) throws org.apache.thrift.TException;
352
 
365
 
-
 
366
    public void updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateReservationForOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
367
 
353
    public void reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reduceReservationCount_call> resultHandler) throws org.apache.thrift.TException;
368
    public void reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reduceReservationCount_call> resultHandler) throws org.apache.thrift.TException;
354
 
369
 
355
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
370
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
356
 
371
 
357
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
372
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
Line 816... Line 831...
816
        throw result.cex;
831
        throw result.cex;
817
      }
832
      }
818
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
833
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
819
    }
834
    }
820
 
835
 
-
 
836
    public boolean updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
-
 
837
    {
-
 
838
      send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
-
 
839
      return recv_updateReservationForOrder();
-
 
840
    }
-
 
841
 
-
 
842
    public void send_updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws org.apache.thrift.TException
-
 
843
    {
-
 
844
      updateReservationForOrder_args args = new updateReservationForOrder_args();
-
 
845
      args.setItemId(itemId);
-
 
846
      args.setWarehouseId(warehouseId);
-
 
847
      args.setSourceId(sourceId);
-
 
848
      args.setOrderId(orderId);
-
 
849
      args.setCreatedTimestamp(createdTimestamp);
-
 
850
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
-
 
851
      args.setQuantity(quantity);
-
 
852
      sendBase("updateReservationForOrder", args);
-
 
853
    }
-
 
854
 
-
 
855
    public boolean recv_updateReservationForOrder() throws InventoryServiceException, org.apache.thrift.TException
-
 
856
    {
-
 
857
      updateReservationForOrder_result result = new updateReservationForOrder_result();
-
 
858
      receiveBase(result, "updateReservationForOrder");
-
 
859
      if (result.isSetSuccess()) {
-
 
860
        return result.success;
-
 
861
      }
-
 
862
      if (result.cex != null) {
-
 
863
        throw result.cex;
-
 
864
      }
-
 
865
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
-
 
866
    }
-
 
867
 
821
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
868
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
822
    {
869
    {
823
      send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity);
870
      send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity);
824
      return recv_reduceReservationCount();
871
      return recv_reduceReservationCount();
825
    }
872
    }
Line 2259... Line 2306...
2259
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2306
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2260
        return (new Client(prot)).recv_reserveItemInWarehouse();
2307
        return (new Client(prot)).recv_reserveItemInWarehouse();
2261
      }
2308
      }
2262
    }
2309
    }
2263
 
2310
 
-
 
2311
    public void updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<updateReservationForOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
2312
      checkReady();
-
 
2313
      updateReservationForOrder_call method_call = new updateReservationForOrder_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
-
 
2314
      this.___currentMethod = method_call;
-
 
2315
      ___manager.call(method_call);
-
 
2316
    }
-
 
2317
 
-
 
2318
    public static class updateReservationForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2319
      private long itemId;
-
 
2320
      private long warehouseId;
-
 
2321
      private long sourceId;
-
 
2322
      private long orderId;
-
 
2323
      private long createdTimestamp;
-
 
2324
      private long promisedShippingTimestamp;
-
 
2325
      private double quantity;
-
 
2326
      public updateReservationForOrder_call(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<updateReservationForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
2327
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2328
        this.itemId = itemId;
-
 
2329
        this.warehouseId = warehouseId;
-
 
2330
        this.sourceId = sourceId;
-
 
2331
        this.orderId = orderId;
-
 
2332
        this.createdTimestamp = createdTimestamp;
-
 
2333
        this.promisedShippingTimestamp = promisedShippingTimestamp;
-
 
2334
        this.quantity = quantity;
-
 
2335
      }
-
 
2336
 
-
 
2337
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2338
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateReservationForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2339
        updateReservationForOrder_args args = new updateReservationForOrder_args();
-
 
2340
        args.setItemId(itemId);
-
 
2341
        args.setWarehouseId(warehouseId);
-
 
2342
        args.setSourceId(sourceId);
-
 
2343
        args.setOrderId(orderId);
-
 
2344
        args.setCreatedTimestamp(createdTimestamp);
-
 
2345
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
-
 
2346
        args.setQuantity(quantity);
-
 
2347
        args.write(prot);
-
 
2348
        prot.writeMessageEnd();
-
 
2349
      }
-
 
2350
 
-
 
2351
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
2352
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2353
          throw new IllegalStateException("Method call not finished!");
-
 
2354
        }
-
 
2355
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2356
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2357
        return (new Client(prot)).recv_updateReservationForOrder();
-
 
2358
      }
-
 
2359
    }
-
 
2360
 
2264
    public void reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity, org.apache.thrift.async.AsyncMethodCallback<reduceReservationCount_call> resultHandler) throws org.apache.thrift.TException {
2361
    public void reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity, org.apache.thrift.async.AsyncMethodCallback<reduceReservationCount_call> resultHandler) throws org.apache.thrift.TException {
2265
      checkReady();
2362
      checkReady();
2266
      reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, sourceId, orderId, quantity, resultHandler, this, ___protocolFactory, ___transport);
2363
      reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, sourceId, orderId, quantity, resultHandler, this, ___protocolFactory, ___transport);
2267
      this.___currentMethod = method_call;
2364
      this.___currentMethod = method_call;
2268
      ___manager.call(method_call);
2365
      ___manager.call(method_call);
Line 3611... Line 3708...
3611
      processMap.put("getAllWarehouses", new getAllWarehouses());
3708
      processMap.put("getAllWarehouses", new getAllWarehouses());
3612
      processMap.put("getWarehouse", new getWarehouse());
3709
      processMap.put("getWarehouse", new getWarehouse());
3613
      processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
3710
      processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
3614
      processMap.put("isOrderBillable", new isOrderBillable());
3711
      processMap.put("isOrderBillable", new isOrderBillable());
3615
      processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
3712
      processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
-
 
3713
      processMap.put("updateReservationForOrder", new updateReservationForOrder());
3616
      processMap.put("reduceReservationCount", new reduceReservationCount());
3714
      processMap.put("reduceReservationCount", new reduceReservationCount());
3617
      processMap.put("getItemPricing", new getItemPricing());
3715
      processMap.put("getItemPricing", new getItemPricing());
3618
      processMap.put("getAllItemPricing", new getAllItemPricing());
3716
      processMap.put("getAllItemPricing", new getAllItemPricing());
3619
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
3717
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
3620
      processMap.put("getVendor", new getVendor());
3718
      processMap.put("getVendor", new getVendor());
Line 3935... Line 4033...
3935
        }
4033
        }
3936
        return result;
4034
        return result;
3937
      }
4035
      }
3938
    }
4036
    }
3939
 
4037
 
-
 
4038
    private static class updateReservationForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateReservationForOrder_args> {
-
 
4039
      public updateReservationForOrder() {
-
 
4040
        super("updateReservationForOrder");
-
 
4041
      }
-
 
4042
 
-
 
4043
      protected updateReservationForOrder_args getEmptyArgsInstance() {
-
 
4044
        return new updateReservationForOrder_args();
-
 
4045
      }
-
 
4046
 
-
 
4047
      protected updateReservationForOrder_result getResult(I iface, updateReservationForOrder_args args) throws org.apache.thrift.TException {
-
 
4048
        updateReservationForOrder_result result = new updateReservationForOrder_result();
-
 
4049
        try {
-
 
4050
          result.success = iface.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
-
 
4051
          result.setSuccessIsSet(true);
-
 
4052
        } catch (InventoryServiceException cex) {
-
 
4053
          result.cex = cex;
-
 
4054
        }
-
 
4055
        return result;
-
 
4056
      }
-
 
4057
    }
-
 
4058
 
3940
    private static class reduceReservationCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reduceReservationCount_args> {
4059
    private static class reduceReservationCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reduceReservationCount_args> {
3941
      public reduceReservationCount() {
4060
      public reduceReservationCount() {
3942
        super("reduceReservationCount");
4061
        super("reduceReservationCount");
3943
      }
4062
      }
3944
 
4063
 
Line 6475... Line 6594...
6475
      }
6594
      }
6476
    }
6595
    }
6477
 
6596
 
6478
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6597
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6479
      try {
6598
      try {
6480
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
6481
        __isset_bit_vector = new BitSet(1);
-
 
6482
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6599
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6483
      } catch (org.apache.thrift.TException te) {
6600
      } catch (org.apache.thrift.TException te) {
6484
        throw new java.io.IOException(te);
6601
        throw new java.io.IOException(te);
6485
      }
6602
      }
6486
    }
6603
    }
Line 11441... Line 11558...
11441
      }
11558
      }
11442
    }
11559
    }
11443
 
11560
 
11444
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11561
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11445
      try {
11562
      try {
-
 
11563
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
11564
        __isset_bit_vector = new BitSet(1);
11446
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11447
      } catch (org.apache.thrift.TException te) {
11566
      } catch (org.apache.thrift.TException te) {
11448
        throw new java.io.IOException(te);
11567
        throw new java.io.IOException(te);
11449
      }
11568
      }
11450
    }
11569
    }
Line 15261... Line 15380...
15261
      }
15380
      }
15262
    }
15381
    }
15263
 
15382
 
15264
  }
15383
  }
15265
 
15384
 
-
 
15385
  public static class updateReservationForOrder_args implements org.apache.thrift.TBase<updateReservationForOrder_args, updateReservationForOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
15386
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateReservationForOrder_args");
-
 
15387
 
-
 
15388
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
15389
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
15390
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
15391
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
15392
    private static final org.apache.thrift.protocol.TField CREATED_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("createdTimestamp", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
15393
    private static final org.apache.thrift.protocol.TField PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("promisedShippingTimestamp", org.apache.thrift.protocol.TType.I64, (short)6);
-
 
15394
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
-
 
15395
 
-
 
15396
    private long itemId; // required
-
 
15397
    private long warehouseId; // required
-
 
15398
    private long sourceId; // required
-
 
15399
    private long orderId; // required
-
 
15400
    private long createdTimestamp; // required
-
 
15401
    private long promisedShippingTimestamp; // required
-
 
15402
    private double quantity; // required
-
 
15403
 
-
 
15404
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
15405
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
15406
      ITEM_ID((short)1, "itemId"),
-
 
15407
      WAREHOUSE_ID((short)2, "warehouseId"),
-
 
15408
      SOURCE_ID((short)3, "sourceId"),
-
 
15409
      ORDER_ID((short)4, "orderId"),
-
 
15410
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
-
 
15411
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
-
 
15412
      QUANTITY((short)7, "quantity");
-
 
15413
 
-
 
15414
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
15415
 
-
 
15416
      static {
-
 
15417
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
15418
          byName.put(field.getFieldName(), field);
-
 
15419
        }
-
 
15420
      }
-
 
15421
 
-
 
15422
      /**
-
 
15423
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
15424
       */
-
 
15425
      public static _Fields findByThriftId(int fieldId) {
-
 
15426
        switch(fieldId) {
-
 
15427
          case 1: // ITEM_ID
-
 
15428
            return ITEM_ID;
-
 
15429
          case 2: // WAREHOUSE_ID
-
 
15430
            return WAREHOUSE_ID;
-
 
15431
          case 3: // SOURCE_ID
-
 
15432
            return SOURCE_ID;
-
 
15433
          case 4: // ORDER_ID
-
 
15434
            return ORDER_ID;
-
 
15435
          case 5: // CREATED_TIMESTAMP
-
 
15436
            return CREATED_TIMESTAMP;
-
 
15437
          case 6: // PROMISED_SHIPPING_TIMESTAMP
-
 
15438
            return PROMISED_SHIPPING_TIMESTAMP;
-
 
15439
          case 7: // QUANTITY
-
 
15440
            return QUANTITY;
-
 
15441
          default:
-
 
15442
            return null;
-
 
15443
        }
-
 
15444
      }
-
 
15445
 
-
 
15446
      /**
-
 
15447
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
15448
       * if it is not found.
-
 
15449
       */
-
 
15450
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
15451
        _Fields fields = findByThriftId(fieldId);
-
 
15452
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
15453
        return fields;
-
 
15454
      }
-
 
15455
 
-
 
15456
      /**
-
 
15457
       * Find the _Fields constant that matches name, or null if its not found.
-
 
15458
       */
-
 
15459
      public static _Fields findByName(String name) {
-
 
15460
        return byName.get(name);
-
 
15461
      }
-
 
15462
 
-
 
15463
      private final short _thriftId;
-
 
15464
      private final String _fieldName;
-
 
15465
 
-
 
15466
      _Fields(short thriftId, String fieldName) {
-
 
15467
        _thriftId = thriftId;
-
 
15468
        _fieldName = fieldName;
-
 
15469
      }
-
 
15470
 
-
 
15471
      public short getThriftFieldId() {
-
 
15472
        return _thriftId;
-
 
15473
      }
-
 
15474
 
-
 
15475
      public String getFieldName() {
-
 
15476
        return _fieldName;
-
 
15477
      }
-
 
15478
    }
-
 
15479
 
-
 
15480
    // isset id assignments
-
 
15481
    private static final int __ITEMID_ISSET_ID = 0;
-
 
15482
    private static final int __WAREHOUSEID_ISSET_ID = 1;
-
 
15483
    private static final int __SOURCEID_ISSET_ID = 2;
-
 
15484
    private static final int __ORDERID_ISSET_ID = 3;
-
 
15485
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
-
 
15486
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
-
 
15487
    private static final int __QUANTITY_ISSET_ID = 6;
-
 
15488
    private BitSet __isset_bit_vector = new BitSet(7);
-
 
15489
 
-
 
15490
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
15491
    static {
-
 
15492
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
15493
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
15495
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15496
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
15497
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15498
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
15499
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15500
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
15501
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
15503
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15504
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
15505
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15506
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
15507
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
15508
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateReservationForOrder_args.class, metaDataMap);
-
 
15509
    }
-
 
15510
 
-
 
15511
    public updateReservationForOrder_args() {
-
 
15512
    }
-
 
15513
 
-
 
15514
    public updateReservationForOrder_args(
-
 
15515
      long itemId,
-
 
15516
      long warehouseId,
-
 
15517
      long sourceId,
-
 
15518
      long orderId,
-
 
15519
      long createdTimestamp,
-
 
15520
      long promisedShippingTimestamp,
-
 
15521
      double quantity)
-
 
15522
    {
-
 
15523
      this();
-
 
15524
      this.itemId = itemId;
-
 
15525
      setItemIdIsSet(true);
-
 
15526
      this.warehouseId = warehouseId;
-
 
15527
      setWarehouseIdIsSet(true);
-
 
15528
      this.sourceId = sourceId;
-
 
15529
      setSourceIdIsSet(true);
-
 
15530
      this.orderId = orderId;
-
 
15531
      setOrderIdIsSet(true);
-
 
15532
      this.createdTimestamp = createdTimestamp;
-
 
15533
      setCreatedTimestampIsSet(true);
-
 
15534
      this.promisedShippingTimestamp = promisedShippingTimestamp;
-
 
15535
      setPromisedShippingTimestampIsSet(true);
-
 
15536
      this.quantity = quantity;
-
 
15537
      setQuantityIsSet(true);
-
 
15538
    }
-
 
15539
 
-
 
15540
    /**
-
 
15541
     * Performs a deep copy on <i>other</i>.
-
 
15542
     */
-
 
15543
    public updateReservationForOrder_args(updateReservationForOrder_args other) {
-
 
15544
      __isset_bit_vector.clear();
-
 
15545
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
15546
      this.itemId = other.itemId;
-
 
15547
      this.warehouseId = other.warehouseId;
-
 
15548
      this.sourceId = other.sourceId;
-
 
15549
      this.orderId = other.orderId;
-
 
15550
      this.createdTimestamp = other.createdTimestamp;
-
 
15551
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
-
 
15552
      this.quantity = other.quantity;
-
 
15553
    }
-
 
15554
 
-
 
15555
    public updateReservationForOrder_args deepCopy() {
-
 
15556
      return new updateReservationForOrder_args(this);
-
 
15557
    }
-
 
15558
 
-
 
15559
    @Override
-
 
15560
    public void clear() {
-
 
15561
      setItemIdIsSet(false);
-
 
15562
      this.itemId = 0;
-
 
15563
      setWarehouseIdIsSet(false);
-
 
15564
      this.warehouseId = 0;
-
 
15565
      setSourceIdIsSet(false);
-
 
15566
      this.sourceId = 0;
-
 
15567
      setOrderIdIsSet(false);
-
 
15568
      this.orderId = 0;
-
 
15569
      setCreatedTimestampIsSet(false);
-
 
15570
      this.createdTimestamp = 0;
-
 
15571
      setPromisedShippingTimestampIsSet(false);
-
 
15572
      this.promisedShippingTimestamp = 0;
-
 
15573
      setQuantityIsSet(false);
-
 
15574
      this.quantity = 0.0;
-
 
15575
    }
-
 
15576
 
-
 
15577
    public long getItemId() {
-
 
15578
      return this.itemId;
-
 
15579
    }
-
 
15580
 
-
 
15581
    public void setItemId(long itemId) {
-
 
15582
      this.itemId = itemId;
-
 
15583
      setItemIdIsSet(true);
-
 
15584
    }
-
 
15585
 
-
 
15586
    public void unsetItemId() {
-
 
15587
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
15588
    }
-
 
15589
 
-
 
15590
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
15591
    public boolean isSetItemId() {
-
 
15592
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
15593
    }
-
 
15594
 
-
 
15595
    public void setItemIdIsSet(boolean value) {
-
 
15596
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
15597
    }
-
 
15598
 
-
 
15599
    public long getWarehouseId() {
-
 
15600
      return this.warehouseId;
-
 
15601
    }
-
 
15602
 
-
 
15603
    public void setWarehouseId(long warehouseId) {
-
 
15604
      this.warehouseId = warehouseId;
-
 
15605
      setWarehouseIdIsSet(true);
-
 
15606
    }
-
 
15607
 
-
 
15608
    public void unsetWarehouseId() {
-
 
15609
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
15610
    }
-
 
15611
 
-
 
15612
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
15613
    public boolean isSetWarehouseId() {
-
 
15614
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
15615
    }
-
 
15616
 
-
 
15617
    public void setWarehouseIdIsSet(boolean value) {
-
 
15618
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
15619
    }
-
 
15620
 
-
 
15621
    public long getSourceId() {
-
 
15622
      return this.sourceId;
-
 
15623
    }
-
 
15624
 
-
 
15625
    public void setSourceId(long sourceId) {
-
 
15626
      this.sourceId = sourceId;
-
 
15627
      setSourceIdIsSet(true);
-
 
15628
    }
-
 
15629
 
-
 
15630
    public void unsetSourceId() {
-
 
15631
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
-
 
15632
    }
-
 
15633
 
-
 
15634
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
-
 
15635
    public boolean isSetSourceId() {
-
 
15636
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
-
 
15637
    }
-
 
15638
 
-
 
15639
    public void setSourceIdIsSet(boolean value) {
-
 
15640
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
-
 
15641
    }
-
 
15642
 
-
 
15643
    public long getOrderId() {
-
 
15644
      return this.orderId;
-
 
15645
    }
-
 
15646
 
-
 
15647
    public void setOrderId(long orderId) {
-
 
15648
      this.orderId = orderId;
-
 
15649
      setOrderIdIsSet(true);
-
 
15650
    }
-
 
15651
 
-
 
15652
    public void unsetOrderId() {
-
 
15653
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
15654
    }
-
 
15655
 
-
 
15656
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
15657
    public boolean isSetOrderId() {
-
 
15658
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
15659
    }
-
 
15660
 
-
 
15661
    public void setOrderIdIsSet(boolean value) {
-
 
15662
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
15663
    }
-
 
15664
 
-
 
15665
    public long getCreatedTimestamp() {
-
 
15666
      return this.createdTimestamp;
-
 
15667
    }
-
 
15668
 
-
 
15669
    public void setCreatedTimestamp(long createdTimestamp) {
-
 
15670
      this.createdTimestamp = createdTimestamp;
-
 
15671
      setCreatedTimestampIsSet(true);
-
 
15672
    }
-
 
15673
 
-
 
15674
    public void unsetCreatedTimestamp() {
-
 
15675
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
-
 
15676
    }
-
 
15677
 
-
 
15678
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
-
 
15679
    public boolean isSetCreatedTimestamp() {
-
 
15680
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
-
 
15681
    }
-
 
15682
 
-
 
15683
    public void setCreatedTimestampIsSet(boolean value) {
-
 
15684
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
-
 
15685
    }
-
 
15686
 
-
 
15687
    public long getPromisedShippingTimestamp() {
-
 
15688
      return this.promisedShippingTimestamp;
-
 
15689
    }
-
 
15690
 
-
 
15691
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
-
 
15692
      this.promisedShippingTimestamp = promisedShippingTimestamp;
-
 
15693
      setPromisedShippingTimestampIsSet(true);
-
 
15694
    }
-
 
15695
 
-
 
15696
    public void unsetPromisedShippingTimestamp() {
-
 
15697
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
-
 
15698
    }
-
 
15699
 
-
 
15700
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
-
 
15701
    public boolean isSetPromisedShippingTimestamp() {
-
 
15702
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
-
 
15703
    }
-
 
15704
 
-
 
15705
    public void setPromisedShippingTimestampIsSet(boolean value) {
-
 
15706
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
-
 
15707
    }
-
 
15708
 
-
 
15709
    public double getQuantity() {
-
 
15710
      return this.quantity;
-
 
15711
    }
-
 
15712
 
-
 
15713
    public void setQuantity(double quantity) {
-
 
15714
      this.quantity = quantity;
-
 
15715
      setQuantityIsSet(true);
-
 
15716
    }
-
 
15717
 
-
 
15718
    public void unsetQuantity() {
-
 
15719
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
15720
    }
-
 
15721
 
-
 
15722
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
15723
    public boolean isSetQuantity() {
-
 
15724
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
15725
    }
-
 
15726
 
-
 
15727
    public void setQuantityIsSet(boolean value) {
-
 
15728
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
15729
    }
-
 
15730
 
-
 
15731
    public void setFieldValue(_Fields field, Object value) {
-
 
15732
      switch (field) {
-
 
15733
      case ITEM_ID:
-
 
15734
        if (value == null) {
-
 
15735
          unsetItemId();
-
 
15736
        } else {
-
 
15737
          setItemId((Long)value);
-
 
15738
        }
-
 
15739
        break;
-
 
15740
 
-
 
15741
      case WAREHOUSE_ID:
-
 
15742
        if (value == null) {
-
 
15743
          unsetWarehouseId();
-
 
15744
        } else {
-
 
15745
          setWarehouseId((Long)value);
-
 
15746
        }
-
 
15747
        break;
-
 
15748
 
-
 
15749
      case SOURCE_ID:
-
 
15750
        if (value == null) {
-
 
15751
          unsetSourceId();
-
 
15752
        } else {
-
 
15753
          setSourceId((Long)value);
-
 
15754
        }
-
 
15755
        break;
-
 
15756
 
-
 
15757
      case ORDER_ID:
-
 
15758
        if (value == null) {
-
 
15759
          unsetOrderId();
-
 
15760
        } else {
-
 
15761
          setOrderId((Long)value);
-
 
15762
        }
-
 
15763
        break;
-
 
15764
 
-
 
15765
      case CREATED_TIMESTAMP:
-
 
15766
        if (value == null) {
-
 
15767
          unsetCreatedTimestamp();
-
 
15768
        } else {
-
 
15769
          setCreatedTimestamp((Long)value);
-
 
15770
        }
-
 
15771
        break;
-
 
15772
 
-
 
15773
      case PROMISED_SHIPPING_TIMESTAMP:
-
 
15774
        if (value == null) {
-
 
15775
          unsetPromisedShippingTimestamp();
-
 
15776
        } else {
-
 
15777
          setPromisedShippingTimestamp((Long)value);
-
 
15778
        }
-
 
15779
        break;
-
 
15780
 
-
 
15781
      case QUANTITY:
-
 
15782
        if (value == null) {
-
 
15783
          unsetQuantity();
-
 
15784
        } else {
-
 
15785
          setQuantity((Double)value);
-
 
15786
        }
-
 
15787
        break;
-
 
15788
 
-
 
15789
      }
-
 
15790
    }
-
 
15791
 
-
 
15792
    public Object getFieldValue(_Fields field) {
-
 
15793
      switch (field) {
-
 
15794
      case ITEM_ID:
-
 
15795
        return Long.valueOf(getItemId());
-
 
15796
 
-
 
15797
      case WAREHOUSE_ID:
-
 
15798
        return Long.valueOf(getWarehouseId());
-
 
15799
 
-
 
15800
      case SOURCE_ID:
-
 
15801
        return Long.valueOf(getSourceId());
-
 
15802
 
-
 
15803
      case ORDER_ID:
-
 
15804
        return Long.valueOf(getOrderId());
-
 
15805
 
-
 
15806
      case CREATED_TIMESTAMP:
-
 
15807
        return Long.valueOf(getCreatedTimestamp());
-
 
15808
 
-
 
15809
      case PROMISED_SHIPPING_TIMESTAMP:
-
 
15810
        return Long.valueOf(getPromisedShippingTimestamp());
-
 
15811
 
-
 
15812
      case QUANTITY:
-
 
15813
        return Double.valueOf(getQuantity());
-
 
15814
 
-
 
15815
      }
-
 
15816
      throw new IllegalStateException();
-
 
15817
    }
-
 
15818
 
-
 
15819
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
15820
    public boolean isSet(_Fields field) {
-
 
15821
      if (field == null) {
-
 
15822
        throw new IllegalArgumentException();
-
 
15823
      }
-
 
15824
 
-
 
15825
      switch (field) {
-
 
15826
      case ITEM_ID:
-
 
15827
        return isSetItemId();
-
 
15828
      case WAREHOUSE_ID:
-
 
15829
        return isSetWarehouseId();
-
 
15830
      case SOURCE_ID:
-
 
15831
        return isSetSourceId();
-
 
15832
      case ORDER_ID:
-
 
15833
        return isSetOrderId();
-
 
15834
      case CREATED_TIMESTAMP:
-
 
15835
        return isSetCreatedTimestamp();
-
 
15836
      case PROMISED_SHIPPING_TIMESTAMP:
-
 
15837
        return isSetPromisedShippingTimestamp();
-
 
15838
      case QUANTITY:
-
 
15839
        return isSetQuantity();
-
 
15840
      }
-
 
15841
      throw new IllegalStateException();
-
 
15842
    }
-
 
15843
 
-
 
15844
    @Override
-
 
15845
    public boolean equals(Object that) {
-
 
15846
      if (that == null)
-
 
15847
        return false;
-
 
15848
      if (that instanceof updateReservationForOrder_args)
-
 
15849
        return this.equals((updateReservationForOrder_args)that);
-
 
15850
      return false;
-
 
15851
    }
-
 
15852
 
-
 
15853
    public boolean equals(updateReservationForOrder_args that) {
-
 
15854
      if (that == null)
-
 
15855
        return false;
-
 
15856
 
-
 
15857
      boolean this_present_itemId = true;
-
 
15858
      boolean that_present_itemId = true;
-
 
15859
      if (this_present_itemId || that_present_itemId) {
-
 
15860
        if (!(this_present_itemId && that_present_itemId))
-
 
15861
          return false;
-
 
15862
        if (this.itemId != that.itemId)
-
 
15863
          return false;
-
 
15864
      }
-
 
15865
 
-
 
15866
      boolean this_present_warehouseId = true;
-
 
15867
      boolean that_present_warehouseId = true;
-
 
15868
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
15869
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
15870
          return false;
-
 
15871
        if (this.warehouseId != that.warehouseId)
-
 
15872
          return false;
-
 
15873
      }
-
 
15874
 
-
 
15875
      boolean this_present_sourceId = true;
-
 
15876
      boolean that_present_sourceId = true;
-
 
15877
      if (this_present_sourceId || that_present_sourceId) {
-
 
15878
        if (!(this_present_sourceId && that_present_sourceId))
-
 
15879
          return false;
-
 
15880
        if (this.sourceId != that.sourceId)
-
 
15881
          return false;
-
 
15882
      }
-
 
15883
 
-
 
15884
      boolean this_present_orderId = true;
-
 
15885
      boolean that_present_orderId = true;
-
 
15886
      if (this_present_orderId || that_present_orderId) {
-
 
15887
        if (!(this_present_orderId && that_present_orderId))
-
 
15888
          return false;
-
 
15889
        if (this.orderId != that.orderId)
-
 
15890
          return false;
-
 
15891
      }
-
 
15892
 
-
 
15893
      boolean this_present_createdTimestamp = true;
-
 
15894
      boolean that_present_createdTimestamp = true;
-
 
15895
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
-
 
15896
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
-
 
15897
          return false;
-
 
15898
        if (this.createdTimestamp != that.createdTimestamp)
-
 
15899
          return false;
-
 
15900
      }
-
 
15901
 
-
 
15902
      boolean this_present_promisedShippingTimestamp = true;
-
 
15903
      boolean that_present_promisedShippingTimestamp = true;
-
 
15904
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
-
 
15905
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
-
 
15906
          return false;
-
 
15907
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
-
 
15908
          return false;
-
 
15909
      }
-
 
15910
 
-
 
15911
      boolean this_present_quantity = true;
-
 
15912
      boolean that_present_quantity = true;
-
 
15913
      if (this_present_quantity || that_present_quantity) {
-
 
15914
        if (!(this_present_quantity && that_present_quantity))
-
 
15915
          return false;
-
 
15916
        if (this.quantity != that.quantity)
-
 
15917
          return false;
-
 
15918
      }
-
 
15919
 
-
 
15920
      return true;
-
 
15921
    }
-
 
15922
 
-
 
15923
    @Override
-
 
15924
    public int hashCode() {
-
 
15925
      return 0;
-
 
15926
    }
-
 
15927
 
-
 
15928
    public int compareTo(updateReservationForOrder_args other) {
-
 
15929
      if (!getClass().equals(other.getClass())) {
-
 
15930
        return getClass().getName().compareTo(other.getClass().getName());
-
 
15931
      }
-
 
15932
 
-
 
15933
      int lastComparison = 0;
-
 
15934
      updateReservationForOrder_args typedOther = (updateReservationForOrder_args)other;
-
 
15935
 
-
 
15936
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
15937
      if (lastComparison != 0) {
-
 
15938
        return lastComparison;
-
 
15939
      }
-
 
15940
      if (isSetItemId()) {
-
 
15941
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
15942
        if (lastComparison != 0) {
-
 
15943
          return lastComparison;
-
 
15944
        }
-
 
15945
      }
-
 
15946
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
15947
      if (lastComparison != 0) {
-
 
15948
        return lastComparison;
-
 
15949
      }
-
 
15950
      if (isSetWarehouseId()) {
-
 
15951
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
15952
        if (lastComparison != 0) {
-
 
15953
          return lastComparison;
-
 
15954
        }
-
 
15955
      }
-
 
15956
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
-
 
15957
      if (lastComparison != 0) {
-
 
15958
        return lastComparison;
-
 
15959
      }
-
 
15960
      if (isSetSourceId()) {
-
 
15961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
-
 
15962
        if (lastComparison != 0) {
-
 
15963
          return lastComparison;
-
 
15964
        }
-
 
15965
      }
-
 
15966
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
15967
      if (lastComparison != 0) {
-
 
15968
        return lastComparison;
-
 
15969
      }
-
 
15970
      if (isSetOrderId()) {
-
 
15971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
15972
        if (lastComparison != 0) {
-
 
15973
          return lastComparison;
-
 
15974
        }
-
 
15975
      }
-
 
15976
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
-
 
15977
      if (lastComparison != 0) {
-
 
15978
        return lastComparison;
-
 
15979
      }
-
 
15980
      if (isSetCreatedTimestamp()) {
-
 
15981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
-
 
15982
        if (lastComparison != 0) {
-
 
15983
          return lastComparison;
-
 
15984
        }
-
 
15985
      }
-
 
15986
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
-
 
15987
      if (lastComparison != 0) {
-
 
15988
        return lastComparison;
-
 
15989
      }
-
 
15990
      if (isSetPromisedShippingTimestamp()) {
-
 
15991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
-
 
15992
        if (lastComparison != 0) {
-
 
15993
          return lastComparison;
-
 
15994
        }
-
 
15995
      }
-
 
15996
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
-
 
15997
      if (lastComparison != 0) {
-
 
15998
        return lastComparison;
-
 
15999
      }
-
 
16000
      if (isSetQuantity()) {
-
 
16001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
-
 
16002
        if (lastComparison != 0) {
-
 
16003
          return lastComparison;
-
 
16004
        }
-
 
16005
      }
-
 
16006
      return 0;
-
 
16007
    }
-
 
16008
 
-
 
16009
    public _Fields fieldForId(int fieldId) {
-
 
16010
      return _Fields.findByThriftId(fieldId);
-
 
16011
    }
-
 
16012
 
-
 
16013
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
16014
      org.apache.thrift.protocol.TField field;
-
 
16015
      iprot.readStructBegin();
-
 
16016
      while (true)
-
 
16017
      {
-
 
16018
        field = iprot.readFieldBegin();
-
 
16019
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
16020
          break;
-
 
16021
        }
-
 
16022
        switch (field.id) {
-
 
16023
          case 1: // ITEM_ID
-
 
16024
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
16025
              this.itemId = iprot.readI64();
-
 
16026
              setItemIdIsSet(true);
-
 
16027
            } else { 
-
 
16028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16029
            }
-
 
16030
            break;
-
 
16031
          case 2: // WAREHOUSE_ID
-
 
16032
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
16033
              this.warehouseId = iprot.readI64();
-
 
16034
              setWarehouseIdIsSet(true);
-
 
16035
            } else { 
-
 
16036
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16037
            }
-
 
16038
            break;
-
 
16039
          case 3: // SOURCE_ID
-
 
16040
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
16041
              this.sourceId = iprot.readI64();
-
 
16042
              setSourceIdIsSet(true);
-
 
16043
            } else { 
-
 
16044
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16045
            }
-
 
16046
            break;
-
 
16047
          case 4: // ORDER_ID
-
 
16048
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
16049
              this.orderId = iprot.readI64();
-
 
16050
              setOrderIdIsSet(true);
-
 
16051
            } else { 
-
 
16052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16053
            }
-
 
16054
            break;
-
 
16055
          case 5: // CREATED_TIMESTAMP
-
 
16056
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
16057
              this.createdTimestamp = iprot.readI64();
-
 
16058
              setCreatedTimestampIsSet(true);
-
 
16059
            } else { 
-
 
16060
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16061
            }
-
 
16062
            break;
-
 
16063
          case 6: // PROMISED_SHIPPING_TIMESTAMP
-
 
16064
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
16065
              this.promisedShippingTimestamp = iprot.readI64();
-
 
16066
              setPromisedShippingTimestampIsSet(true);
-
 
16067
            } else { 
-
 
16068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16069
            }
-
 
16070
            break;
-
 
16071
          case 7: // QUANTITY
-
 
16072
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
16073
              this.quantity = iprot.readDouble();
-
 
16074
              setQuantityIsSet(true);
-
 
16075
            } else { 
-
 
16076
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16077
            }
-
 
16078
            break;
-
 
16079
          default:
-
 
16080
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16081
        }
-
 
16082
        iprot.readFieldEnd();
-
 
16083
      }
-
 
16084
      iprot.readStructEnd();
-
 
16085
      validate();
-
 
16086
    }
-
 
16087
 
-
 
16088
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
16089
      validate();
-
 
16090
 
-
 
16091
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16092
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
16093
      oprot.writeI64(this.itemId);
-
 
16094
      oprot.writeFieldEnd();
-
 
16095
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
16096
      oprot.writeI64(this.warehouseId);
-
 
16097
      oprot.writeFieldEnd();
-
 
16098
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
-
 
16099
      oprot.writeI64(this.sourceId);
-
 
16100
      oprot.writeFieldEnd();
-
 
16101
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
16102
      oprot.writeI64(this.orderId);
-
 
16103
      oprot.writeFieldEnd();
-
 
16104
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
-
 
16105
      oprot.writeI64(this.createdTimestamp);
-
 
16106
      oprot.writeFieldEnd();
-
 
16107
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
-
 
16108
      oprot.writeI64(this.promisedShippingTimestamp);
-
 
16109
      oprot.writeFieldEnd();
-
 
16110
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
16111
      oprot.writeDouble(this.quantity);
-
 
16112
      oprot.writeFieldEnd();
-
 
16113
      oprot.writeFieldStop();
-
 
16114
      oprot.writeStructEnd();
-
 
16115
    }
-
 
16116
 
-
 
16117
    @Override
-
 
16118
    public String toString() {
-
 
16119
      StringBuilder sb = new StringBuilder("updateReservationForOrder_args(");
-
 
16120
      boolean first = true;
-
 
16121
 
-
 
16122
      sb.append("itemId:");
-
 
16123
      sb.append(this.itemId);
-
 
16124
      first = false;
-
 
16125
      if (!first) sb.append(", ");
-
 
16126
      sb.append("warehouseId:");
-
 
16127
      sb.append(this.warehouseId);
-
 
16128
      first = false;
-
 
16129
      if (!first) sb.append(", ");
-
 
16130
      sb.append("sourceId:");
-
 
16131
      sb.append(this.sourceId);
-
 
16132
      first = false;
-
 
16133
      if (!first) sb.append(", ");
-
 
16134
      sb.append("orderId:");
-
 
16135
      sb.append(this.orderId);
-
 
16136
      first = false;
-
 
16137
      if (!first) sb.append(", ");
-
 
16138
      sb.append("createdTimestamp:");
-
 
16139
      sb.append(this.createdTimestamp);
-
 
16140
      first = false;
-
 
16141
      if (!first) sb.append(", ");
-
 
16142
      sb.append("promisedShippingTimestamp:");
-
 
16143
      sb.append(this.promisedShippingTimestamp);
-
 
16144
      first = false;
-
 
16145
      if (!first) sb.append(", ");
-
 
16146
      sb.append("quantity:");
-
 
16147
      sb.append(this.quantity);
-
 
16148
      first = false;
-
 
16149
      sb.append(")");
-
 
16150
      return sb.toString();
-
 
16151
    }
-
 
16152
 
-
 
16153
    public void validate() throws org.apache.thrift.TException {
-
 
16154
      // check for required fields
-
 
16155
    }
-
 
16156
 
-
 
16157
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
16158
      try {
-
 
16159
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
16160
      } catch (org.apache.thrift.TException te) {
-
 
16161
        throw new java.io.IOException(te);
-
 
16162
      }
-
 
16163
    }
-
 
16164
 
-
 
16165
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
16166
      try {
-
 
16167
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
16168
        __isset_bit_vector = new BitSet(1);
-
 
16169
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
16170
      } catch (org.apache.thrift.TException te) {
-
 
16171
        throw new java.io.IOException(te);
-
 
16172
      }
-
 
16173
    }
-
 
16174
 
-
 
16175
  }
-
 
16176
 
-
 
16177
  public static class updateReservationForOrder_result implements org.apache.thrift.TBase<updateReservationForOrder_result, updateReservationForOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
16178
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateReservationForOrder_result");
-
 
16179
 
-
 
16180
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
16181
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
16182
 
-
 
16183
    private boolean success; // required
-
 
16184
    private InventoryServiceException cex; // required
-
 
16185
 
-
 
16186
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16187
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
16188
      SUCCESS((short)0, "success"),
-
 
16189
      CEX((short)1, "cex");
-
 
16190
 
-
 
16191
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16192
 
-
 
16193
      static {
-
 
16194
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16195
          byName.put(field.getFieldName(), field);
-
 
16196
        }
-
 
16197
      }
-
 
16198
 
-
 
16199
      /**
-
 
16200
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16201
       */
-
 
16202
      public static _Fields findByThriftId(int fieldId) {
-
 
16203
        switch(fieldId) {
-
 
16204
          case 0: // SUCCESS
-
 
16205
            return SUCCESS;
-
 
16206
          case 1: // CEX
-
 
16207
            return CEX;
-
 
16208
          default:
-
 
16209
            return null;
-
 
16210
        }
-
 
16211
      }
-
 
16212
 
-
 
16213
      /**
-
 
16214
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16215
       * if it is not found.
-
 
16216
       */
-
 
16217
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16218
        _Fields fields = findByThriftId(fieldId);
-
 
16219
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16220
        return fields;
-
 
16221
      }
-
 
16222
 
-
 
16223
      /**
-
 
16224
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16225
       */
-
 
16226
      public static _Fields findByName(String name) {
-
 
16227
        return byName.get(name);
-
 
16228
      }
-
 
16229
 
-
 
16230
      private final short _thriftId;
-
 
16231
      private final String _fieldName;
-
 
16232
 
-
 
16233
      _Fields(short thriftId, String fieldName) {
-
 
16234
        _thriftId = thriftId;
-
 
16235
        _fieldName = fieldName;
-
 
16236
      }
-
 
16237
 
-
 
16238
      public short getThriftFieldId() {
-
 
16239
        return _thriftId;
-
 
16240
      }
-
 
16241
 
-
 
16242
      public String getFieldName() {
-
 
16243
        return _fieldName;
-
 
16244
      }
-
 
16245
    }
-
 
16246
 
-
 
16247
    // isset id assignments
-
 
16248
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
16249
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
16250
 
-
 
16251
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
16252
    static {
-
 
16253
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
16254
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
16255
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
16256
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
16257
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
16258
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
16259
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateReservationForOrder_result.class, metaDataMap);
-
 
16260
    }
-
 
16261
 
-
 
16262
    public updateReservationForOrder_result() {
-
 
16263
    }
-
 
16264
 
-
 
16265
    public updateReservationForOrder_result(
-
 
16266
      boolean success,
-
 
16267
      InventoryServiceException cex)
-
 
16268
    {
-
 
16269
      this();
-
 
16270
      this.success = success;
-
 
16271
      setSuccessIsSet(true);
-
 
16272
      this.cex = cex;
-
 
16273
    }
-
 
16274
 
-
 
16275
    /**
-
 
16276
     * Performs a deep copy on <i>other</i>.
-
 
16277
     */
-
 
16278
    public updateReservationForOrder_result(updateReservationForOrder_result other) {
-
 
16279
      __isset_bit_vector.clear();
-
 
16280
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
16281
      this.success = other.success;
-
 
16282
      if (other.isSetCex()) {
-
 
16283
        this.cex = new InventoryServiceException(other.cex);
-
 
16284
      }
-
 
16285
    }
-
 
16286
 
-
 
16287
    public updateReservationForOrder_result deepCopy() {
-
 
16288
      return new updateReservationForOrder_result(this);
-
 
16289
    }
-
 
16290
 
-
 
16291
    @Override
-
 
16292
    public void clear() {
-
 
16293
      setSuccessIsSet(false);
-
 
16294
      this.success = false;
-
 
16295
      this.cex = null;
-
 
16296
    }
-
 
16297
 
-
 
16298
    public boolean isSuccess() {
-
 
16299
      return this.success;
-
 
16300
    }
-
 
16301
 
-
 
16302
    public void setSuccess(boolean success) {
-
 
16303
      this.success = success;
-
 
16304
      setSuccessIsSet(true);
-
 
16305
    }
-
 
16306
 
-
 
16307
    public void unsetSuccess() {
-
 
16308
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
16309
    }
-
 
16310
 
-
 
16311
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
16312
    public boolean isSetSuccess() {
-
 
16313
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
16314
    }
-
 
16315
 
-
 
16316
    public void setSuccessIsSet(boolean value) {
-
 
16317
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
16318
    }
-
 
16319
 
-
 
16320
    public InventoryServiceException getCex() {
-
 
16321
      return this.cex;
-
 
16322
    }
-
 
16323
 
-
 
16324
    public void setCex(InventoryServiceException cex) {
-
 
16325
      this.cex = cex;
-
 
16326
    }
-
 
16327
 
-
 
16328
    public void unsetCex() {
-
 
16329
      this.cex = null;
-
 
16330
    }
-
 
16331
 
-
 
16332
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
16333
    public boolean isSetCex() {
-
 
16334
      return this.cex != null;
-
 
16335
    }
-
 
16336
 
-
 
16337
    public void setCexIsSet(boolean value) {
-
 
16338
      if (!value) {
-
 
16339
        this.cex = null;
-
 
16340
      }
-
 
16341
    }
-
 
16342
 
-
 
16343
    public void setFieldValue(_Fields field, Object value) {
-
 
16344
      switch (field) {
-
 
16345
      case SUCCESS:
-
 
16346
        if (value == null) {
-
 
16347
          unsetSuccess();
-
 
16348
        } else {
-
 
16349
          setSuccess((Boolean)value);
-
 
16350
        }
-
 
16351
        break;
-
 
16352
 
-
 
16353
      case CEX:
-
 
16354
        if (value == null) {
-
 
16355
          unsetCex();
-
 
16356
        } else {
-
 
16357
          setCex((InventoryServiceException)value);
-
 
16358
        }
-
 
16359
        break;
-
 
16360
 
-
 
16361
      }
-
 
16362
    }
-
 
16363
 
-
 
16364
    public Object getFieldValue(_Fields field) {
-
 
16365
      switch (field) {
-
 
16366
      case SUCCESS:
-
 
16367
        return Boolean.valueOf(isSuccess());
-
 
16368
 
-
 
16369
      case CEX:
-
 
16370
        return getCex();
-
 
16371
 
-
 
16372
      }
-
 
16373
      throw new IllegalStateException();
-
 
16374
    }
-
 
16375
 
-
 
16376
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
16377
    public boolean isSet(_Fields field) {
-
 
16378
      if (field == null) {
-
 
16379
        throw new IllegalArgumentException();
-
 
16380
      }
-
 
16381
 
-
 
16382
      switch (field) {
-
 
16383
      case SUCCESS:
-
 
16384
        return isSetSuccess();
-
 
16385
      case CEX:
-
 
16386
        return isSetCex();
-
 
16387
      }
-
 
16388
      throw new IllegalStateException();
-
 
16389
    }
-
 
16390
 
-
 
16391
    @Override
-
 
16392
    public boolean equals(Object that) {
-
 
16393
      if (that == null)
-
 
16394
        return false;
-
 
16395
      if (that instanceof updateReservationForOrder_result)
-
 
16396
        return this.equals((updateReservationForOrder_result)that);
-
 
16397
      return false;
-
 
16398
    }
-
 
16399
 
-
 
16400
    public boolean equals(updateReservationForOrder_result that) {
-
 
16401
      if (that == null)
-
 
16402
        return false;
-
 
16403
 
-
 
16404
      boolean this_present_success = true;
-
 
16405
      boolean that_present_success = true;
-
 
16406
      if (this_present_success || that_present_success) {
-
 
16407
        if (!(this_present_success && that_present_success))
-
 
16408
          return false;
-
 
16409
        if (this.success != that.success)
-
 
16410
          return false;
-
 
16411
      }
-
 
16412
 
-
 
16413
      boolean this_present_cex = true && this.isSetCex();
-
 
16414
      boolean that_present_cex = true && that.isSetCex();
-
 
16415
      if (this_present_cex || that_present_cex) {
-
 
16416
        if (!(this_present_cex && that_present_cex))
-
 
16417
          return false;
-
 
16418
        if (!this.cex.equals(that.cex))
-
 
16419
          return false;
-
 
16420
      }
-
 
16421
 
-
 
16422
      return true;
-
 
16423
    }
-
 
16424
 
-
 
16425
    @Override
-
 
16426
    public int hashCode() {
-
 
16427
      return 0;
-
 
16428
    }
-
 
16429
 
-
 
16430
    public int compareTo(updateReservationForOrder_result other) {
-
 
16431
      if (!getClass().equals(other.getClass())) {
-
 
16432
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16433
      }
-
 
16434
 
-
 
16435
      int lastComparison = 0;
-
 
16436
      updateReservationForOrder_result typedOther = (updateReservationForOrder_result)other;
-
 
16437
 
-
 
16438
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
16439
      if (lastComparison != 0) {
-
 
16440
        return lastComparison;
-
 
16441
      }
-
 
16442
      if (isSetSuccess()) {
-
 
16443
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
16444
        if (lastComparison != 0) {
-
 
16445
          return lastComparison;
-
 
16446
        }
-
 
16447
      }
-
 
16448
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
16449
      if (lastComparison != 0) {
-
 
16450
        return lastComparison;
-
 
16451
      }
-
 
16452
      if (isSetCex()) {
-
 
16453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
16454
        if (lastComparison != 0) {
-
 
16455
          return lastComparison;
-
 
16456
        }
-
 
16457
      }
-
 
16458
      return 0;
-
 
16459
    }
-
 
16460
 
-
 
16461
    public _Fields fieldForId(int fieldId) {
-
 
16462
      return _Fields.findByThriftId(fieldId);
-
 
16463
    }
-
 
16464
 
-
 
16465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
16466
      org.apache.thrift.protocol.TField field;
-
 
16467
      iprot.readStructBegin();
-
 
16468
      while (true)
-
 
16469
      {
-
 
16470
        field = iprot.readFieldBegin();
-
 
16471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
16472
          break;
-
 
16473
        }
-
 
16474
        switch (field.id) {
-
 
16475
          case 0: // SUCCESS
-
 
16476
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
16477
              this.success = iprot.readBool();
-
 
16478
              setSuccessIsSet(true);
-
 
16479
            } else { 
-
 
16480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16481
            }
-
 
16482
            break;
-
 
16483
          case 1: // CEX
-
 
16484
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
16485
              this.cex = new InventoryServiceException();
-
 
16486
              this.cex.read(iprot);
-
 
16487
            } else { 
-
 
16488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16489
            }
-
 
16490
            break;
-
 
16491
          default:
-
 
16492
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16493
        }
-
 
16494
        iprot.readFieldEnd();
-
 
16495
      }
-
 
16496
      iprot.readStructEnd();
-
 
16497
      validate();
-
 
16498
    }
-
 
16499
 
-
 
16500
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
16501
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16502
 
-
 
16503
      if (this.isSetSuccess()) {
-
 
16504
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
16505
        oprot.writeBool(this.success);
-
 
16506
        oprot.writeFieldEnd();
-
 
16507
      } else if (this.isSetCex()) {
-
 
16508
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
16509
        this.cex.write(oprot);
-
 
16510
        oprot.writeFieldEnd();
-
 
16511
      }
-
 
16512
      oprot.writeFieldStop();
-
 
16513
      oprot.writeStructEnd();
-
 
16514
    }
-
 
16515
 
-
 
16516
    @Override
-
 
16517
    public String toString() {
-
 
16518
      StringBuilder sb = new StringBuilder("updateReservationForOrder_result(");
-
 
16519
      boolean first = true;
-
 
16520
 
-
 
16521
      sb.append("success:");
-
 
16522
      sb.append(this.success);
-
 
16523
      first = false;
-
 
16524
      if (!first) sb.append(", ");
-
 
16525
      sb.append("cex:");
-
 
16526
      if (this.cex == null) {
-
 
16527
        sb.append("null");
-
 
16528
      } else {
-
 
16529
        sb.append(this.cex);
-
 
16530
      }
-
 
16531
      first = false;
-
 
16532
      sb.append(")");
-
 
16533
      return sb.toString();
-
 
16534
    }
-
 
16535
 
-
 
16536
    public void validate() throws org.apache.thrift.TException {
-
 
16537
      // check for required fields
-
 
16538
    }
-
 
16539
 
-
 
16540
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
16541
      try {
-
 
16542
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
16543
      } catch (org.apache.thrift.TException te) {
-
 
16544
        throw new java.io.IOException(te);
-
 
16545
      }
-
 
16546
    }
-
 
16547
 
-
 
16548
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
16549
      try {
-
 
16550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
16551
      } catch (org.apache.thrift.TException te) {
-
 
16552
        throw new java.io.IOException(te);
-
 
16553
      }
-
 
16554
    }
-
 
16555
 
-
 
16556
  }
-
 
16557
 
15266
  public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable   {
16558
  public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable   {
15267
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
16559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
15268
 
16560
 
15269
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
16561
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
15270
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
16562
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
Line 26096... Line 27388...
26096
      }
27388
      }
26097
    }
27389
    }
26098
 
27390
 
26099
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27391
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26100
      try {
27392
      try {
26101
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
26102
        __isset_bit_vector = new BitSet(1);
-
 
26103
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27393
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26104
      } catch (org.apache.thrift.TException te) {
27394
      } catch (org.apache.thrift.TException te) {
26105
        throw new java.io.IOException(te);
27395
        throw new java.io.IOException(te);
26106
      }
27396
      }
26107
    }
27397
    }
Line 27746... Line 29036...
27746
      }
29036
      }
27747
    }
29037
    }
27748
 
29038
 
27749
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29039
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27750
      try {
29040
      try {
27751
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
27752
        __isset_bit_vector = new BitSet(1);
-
 
27753
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29041
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27754
      } catch (org.apache.thrift.TException te) {
29042
      } catch (org.apache.thrift.TException te) {
27755
        throw new java.io.IOException(te);
29043
        throw new java.io.IOException(te);
27756
      }
29044
      }
27757
    }
29045
    }