Subversion Repositories SmartDukaan

Rev

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

Rev 8282 Rev 8303
Line 46... Line 46...
46
     * 
46
     * 
47
     * @param statuses
47
     * @param statuses
48
     * @param offset
48
     * @param offset
49
     * @param limit
49
     * @param limit
50
     * @param warehouse_id
50
     * @param warehouse_id
-
 
51
     * @param source
51
     */
52
     */
52
    public List<Order> getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;
53
    public List<Order> getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source) throws TransactionServiceException, org.apache.thrift.TException;
53
 
54
 
54
    /**
55
    /**
55
     * Returns the count of orders with the given statuses assigned to the given warehouse.
56
     * Returns the count of orders with the given statuses assigned to the given warehouse.
56
     * 
57
     * 
57
     * @param statuses
58
     * @param statuses
58
     * @param warehouseId
59
     * @param warehouseId
-
 
60
     * @param source
59
     */
61
     */
60
    public int getOrderCount(List<OrderStatus> statuses, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
62
    public int getOrderCount(List<OrderStatus> statuses, long warehouseId, long source) throws TransactionServiceException, org.apache.thrift.TException;
61
 
63
 
62
    /**
64
    /**
63
     * Returns orders within a range of their billing dates
65
     * Returns orders within a range of their billing dates
64
     * 
66
     * 
65
     * @param status
67
     * @param status
Line 1051... Line 1053...
1051
 
1053
 
1052
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;
1054
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;
1053
 
1055
 
1054
    public void getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllOrders_call> resultHandler) throws org.apache.thrift.TException;
1056
    public void getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllOrders_call> resultHandler) throws org.apache.thrift.TException;
1055
 
1057
 
1056
    public void getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersInBatch_call> resultHandler) throws org.apache.thrift.TException;
1058
    public void getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersInBatch_call> resultHandler) throws org.apache.thrift.TException;
1057
 
1059
 
1058
    public void getOrderCount(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderCount_call> resultHandler) throws org.apache.thrift.TException;
1060
    public void getOrderCount(List<OrderStatus> statuses, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderCount_call> resultHandler) throws org.apache.thrift.TException;
1059
 
1061
 
1060
    public void getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByBillingDate_call> resultHandler) throws org.apache.thrift.TException;
1062
    public void getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByBillingDate_call> resultHandler) throws org.apache.thrift.TException;
1061
 
1063
 
1062
    public void getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByShippingDate_call> resultHandler) throws org.apache.thrift.TException;
1064
    public void getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByShippingDate_call> resultHandler) throws org.apache.thrift.TException;
1063
 
1065
 
Line 1692... Line 1694...
1692
        throw result.ex;
1694
        throw result.ex;
1693
      }
1695
      }
1694
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
1696
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
1695
    }
1697
    }
1696
 
1698
 
1697
    public List<Order> getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException
1699
    public List<Order> getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source) throws TransactionServiceException, org.apache.thrift.TException
1698
    {
1700
    {
1699
      send_getOrdersInBatch(statuses, offset, limit, warehouse_id);
1701
      send_getOrdersInBatch(statuses, offset, limit, warehouse_id, source);
1700
      return recv_getOrdersInBatch();
1702
      return recv_getOrdersInBatch();
1701
    }
1703
    }
1702
 
1704
 
1703
    public void send_getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws org.apache.thrift.TException
1705
    public void send_getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source) throws org.apache.thrift.TException
1704
    {
1706
    {
1705
      getOrdersInBatch_args args = new getOrdersInBatch_args();
1707
      getOrdersInBatch_args args = new getOrdersInBatch_args();
1706
      args.setStatuses(statuses);
1708
      args.setStatuses(statuses);
1707
      args.setOffset(offset);
1709
      args.setOffset(offset);
1708
      args.setLimit(limit);
1710
      args.setLimit(limit);
1709
      args.setWarehouse_id(warehouse_id);
1711
      args.setWarehouse_id(warehouse_id);
-
 
1712
      args.setSource(source);
1710
      sendBase("getOrdersInBatch", args);
1713
      sendBase("getOrdersInBatch", args);
1711
    }
1714
    }
1712
 
1715
 
1713
    public List<Order> recv_getOrdersInBatch() throws TransactionServiceException, org.apache.thrift.TException
1716
    public List<Order> recv_getOrdersInBatch() throws TransactionServiceException, org.apache.thrift.TException
1714
    {
1717
    {
Line 1721... Line 1724...
1721
        throw result.ex;
1724
        throw result.ex;
1722
      }
1725
      }
1723
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersInBatch failed: unknown result");
1726
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersInBatch failed: unknown result");
1724
    }
1727
    }
1725
 
1728
 
1726
    public int getOrderCount(List<OrderStatus> statuses, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException
1729
    public int getOrderCount(List<OrderStatus> statuses, long warehouseId, long source) throws TransactionServiceException, org.apache.thrift.TException
1727
    {
1730
    {
1728
      send_getOrderCount(statuses, warehouseId);
1731
      send_getOrderCount(statuses, warehouseId, source);
1729
      return recv_getOrderCount();
1732
      return recv_getOrderCount();
1730
    }
1733
    }
1731
 
1734
 
1732
    public void send_getOrderCount(List<OrderStatus> statuses, long warehouseId) throws org.apache.thrift.TException
1735
    public void send_getOrderCount(List<OrderStatus> statuses, long warehouseId, long source) throws org.apache.thrift.TException
1733
    {
1736
    {
1734
      getOrderCount_args args = new getOrderCount_args();
1737
      getOrderCount_args args = new getOrderCount_args();
1735
      args.setStatuses(statuses);
1738
      args.setStatuses(statuses);
1736
      args.setWarehouseId(warehouseId);
1739
      args.setWarehouseId(warehouseId);
-
 
1740
      args.setSource(source);
1737
      sendBase("getOrderCount", args);
1741
      sendBase("getOrderCount", args);
1738
    }
1742
    }
1739
 
1743
 
1740
    public int recv_getOrderCount() throws TransactionServiceException, org.apache.thrift.TException
1744
    public int recv_getOrderCount() throws TransactionServiceException, org.apache.thrift.TException
1741
    {
1745
    {
Line 6927... Line 6931...
6927
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6931
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6928
        return (new Client(prot)).recv_getAllOrders();
6932
        return (new Client(prot)).recv_getAllOrders();
6929
      }
6933
      }
6930
    }
6934
    }
6931
 
6935
 
6932
    public void getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersInBatch_call> resultHandler) throws org.apache.thrift.TException {
6936
    public void getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<getOrdersInBatch_call> resultHandler) throws org.apache.thrift.TException {
6933
      checkReady();
6937
      checkReady();
6934
      getOrdersInBatch_call method_call = new getOrdersInBatch_call(statuses, offset, limit, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
6938
      getOrdersInBatch_call method_call = new getOrdersInBatch_call(statuses, offset, limit, warehouse_id, source, resultHandler, this, ___protocolFactory, ___transport);
6935
      this.___currentMethod = method_call;
6939
      this.___currentMethod = method_call;
6936
      ___manager.call(method_call);
6940
      ___manager.call(method_call);
6937
    }
6941
    }
6938
 
6942
 
6939
    public static class getOrdersInBatch_call extends org.apache.thrift.async.TAsyncMethodCall {
6943
    public static class getOrdersInBatch_call extends org.apache.thrift.async.TAsyncMethodCall {
6940
      private List<OrderStatus> statuses;
6944
      private List<OrderStatus> statuses;
6941
      private long offset;
6945
      private long offset;
6942
      private long limit;
6946
      private long limit;
6943
      private long warehouse_id;
6947
      private long warehouse_id;
-
 
6948
      private long source;
6944
      public getOrdersInBatch_call(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersInBatch_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 {
6949
      public getOrdersInBatch_call(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<getOrdersInBatch_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 {
6945
        super(client, protocolFactory, transport, resultHandler, false);
6950
        super(client, protocolFactory, transport, resultHandler, false);
6946
        this.statuses = statuses;
6951
        this.statuses = statuses;
6947
        this.offset = offset;
6952
        this.offset = offset;
6948
        this.limit = limit;
6953
        this.limit = limit;
6949
        this.warehouse_id = warehouse_id;
6954
        this.warehouse_id = warehouse_id;
-
 
6955
        this.source = source;
6950
      }
6956
      }
6951
 
6957
 
6952
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
6958
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
6953
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersInBatch", org.apache.thrift.protocol.TMessageType.CALL, 0));
6959
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersInBatch", org.apache.thrift.protocol.TMessageType.CALL, 0));
6954
        getOrdersInBatch_args args = new getOrdersInBatch_args();
6960
        getOrdersInBatch_args args = new getOrdersInBatch_args();
6955
        args.setStatuses(statuses);
6961
        args.setStatuses(statuses);
6956
        args.setOffset(offset);
6962
        args.setOffset(offset);
6957
        args.setLimit(limit);
6963
        args.setLimit(limit);
6958
        args.setWarehouse_id(warehouse_id);
6964
        args.setWarehouse_id(warehouse_id);
-
 
6965
        args.setSource(source);
6959
        args.write(prot);
6966
        args.write(prot);
6960
        prot.writeMessageEnd();
6967
        prot.writeMessageEnd();
6961
      }
6968
      }
6962
 
6969
 
6963
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
6970
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
Line 6968... Line 6975...
6968
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6975
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6969
        return (new Client(prot)).recv_getOrdersInBatch();
6976
        return (new Client(prot)).recv_getOrdersInBatch();
6970
      }
6977
      }
6971
    }
6978
    }
6972
 
6979
 
6973
    public void getOrderCount(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getOrderCount_call> resultHandler) throws org.apache.thrift.TException {
6980
    public void getOrderCount(List<OrderStatus> statuses, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<getOrderCount_call> resultHandler) throws org.apache.thrift.TException {
6974
      checkReady();
6981
      checkReady();
6975
      getOrderCount_call method_call = new getOrderCount_call(statuses, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
6982
      getOrderCount_call method_call = new getOrderCount_call(statuses, warehouseId, source, resultHandler, this, ___protocolFactory, ___transport);
6976
      this.___currentMethod = method_call;
6983
      this.___currentMethod = method_call;
6977
      ___manager.call(method_call);
6984
      ___manager.call(method_call);
6978
    }
6985
    }
6979
 
6986
 
6980
    public static class getOrderCount_call extends org.apache.thrift.async.TAsyncMethodCall {
6987
    public static class getOrderCount_call extends org.apache.thrift.async.TAsyncMethodCall {
6981
      private List<OrderStatus> statuses;
6988
      private List<OrderStatus> statuses;
6982
      private long warehouseId;
6989
      private long warehouseId;
-
 
6990
      private long source;
6983
      public getOrderCount_call(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getOrderCount_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 {
6991
      public getOrderCount_call(List<OrderStatus> statuses, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<getOrderCount_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 {
6984
        super(client, protocolFactory, transport, resultHandler, false);
6992
        super(client, protocolFactory, transport, resultHandler, false);
6985
        this.statuses = statuses;
6993
        this.statuses = statuses;
6986
        this.warehouseId = warehouseId;
6994
        this.warehouseId = warehouseId;
-
 
6995
        this.source = source;
6987
      }
6996
      }
6988
 
6997
 
6989
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
6998
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
6990
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
6999
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
6991
        getOrderCount_args args = new getOrderCount_args();
7000
        getOrderCount_args args = new getOrderCount_args();
6992
        args.setStatuses(statuses);
7001
        args.setStatuses(statuses);
6993
        args.setWarehouseId(warehouseId);
7002
        args.setWarehouseId(warehouseId);
-
 
7003
        args.setSource(source);
6994
        args.write(prot);
7004
        args.write(prot);
6995
        prot.writeMessageEnd();
7005
        prot.writeMessageEnd();
6996
      }
7006
      }
6997
 
7007
 
6998
      public int getResult() throws TransactionServiceException, org.apache.thrift.TException {
7008
      public int getResult() throws TransactionServiceException, org.apache.thrift.TException {
Line 14269... Line 14279...
14269
      }
14279
      }
14270
 
14280
 
14271
      protected getOrdersInBatch_result getResult(I iface, getOrdersInBatch_args args) throws org.apache.thrift.TException {
14281
      protected getOrdersInBatch_result getResult(I iface, getOrdersInBatch_args args) throws org.apache.thrift.TException {
14272
        getOrdersInBatch_result result = new getOrdersInBatch_result();
14282
        getOrdersInBatch_result result = new getOrdersInBatch_result();
14273
        try {
14283
        try {
14274
          result.success = iface.getOrdersInBatch(args.statuses, args.offset, args.limit, args.warehouse_id);
14284
          result.success = iface.getOrdersInBatch(args.statuses, args.offset, args.limit, args.warehouse_id, args.source);
14275
        } catch (TransactionServiceException ex) {
14285
        } catch (TransactionServiceException ex) {
14276
          result.ex = ex;
14286
          result.ex = ex;
14277
        }
14287
        }
14278
        return result;
14288
        return result;
14279
      }
14289
      }
Line 14289... Line 14299...
14289
      }
14299
      }
14290
 
14300
 
14291
      protected getOrderCount_result getResult(I iface, getOrderCount_args args) throws org.apache.thrift.TException {
14301
      protected getOrderCount_result getResult(I iface, getOrderCount_args args) throws org.apache.thrift.TException {
14292
        getOrderCount_result result = new getOrderCount_result();
14302
        getOrderCount_result result = new getOrderCount_result();
14293
        try {
14303
        try {
14294
          result.success = iface.getOrderCount(args.statuses, args.warehouseId);
14304
          result.success = iface.getOrderCount(args.statuses, args.warehouseId, args.source);
14295
          result.setSuccessIsSet(true);
14305
          result.setSuccessIsSet(true);
14296
        } catch (TransactionServiceException ex) {
14306
        } catch (TransactionServiceException ex) {
14297
          result.ex = ex;
14307
          result.ex = ex;
14298
        }
14308
        }
14299
        return result;
14309
        return result;
Line 24436... Line 24446...
24436
 
24446
 
24437
    private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)1);
24447
    private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)1);
24438
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);
24448
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);
24439
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);
24449
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);
24440
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)4);
24450
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
24451
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)5);
24441
 
24452
 
24442
    private List<OrderStatus> statuses; // required
24453
    private List<OrderStatus> statuses; // required
24443
    private long offset; // required
24454
    private long offset; // required
24444
    private long limit; // required
24455
    private long limit; // required
24445
    private long warehouse_id; // required
24456
    private long warehouse_id; // required
-
 
24457
    private long source; // required
24446
 
24458
 
24447
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24459
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24448
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24460
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24449
      STATUSES((short)1, "statuses"),
24461
      STATUSES((short)1, "statuses"),
24450
      OFFSET((short)2, "offset"),
24462
      OFFSET((short)2, "offset"),
24451
      LIMIT((short)3, "limit"),
24463
      LIMIT((short)3, "limit"),
24452
      WAREHOUSE_ID((short)4, "warehouse_id");
24464
      WAREHOUSE_ID((short)4, "warehouse_id"),
-
 
24465
      SOURCE((short)5, "source");
24453
 
24466
 
24454
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24467
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24455
 
24468
 
24456
      static {
24469
      static {
24457
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24470
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 24470... Line 24483...
24470
            return OFFSET;
24483
            return OFFSET;
24471
          case 3: // LIMIT
24484
          case 3: // LIMIT
24472
            return LIMIT;
24485
            return LIMIT;
24473
          case 4: // WAREHOUSE_ID
24486
          case 4: // WAREHOUSE_ID
24474
            return WAREHOUSE_ID;
24487
            return WAREHOUSE_ID;
-
 
24488
          case 5: // SOURCE
-
 
24489
            return SOURCE;
24475
          default:
24490
          default:
24476
            return null;
24491
            return null;
24477
        }
24492
        }
24478
      }
24493
      }
24479
 
24494
 
Line 24513... Line 24528...
24513
 
24528
 
24514
    // isset id assignments
24529
    // isset id assignments
24515
    private static final int __OFFSET_ISSET_ID = 0;
24530
    private static final int __OFFSET_ISSET_ID = 0;
24516
    private static final int __LIMIT_ISSET_ID = 1;
24531
    private static final int __LIMIT_ISSET_ID = 1;
24517
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
24532
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
-
 
24533
    private static final int __SOURCE_ISSET_ID = 3;
24518
    private BitSet __isset_bit_vector = new BitSet(3);
24534
    private BitSet __isset_bit_vector = new BitSet(4);
24519
 
24535
 
24520
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24536
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24521
    static {
24537
    static {
24522
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24538
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24523
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24539
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 24527... Line 24543...
24527
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24543
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24528
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24544
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24529
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24545
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24530
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24546
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24531
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24547
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
24548
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
24549
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24532
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24550
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24533
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatch_args.class, metaDataMap);
24551
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatch_args.class, metaDataMap);
24534
    }
24552
    }
24535
 
24553
 
24536
    public getOrdersInBatch_args() {
24554
    public getOrdersInBatch_args() {
Line 24538... Line 24556...
24538
 
24556
 
24539
    public getOrdersInBatch_args(
24557
    public getOrdersInBatch_args(
24540
      List<OrderStatus> statuses,
24558
      List<OrderStatus> statuses,
24541
      long offset,
24559
      long offset,
24542
      long limit,
24560
      long limit,
24543
      long warehouse_id)
24561
      long warehouse_id,
-
 
24562
      long source)
24544
    {
24563
    {
24545
      this();
24564
      this();
24546
      this.statuses = statuses;
24565
      this.statuses = statuses;
24547
      this.offset = offset;
24566
      this.offset = offset;
24548
      setOffsetIsSet(true);
24567
      setOffsetIsSet(true);
24549
      this.limit = limit;
24568
      this.limit = limit;
24550
      setLimitIsSet(true);
24569
      setLimitIsSet(true);
24551
      this.warehouse_id = warehouse_id;
24570
      this.warehouse_id = warehouse_id;
24552
      setWarehouse_idIsSet(true);
24571
      setWarehouse_idIsSet(true);
-
 
24572
      this.source = source;
-
 
24573
      setSourceIsSet(true);
24553
    }
24574
    }
24554
 
24575
 
24555
    /**
24576
    /**
24556
     * Performs a deep copy on <i>other</i>.
24577
     * Performs a deep copy on <i>other</i>.
24557
     */
24578
     */
Line 24566... Line 24587...
24566
        this.statuses = __this__statuses;
24587
        this.statuses = __this__statuses;
24567
      }
24588
      }
24568
      this.offset = other.offset;
24589
      this.offset = other.offset;
24569
      this.limit = other.limit;
24590
      this.limit = other.limit;
24570
      this.warehouse_id = other.warehouse_id;
24591
      this.warehouse_id = other.warehouse_id;
-
 
24592
      this.source = other.source;
24571
    }
24593
    }
24572
 
24594
 
24573
    public getOrdersInBatch_args deepCopy() {
24595
    public getOrdersInBatch_args deepCopy() {
24574
      return new getOrdersInBatch_args(this);
24596
      return new getOrdersInBatch_args(this);
24575
    }
24597
    }
Line 24581... Line 24603...
24581
      this.offset = 0;
24603
      this.offset = 0;
24582
      setLimitIsSet(false);
24604
      setLimitIsSet(false);
24583
      this.limit = 0;
24605
      this.limit = 0;
24584
      setWarehouse_idIsSet(false);
24606
      setWarehouse_idIsSet(false);
24585
      this.warehouse_id = 0;
24607
      this.warehouse_id = 0;
-
 
24608
      setSourceIsSet(false);
-
 
24609
      this.source = 0;
24586
    }
24610
    }
24587
 
24611
 
24588
    public int getStatusesSize() {
24612
    public int getStatusesSize() {
24589
      return (this.statuses == null) ? 0 : this.statuses.size();
24613
      return (this.statuses == null) ? 0 : this.statuses.size();
24590
    }
24614
    }
Line 24687... Line 24711...
24687
 
24711
 
24688
    public void setWarehouse_idIsSet(boolean value) {
24712
    public void setWarehouse_idIsSet(boolean value) {
24689
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
24713
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
24690
    }
24714
    }
24691
 
24715
 
-
 
24716
    public long getSource() {
-
 
24717
      return this.source;
-
 
24718
    }
-
 
24719
 
-
 
24720
    public void setSource(long source) {
-
 
24721
      this.source = source;
-
 
24722
      setSourceIsSet(true);
-
 
24723
    }
-
 
24724
 
-
 
24725
    public void unsetSource() {
-
 
24726
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
24727
    }
-
 
24728
 
-
 
24729
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
24730
    public boolean isSetSource() {
-
 
24731
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
24732
    }
-
 
24733
 
-
 
24734
    public void setSourceIsSet(boolean value) {
-
 
24735
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
24736
    }
-
 
24737
 
24692
    public void setFieldValue(_Fields field, Object value) {
24738
    public void setFieldValue(_Fields field, Object value) {
24693
      switch (field) {
24739
      switch (field) {
24694
      case STATUSES:
24740
      case STATUSES:
24695
        if (value == null) {
24741
        if (value == null) {
24696
          unsetStatuses();
24742
          unsetStatuses();
Line 24721... Line 24767...
24721
        } else {
24767
        } else {
24722
          setWarehouse_id((Long)value);
24768
          setWarehouse_id((Long)value);
24723
        }
24769
        }
24724
        break;
24770
        break;
24725
 
24771
 
-
 
24772
      case SOURCE:
-
 
24773
        if (value == null) {
-
 
24774
          unsetSource();
-
 
24775
        } else {
-
 
24776
          setSource((Long)value);
-
 
24777
        }
-
 
24778
        break;
-
 
24779
 
24726
      }
24780
      }
24727
    }
24781
    }
24728
 
24782
 
24729
    public Object getFieldValue(_Fields field) {
24783
    public Object getFieldValue(_Fields field) {
24730
      switch (field) {
24784
      switch (field) {
Line 24738... Line 24792...
24738
        return Long.valueOf(getLimit());
24792
        return Long.valueOf(getLimit());
24739
 
24793
 
24740
      case WAREHOUSE_ID:
24794
      case WAREHOUSE_ID:
24741
        return Long.valueOf(getWarehouse_id());
24795
        return Long.valueOf(getWarehouse_id());
24742
 
24796
 
-
 
24797
      case SOURCE:
-
 
24798
        return Long.valueOf(getSource());
-
 
24799
 
24743
      }
24800
      }
24744
      throw new IllegalStateException();
24801
      throw new IllegalStateException();
24745
    }
24802
    }
24746
 
24803
 
24747
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24804
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 24757... Line 24814...
24757
        return isSetOffset();
24814
        return isSetOffset();
24758
      case LIMIT:
24815
      case LIMIT:
24759
        return isSetLimit();
24816
        return isSetLimit();
24760
      case WAREHOUSE_ID:
24817
      case WAREHOUSE_ID:
24761
        return isSetWarehouse_id();
24818
        return isSetWarehouse_id();
-
 
24819
      case SOURCE:
-
 
24820
        return isSetSource();
24762
      }
24821
      }
24763
      throw new IllegalStateException();
24822
      throw new IllegalStateException();
24764
    }
24823
    }
24765
 
24824
 
24766
    @Override
24825
    @Override
Line 24810... Line 24869...
24810
          return false;
24869
          return false;
24811
        if (this.warehouse_id != that.warehouse_id)
24870
        if (this.warehouse_id != that.warehouse_id)
24812
          return false;
24871
          return false;
24813
      }
24872
      }
24814
 
24873
 
-
 
24874
      boolean this_present_source = true;
-
 
24875
      boolean that_present_source = true;
-
 
24876
      if (this_present_source || that_present_source) {
-
 
24877
        if (!(this_present_source && that_present_source))
-
 
24878
          return false;
-
 
24879
        if (this.source != that.source)
-
 
24880
          return false;
-
 
24881
      }
-
 
24882
 
24815
      return true;
24883
      return true;
24816
    }
24884
    }
24817
 
24885
 
24818
    @Override
24886
    @Override
24819
    public int hashCode() {
24887
    public int hashCode() {
Line 24866... Line 24934...
24866
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
24934
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
24867
        if (lastComparison != 0) {
24935
        if (lastComparison != 0) {
24868
          return lastComparison;
24936
          return lastComparison;
24869
        }
24937
        }
24870
      }
24938
      }
-
 
24939
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
24940
      if (lastComparison != 0) {
-
 
24941
        return lastComparison;
-
 
24942
      }
-
 
24943
      if (isSetSource()) {
-
 
24944
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
24945
        if (lastComparison != 0) {
-
 
24946
          return lastComparison;
-
 
24947
        }
-
 
24948
      }
24871
      return 0;
24949
      return 0;
24872
    }
24950
    }
24873
 
24951
 
24874
    public _Fields fieldForId(int fieldId) {
24952
    public _Fields fieldForId(int fieldId) {
24875
      return _Fields.findByThriftId(fieldId);
24953
      return _Fields.findByThriftId(fieldId);
Line 24924... Line 25002...
24924
              setWarehouse_idIsSet(true);
25002
              setWarehouse_idIsSet(true);
24925
            } else { 
25003
            } else { 
24926
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24927
            }
25005
            }
24928
            break;
25006
            break;
-
 
25007
          case 5: // SOURCE
-
 
25008
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
25009
              this.source = iprot.readI64();
-
 
25010
              setSourceIsSet(true);
-
 
25011
            } else { 
-
 
25012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25013
            }
-
 
25014
            break;
24929
          default:
25015
          default:
24930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25016
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24931
        }
25017
        }
24932
        iprot.readFieldEnd();
25018
        iprot.readFieldEnd();
24933
      }
25019
      }
Line 24958... Line 25044...
24958
      oprot.writeI64(this.limit);
25044
      oprot.writeI64(this.limit);
24959
      oprot.writeFieldEnd();
25045
      oprot.writeFieldEnd();
24960
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
25046
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
24961
      oprot.writeI64(this.warehouse_id);
25047
      oprot.writeI64(this.warehouse_id);
24962
      oprot.writeFieldEnd();
25048
      oprot.writeFieldEnd();
-
 
25049
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
25050
      oprot.writeI64(this.source);
-
 
25051
      oprot.writeFieldEnd();
24963
      oprot.writeFieldStop();
25052
      oprot.writeFieldStop();
24964
      oprot.writeStructEnd();
25053
      oprot.writeStructEnd();
24965
    }
25054
    }
24966
 
25055
 
24967
    @Override
25056
    @Override
Line 24986... Line 25075...
24986
      first = false;
25075
      first = false;
24987
      if (!first) sb.append(", ");
25076
      if (!first) sb.append(", ");
24988
      sb.append("warehouse_id:");
25077
      sb.append("warehouse_id:");
24989
      sb.append(this.warehouse_id);
25078
      sb.append(this.warehouse_id);
24990
      first = false;
25079
      first = false;
-
 
25080
      if (!first) sb.append(", ");
-
 
25081
      sb.append("source:");
-
 
25082
      sb.append(this.source);
-
 
25083
      first = false;
24991
      sb.append(")");
25084
      sb.append(")");
24992
      return sb.toString();
25085
      return sb.toString();
24993
    }
25086
    }
24994
 
25087
 
24995
    public void validate() throws org.apache.thrift.TException {
25088
    public void validate() throws org.apache.thrift.TException {
Line 25436... Line 25529...
25436
  public static class getOrderCount_args implements org.apache.thrift.TBase<getOrderCount_args, getOrderCount_args._Fields>, java.io.Serializable, Cloneable   {
25529
  public static class getOrderCount_args implements org.apache.thrift.TBase<getOrderCount_args, getOrderCount_args._Fields>, java.io.Serializable, Cloneable   {
25437
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderCount_args");
25530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderCount_args");
25438
 
25531
 
25439
    private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)1);
25532
    private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)1);
25440
    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);
25533
    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);
-
 
25534
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)3);
25441
 
25535
 
25442
    private List<OrderStatus> statuses; // required
25536
    private List<OrderStatus> statuses; // required
25443
    private long warehouseId; // required
25537
    private long warehouseId; // required
-
 
25538
    private long source; // required
25444
 
25539
 
25445
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25540
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25446
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25541
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25447
      STATUSES((short)1, "statuses"),
25542
      STATUSES((short)1, "statuses"),
25448
      WAREHOUSE_ID((short)2, "warehouseId");
25543
      WAREHOUSE_ID((short)2, "warehouseId"),
-
 
25544
      SOURCE((short)3, "source");
25449
 
25545
 
25450
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25546
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25451
 
25547
 
25452
      static {
25548
      static {
25453
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25549
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 25462... Line 25558...
25462
        switch(fieldId) {
25558
        switch(fieldId) {
25463
          case 1: // STATUSES
25559
          case 1: // STATUSES
25464
            return STATUSES;
25560
            return STATUSES;
25465
          case 2: // WAREHOUSE_ID
25561
          case 2: // WAREHOUSE_ID
25466
            return WAREHOUSE_ID;
25562
            return WAREHOUSE_ID;
-
 
25563
          case 3: // SOURCE
-
 
25564
            return SOURCE;
25467
          default:
25565
          default:
25468
            return null;
25566
            return null;
25469
        }
25567
        }
25470
      }
25568
      }
25471
 
25569
 
Line 25503... Line 25601...
25503
      }
25601
      }
25504
    }
25602
    }
25505
 
25603
 
25506
    // isset id assignments
25604
    // isset id assignments
25507
    private static final int __WAREHOUSEID_ISSET_ID = 0;
25605
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
25606
    private static final int __SOURCE_ISSET_ID = 1;
25508
    private BitSet __isset_bit_vector = new BitSet(1);
25607
    private BitSet __isset_bit_vector = new BitSet(2);
25509
 
25608
 
25510
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25609
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25511
    static {
25610
    static {
25512
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25611
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25513
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25612
      tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25514
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25613
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25515
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
25614
              new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
25516
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25615
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25517
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25616
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
25617
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
25618
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25518
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25619
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25519
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderCount_args.class, metaDataMap);
25620
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderCount_args.class, metaDataMap);
25520
    }
25621
    }
25521
 
25622
 
25522
    public getOrderCount_args() {
25623
    public getOrderCount_args() {
25523
    }
25624
    }
25524
 
25625
 
25525
    public getOrderCount_args(
25626
    public getOrderCount_args(
25526
      List<OrderStatus> statuses,
25627
      List<OrderStatus> statuses,
25527
      long warehouseId)
25628
      long warehouseId,
-
 
25629
      long source)
25528
    {
25630
    {
25529
      this();
25631
      this();
25530
      this.statuses = statuses;
25632
      this.statuses = statuses;
25531
      this.warehouseId = warehouseId;
25633
      this.warehouseId = warehouseId;
25532
      setWarehouseIdIsSet(true);
25634
      setWarehouseIdIsSet(true);
-
 
25635
      this.source = source;
-
 
25636
      setSourceIsSet(true);
25533
    }
25637
    }
25534
 
25638
 
25535
    /**
25639
    /**
25536
     * Performs a deep copy on <i>other</i>.
25640
     * Performs a deep copy on <i>other</i>.
25537
     */
25641
     */
Line 25544... Line 25648...
25544
          __this__statuses.add(other_element);
25648
          __this__statuses.add(other_element);
25545
        }
25649
        }
25546
        this.statuses = __this__statuses;
25650
        this.statuses = __this__statuses;
25547
      }
25651
      }
25548
      this.warehouseId = other.warehouseId;
25652
      this.warehouseId = other.warehouseId;
-
 
25653
      this.source = other.source;
25549
    }
25654
    }
25550
 
25655
 
25551
    public getOrderCount_args deepCopy() {
25656
    public getOrderCount_args deepCopy() {
25552
      return new getOrderCount_args(this);
25657
      return new getOrderCount_args(this);
25553
    }
25658
    }
Line 25555... Line 25660...
25555
    @Override
25660
    @Override
25556
    public void clear() {
25661
    public void clear() {
25557
      this.statuses = null;
25662
      this.statuses = null;
25558
      setWarehouseIdIsSet(false);
25663
      setWarehouseIdIsSet(false);
25559
      this.warehouseId = 0;
25664
      this.warehouseId = 0;
-
 
25665
      setSourceIsSet(false);
-
 
25666
      this.source = 0;
25560
    }
25667
    }
25561
 
25668
 
25562
    public int getStatusesSize() {
25669
    public int getStatusesSize() {
25563
      return (this.statuses == null) ? 0 : this.statuses.size();
25670
      return (this.statuses == null) ? 0 : this.statuses.size();
25564
    }
25671
    }
Line 25617... Line 25724...
25617
 
25724
 
25618
    public void setWarehouseIdIsSet(boolean value) {
25725
    public void setWarehouseIdIsSet(boolean value) {
25619
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
25726
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
25620
    }
25727
    }
25621
 
25728
 
-
 
25729
    public long getSource() {
-
 
25730
      return this.source;
-
 
25731
    }
-
 
25732
 
-
 
25733
    public void setSource(long source) {
-
 
25734
      this.source = source;
-
 
25735
      setSourceIsSet(true);
-
 
25736
    }
-
 
25737
 
-
 
25738
    public void unsetSource() {
-
 
25739
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
25740
    }
-
 
25741
 
-
 
25742
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
25743
    public boolean isSetSource() {
-
 
25744
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
25745
    }
-
 
25746
 
-
 
25747
    public void setSourceIsSet(boolean value) {
-
 
25748
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
25749
    }
-
 
25750
 
25622
    public void setFieldValue(_Fields field, Object value) {
25751
    public void setFieldValue(_Fields field, Object value) {
25623
      switch (field) {
25752
      switch (field) {
25624
      case STATUSES:
25753
      case STATUSES:
25625
        if (value == null) {
25754
        if (value == null) {
25626
          unsetStatuses();
25755
          unsetStatuses();
Line 25635... Line 25764...
25635
        } else {
25764
        } else {
25636
          setWarehouseId((Long)value);
25765
          setWarehouseId((Long)value);
25637
        }
25766
        }
25638
        break;
25767
        break;
25639
 
25768
 
-
 
25769
      case SOURCE:
-
 
25770
        if (value == null) {
-
 
25771
          unsetSource();
-
 
25772
        } else {
-
 
25773
          setSource((Long)value);
-
 
25774
        }
-
 
25775
        break;
-
 
25776
 
25640
      }
25777
      }
25641
    }
25778
    }
25642
 
25779
 
25643
    public Object getFieldValue(_Fields field) {
25780
    public Object getFieldValue(_Fields field) {
25644
      switch (field) {
25781
      switch (field) {
Line 25646... Line 25783...
25646
        return getStatuses();
25783
        return getStatuses();
25647
 
25784
 
25648
      case WAREHOUSE_ID:
25785
      case WAREHOUSE_ID:
25649
        return Long.valueOf(getWarehouseId());
25786
        return Long.valueOf(getWarehouseId());
25650
 
25787
 
-
 
25788
      case SOURCE:
-
 
25789
        return Long.valueOf(getSource());
-
 
25790
 
25651
      }
25791
      }
25652
      throw new IllegalStateException();
25792
      throw new IllegalStateException();
25653
    }
25793
    }
25654
 
25794
 
25655
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25795
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 25661... Line 25801...
25661
      switch (field) {
25801
      switch (field) {
25662
      case STATUSES:
25802
      case STATUSES:
25663
        return isSetStatuses();
25803
        return isSetStatuses();
25664
      case WAREHOUSE_ID:
25804
      case WAREHOUSE_ID:
25665
        return isSetWarehouseId();
25805
        return isSetWarehouseId();
-
 
25806
      case SOURCE:
-
 
25807
        return isSetSource();
25666
      }
25808
      }
25667
      throw new IllegalStateException();
25809
      throw new IllegalStateException();
25668
    }
25810
    }
25669
 
25811
 
25670
    @Override
25812
    @Override
Line 25696... Line 25838...
25696
          return false;
25838
          return false;
25697
        if (this.warehouseId != that.warehouseId)
25839
        if (this.warehouseId != that.warehouseId)
25698
          return false;
25840
          return false;
25699
      }
25841
      }
25700
 
25842
 
-
 
25843
      boolean this_present_source = true;
-
 
25844
      boolean that_present_source = true;
-
 
25845
      if (this_present_source || that_present_source) {
-
 
25846
        if (!(this_present_source && that_present_source))
-
 
25847
          return false;
-
 
25848
        if (this.source != that.source)
-
 
25849
          return false;
-
 
25850
      }
-
 
25851
 
25701
      return true;
25852
      return true;
25702
    }
25853
    }
25703
 
25854
 
25704
    @Override
25855
    @Override
25705
    public int hashCode() {
25856
    public int hashCode() {
Line 25732... Line 25883...
25732
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
25883
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
25733
        if (lastComparison != 0) {
25884
        if (lastComparison != 0) {
25734
          return lastComparison;
25885
          return lastComparison;
25735
        }
25886
        }
25736
      }
25887
      }
-
 
25888
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
25889
      if (lastComparison != 0) {
-
 
25890
        return lastComparison;
-
 
25891
      }
-
 
25892
      if (isSetSource()) {
-
 
25893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
25894
        if (lastComparison != 0) {
-
 
25895
          return lastComparison;
-
 
25896
        }
-
 
25897
      }
25737
      return 0;
25898
      return 0;
25738
    }
25899
    }
25739
 
25900
 
25740
    public _Fields fieldForId(int fieldId) {
25901
    public _Fields fieldForId(int fieldId) {
25741
      return _Fields.findByThriftId(fieldId);
25902
      return _Fields.findByThriftId(fieldId);
Line 25774... Line 25935...
25774
              setWarehouseIdIsSet(true);
25935
              setWarehouseIdIsSet(true);
25775
            } else { 
25936
            } else { 
25776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25937
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25777
            }
25938
            }
25778
            break;
25939
            break;
-
 
25940
          case 3: // SOURCE
-
 
25941
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
25942
              this.source = iprot.readI64();
-
 
25943
              setSourceIsSet(true);
-
 
25944
            } else { 
-
 
25945
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
25946
            }
-
 
25947
            break;
25779
          default:
25948
          default:
25780
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25949
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25781
        }
25950
        }
25782
        iprot.readFieldEnd();
25951
        iprot.readFieldEnd();
25783
      }
25952
      }
Line 25802... Line 25971...
25802
        oprot.writeFieldEnd();
25971
        oprot.writeFieldEnd();
25803
      }
25972
      }
25804
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
25973
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
25805
      oprot.writeI64(this.warehouseId);
25974
      oprot.writeI64(this.warehouseId);
25806
      oprot.writeFieldEnd();
25975
      oprot.writeFieldEnd();
-
 
25976
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
25977
      oprot.writeI64(this.source);
-
 
25978
      oprot.writeFieldEnd();
25807
      oprot.writeFieldStop();
25979
      oprot.writeFieldStop();
25808
      oprot.writeStructEnd();
25980
      oprot.writeStructEnd();
25809
    }
25981
    }
25810
 
25982
 
25811
    @Override
25983
    @Override
Line 25822... Line 25994...
25822
      first = false;
25994
      first = false;
25823
      if (!first) sb.append(", ");
25995
      if (!first) sb.append(", ");
25824
      sb.append("warehouseId:");
25996
      sb.append("warehouseId:");
25825
      sb.append(this.warehouseId);
25997
      sb.append(this.warehouseId);
25826
      first = false;
25998
      first = false;
-
 
25999
      if (!first) sb.append(", ");
-
 
26000
      sb.append("source:");
-
 
26001
      sb.append(this.source);
-
 
26002
      first = false;
25827
      sb.append(")");
26003
      sb.append(")");
25828
      return sb.toString();
26004
      return sb.toString();
25829
    }
26005
    }
25830
 
26006
 
25831
    public void validate() throws org.apache.thrift.TException {
26007
    public void validate() throws org.apache.thrift.TException {