Subversion Repositories SmartDukaan

Rev

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

Rev 5496 Rev 5530
Line 32... Line 32...
32
    public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException;
32
    public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException;
33
 
33
 
34
    /**
34
    /**
35
     * Retrieves non-serialized inventory item from a given supplier
35
     * Retrieves non-serialized inventory item from a given supplier
36
     * 
36
     * 
-
 
37
     * @param itemNumber
37
     * @param itemId
38
     * @param itemId
38
     * @param warehouseId
-
 
39
     */
-
 
40
    public InventoryItem getNonSeralizedInventoryItem(long itemId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
41
 
-
 
42
    /**
-
 
43
     * Scan serialized items.
-
 
44
     * 
-
 
45
     * @param inventoryItem
-
 
46
     * @param type
-
 
47
     * @param billingWarehouseId
39
     * @param fulfilmentWarehouseId
48
     */
40
     */
49
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
41
    public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
50
 
42
 
51
    /**
43
    /**
52
     * Scan non-serialized items.
44
     * Scan non-serialized items.
53
     * 
45
     * 
54
     * @param inventoryItem
46
     * @param inventoryItem
Line 137... Line 129...
137
 
129
 
138
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
130
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
139
 
131
 
140
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
132
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
141
 
133
 
142
    public void getNonSeralizedInventoryItem(long itemId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
134
    public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
143
 
-
 
144
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
145
 
135
 
146
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
136
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
147
 
137
 
148
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
138
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
149
 
139
 
Line 209... Line 199...
209
        throw result.wex;
199
        throw result.wex;
210
      }
200
      }
211
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
201
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
212
    }
202
    }
213
 
203
 
214
    public InventoryItem getNonSeralizedInventoryItem(long itemId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
204
    public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
215
    {
205
    {
216
      send_getNonSeralizedInventoryItem(itemId, warehouseId);
206
      send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId);
217
      return recv_getNonSeralizedInventoryItem();
207
      return recv_getNonSeralizedInventoryItem();
218
    }
208
    }
219
 
209
 
220
    public void send_getNonSeralizedInventoryItem(long itemId, long warehouseId) throws org.apache.thrift.TException
210
    public void send_getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
221
    {
211
    {
222
      getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
212
      getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
-
 
213
      args.setItemNumber(itemNumber);
223
      args.setItemId(itemId);
214
      args.setItemId(itemId);
224
      args.setWarehouseId(warehouseId);
215
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
225
      sendBase("getNonSeralizedInventoryItem", args);
216
      sendBase("getNonSeralizedInventoryItem", args);
226
    }
217
    }
227
 
218
 
228
    public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
219
    public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
229
    {
220
    {
Line 236... Line 227...
236
        throw result.wex;
227
        throw result.wex;
237
      }
228
      }
238
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
229
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
239
    }
230
    }
240
 
231
 
241
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
242
    {
-
 
243
      send_scanSerializedItem(inventoryItem, type, billingWarehouseId);
-
 
244
      recv_scanSerializedItem();
-
 
245
    }
-
 
246
 
-
 
247
    public void send_scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId) throws org.apache.thrift.TException
-
 
248
    {
-
 
249
      scanSerializedItem_args args = new scanSerializedItem_args();
-
 
250
      args.setInventoryItem(inventoryItem);
-
 
251
      args.setType(type);
-
 
252
      args.setBillingWarehouseId(billingWarehouseId);
-
 
253
      sendBase("scanSerializedItem", args);
-
 
254
    }
-
 
255
 
-
 
256
    public void recv_scanSerializedItem() throws WarehouseServiceException, org.apache.thrift.TException
-
 
257
    {
-
 
258
      scanSerializedItem_result result = new scanSerializedItem_result();
-
 
259
      receiveBase(result, "scanSerializedItem");
-
 
260
      if (result.wex != null) {
-
 
261
        throw result.wex;
-
 
262
      }
-
 
263
      return;
-
 
264
    }
-
 
265
 
-
 
266
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
232
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
267
    {
233
    {
268
      send_scan(inventoryItem, type, quantity, billingWarehouseId);
234
      send_scan(inventoryItem, type, quantity, billingWarehouseId);
269
      recv_scan();
235
      recv_scan();
270
    }
236
    }
Line 565... Line 531...
565
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
531
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
566
        return (new Client(prot)).recv_getInventoryItem();
532
        return (new Client(prot)).recv_getInventoryItem();
567
      }
533
      }
568
    }
534
    }
569
 
535
 
570
    public void getNonSeralizedInventoryItem(long itemId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
536
    public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
571
      checkReady();
537
      checkReady();
572
      getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
538
      getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemNumber, itemId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
573
      this.___currentMethod = method_call;
539
      this.___currentMethod = method_call;
574
      ___manager.call(method_call);
540
      ___manager.call(method_call);
575
    }
541
    }
576
 
542
 
577
    public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
543
    public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
544
      private String itemNumber;
578
      private long itemId;
545
      private long itemId;
579
      private long warehouseId;
546
      private long fulfilmentWarehouseId;
580
      public getNonSeralizedInventoryItem_call(long itemId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_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 {
547
      public getNonSeralizedInventoryItem_call(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_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 {
581
        super(client, protocolFactory, transport, resultHandler, false);
548
        super(client, protocolFactory, transport, resultHandler, false);
-
 
549
        this.itemNumber = itemNumber;
582
        this.itemId = itemId;
550
        this.itemId = itemId;
583
        this.warehouseId = warehouseId;
551
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
584
      }
552
      }
585
 
553
 
586
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
554
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
587
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
555
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
588
        getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
556
        getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
-
 
557
        args.setItemNumber(itemNumber);
589
        args.setItemId(itemId);
558
        args.setItemId(itemId);
590
        args.setWarehouseId(warehouseId);
559
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
591
        args.write(prot);
560
        args.write(prot);
592
        prot.writeMessageEnd();
561
        prot.writeMessageEnd();
593
      }
562
      }
594
 
563
 
595
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
564
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
Line 600... Line 569...
600
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
569
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
601
        return (new Client(prot)).recv_getNonSeralizedInventoryItem();
570
        return (new Client(prot)).recv_getNonSeralizedInventoryItem();
602
      }
571
      }
603
    }
572
    }
604
 
573
 
605
    public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
606
      checkReady();
-
 
607
      scanSerializedItem_call method_call = new scanSerializedItem_call(inventoryItem, type, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
608
      this.___currentMethod = method_call;
-
 
609
      ___manager.call(method_call);
-
 
610
    }
-
 
611
 
-
 
612
    public static class scanSerializedItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
613
      private InventoryItem inventoryItem;
-
 
614
      private ScanType type;
-
 
615
      private long billingWarehouseId;
-
 
616
      public scanSerializedItem_call(InventoryItem inventoryItem, ScanType type, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_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 {
-
 
617
        super(client, protocolFactory, transport, resultHandler, false);
-
 
618
        this.inventoryItem = inventoryItem;
-
 
619
        this.type = type;
-
 
620
        this.billingWarehouseId = billingWarehouseId;
-
 
621
      }
-
 
622
 
-
 
623
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
624
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
625
        scanSerializedItem_args args = new scanSerializedItem_args();
-
 
626
        args.setInventoryItem(inventoryItem);
-
 
627
        args.setType(type);
-
 
628
        args.setBillingWarehouseId(billingWarehouseId);
-
 
629
        args.write(prot);
-
 
630
        prot.writeMessageEnd();
-
 
631
      }
-
 
632
 
-
 
633
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
634
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
635
          throw new IllegalStateException("Method call not finished!");
-
 
636
        }
-
 
637
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
638
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
639
        (new Client(prot)).recv_scanSerializedItem();
-
 
640
      }
-
 
641
    }
-
 
642
 
-
 
643
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler) throws org.apache.thrift.TException {
574
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler) throws org.apache.thrift.TException {
644
      checkReady();
575
      checkReady();
645
      scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
576
      scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
646
      this.___currentMethod = method_call;
577
      this.___currentMethod = method_call;
647
      ___manager.call(method_call);
578
      ___manager.call(method_call);
Line 1018... Line 949...
1018
    }
949
    }
1019
 
950
 
1020
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
951
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1021
      processMap.put("getInventoryItem", new getInventoryItem());
952
      processMap.put("getInventoryItem", new getInventoryItem());
1022
      processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
953
      processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
1023
      processMap.put("scanSerializedItem", new scanSerializedItem());
-
 
1024
      processMap.put("scan", new scan());
954
      processMap.put("scan", new scan());
1025
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
955
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
1026
      processMap.put("scanForOrder", new scanForOrder());
956
      processMap.put("scanForOrder", new scanForOrder());
1027
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
957
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
1028
      processMap.put("getItemNumbers", new getItemNumbers());
958
      processMap.put("getItemNumbers", new getItemNumbers());
Line 1064... Line 994...
1064
      }
994
      }
1065
 
995
 
1066
      protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
996
      protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
1067
        getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
997
        getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
1068
        try {
998
        try {
1069
          result.success = iface.getNonSeralizedInventoryItem(args.itemId, args.warehouseId);
999
          result.success = iface.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId);
1070
        } catch (WarehouseServiceException wex) {
-
 
1071
          result.wex = wex;
-
 
1072
        }
-
 
1073
        return result;
-
 
1074
      }
-
 
1075
    }
-
 
1076
 
-
 
1077
    private static class scanSerializedItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItem_args> {
-
 
1078
      public scanSerializedItem() {
-
 
1079
        super("scanSerializedItem");
-
 
1080
      }
-
 
1081
 
-
 
1082
      protected scanSerializedItem_args getEmptyArgsInstance() {
-
 
1083
        return new scanSerializedItem_args();
-
 
1084
      }
-
 
1085
 
-
 
1086
      protected scanSerializedItem_result getResult(I iface, scanSerializedItem_args args) throws org.apache.thrift.TException {
-
 
1087
        scanSerializedItem_result result = new scanSerializedItem_result();
-
 
1088
        try {
-
 
1089
          iface.scanSerializedItem(args.inventoryItem, args.type, args.billingWarehouseId);
-
 
1090
        } catch (WarehouseServiceException wex) {
1000
        } catch (WarehouseServiceException wex) {
1091
          result.wex = wex;
1001
          result.wex = wex;
1092
        }
1002
        }
1093
        return result;
1003
        return result;
1094
      }
1004
      }
Line 1953... Line 1863...
1953
  }
1863
  }
1954
 
1864
 
1955
  public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
1865
  public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
1956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
1866
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
1957
 
1867
 
-
 
1868
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
1958
    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);
1869
    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)2);
1959
    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);
1870
    private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
1960
 
1871
 
-
 
1872
    private String itemNumber; // required
1961
    private long itemId; // required
1873
    private long itemId; // required
1962
    private long warehouseId; // required
1874
    private long fulfilmentWarehouseId; // required
1963
 
1875
 
1964
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1876
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1965
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1877
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
1878
      ITEM_NUMBER((short)1, "itemNumber"),
1966
      ITEM_ID((short)1, "itemId"),
1879
      ITEM_ID((short)2, "itemId"),
1967
      WAREHOUSE_ID((short)2, "warehouseId");
1880
      FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId");
1968
 
1881
 
1969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1882
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1970
 
1883
 
1971
      static {
1884
      static {
1972
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1885
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 1977... Line 1890...
1977
      /**
1890
      /**
1978
       * Find the _Fields constant that matches fieldId, or null if its not found.
1891
       * Find the _Fields constant that matches fieldId, or null if its not found.
1979
       */
1892
       */
1980
      public static _Fields findByThriftId(int fieldId) {
1893
      public static _Fields findByThriftId(int fieldId) {
1981
        switch(fieldId) {
1894
        switch(fieldId) {
-
 
1895
          case 1: // ITEM_NUMBER
-
 
1896
            return ITEM_NUMBER;
1982
          case 1: // ITEM_ID
1897
          case 2: // ITEM_ID
1983
            return ITEM_ID;
1898
            return ITEM_ID;
1984
          case 2: // WAREHOUSE_ID
1899
          case 3: // FULFILMENT_WAREHOUSE_ID
1985
            return WAREHOUSE_ID;
1900
            return FULFILMENT_WAREHOUSE_ID;
1986
          default:
1901
          default:
1987
            return null;
1902
            return null;
1988
        }
1903
        }
1989
      }
1904
      }
1990
 
1905
 
Line 2022... Line 1937...
2022
      }
1937
      }
2023
    }
1938
    }
2024
 
1939
 
2025
    // isset id assignments
1940
    // isset id assignments
2026
    private static final int __ITEMID_ISSET_ID = 0;
1941
    private static final int __ITEMID_ISSET_ID = 0;
2027
    private static final int __WAREHOUSEID_ISSET_ID = 1;
1942
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
2028
    private BitSet __isset_bit_vector = new BitSet(2);
1943
    private BitSet __isset_bit_vector = new BitSet(2);
2029
 
1944
 
2030
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1945
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2031
    static {
1946
    static {
2032
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1947
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1948
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1949
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2033
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1950
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2034
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1951
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2035
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1952
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2036
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1953
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2037
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1954
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2038
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
1955
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
2039
    }
1956
    }
2040
 
1957
 
2041
    public getNonSeralizedInventoryItem_args() {
1958
    public getNonSeralizedInventoryItem_args() {
2042
    }
1959
    }
2043
 
1960
 
2044
    public getNonSeralizedInventoryItem_args(
1961
    public getNonSeralizedInventoryItem_args(
-
 
1962
      String itemNumber,
2045
      long itemId,
1963
      long itemId,
2046
      long warehouseId)
1964
      long fulfilmentWarehouseId)
2047
    {
1965
    {
2048
      this();
1966
      this();
-
 
1967
      this.itemNumber = itemNumber;
2049
      this.itemId = itemId;
1968
      this.itemId = itemId;
2050
      setItemIdIsSet(true);
1969
      setItemIdIsSet(true);
2051
      this.warehouseId = warehouseId;
1970
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
2052
      setWarehouseIdIsSet(true);
1971
      setFulfilmentWarehouseIdIsSet(true);
2053
    }
1972
    }
2054
 
1973
 
2055
    /**
1974
    /**
2056
     * Performs a deep copy on <i>other</i>.
1975
     * Performs a deep copy on <i>other</i>.
2057
     */
1976
     */
2058
    public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
1977
    public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
2059
      __isset_bit_vector.clear();
1978
      __isset_bit_vector.clear();
2060
      __isset_bit_vector.or(other.__isset_bit_vector);
1979
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
1980
      if (other.isSetItemNumber()) {
-
 
1981
        this.itemNumber = other.itemNumber;
-
 
1982
      }
2061
      this.itemId = other.itemId;
1983
      this.itemId = other.itemId;
2062
      this.warehouseId = other.warehouseId;
1984
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
2063
    }
1985
    }
2064
 
1986
 
2065
    public getNonSeralizedInventoryItem_args deepCopy() {
1987
    public getNonSeralizedInventoryItem_args deepCopy() {
2066
      return new getNonSeralizedInventoryItem_args(this);
1988
      return new getNonSeralizedInventoryItem_args(this);
2067
    }
1989
    }
2068
 
1990
 
2069
    @Override
1991
    @Override
2070
    public void clear() {
1992
    public void clear() {
-
 
1993
      this.itemNumber = null;
2071
      setItemIdIsSet(false);
1994
      setItemIdIsSet(false);
2072
      this.itemId = 0;
1995
      this.itemId = 0;
2073
      setWarehouseIdIsSet(false);
1996
      setFulfilmentWarehouseIdIsSet(false);
2074
      this.warehouseId = 0;
1997
      this.fulfilmentWarehouseId = 0;
-
 
1998
    }
-
 
1999
 
-
 
2000
    public String getItemNumber() {
-
 
2001
      return this.itemNumber;
-
 
2002
    }
-
 
2003
 
-
 
2004
    public void setItemNumber(String itemNumber) {
-
 
2005
      this.itemNumber = itemNumber;
-
 
2006
    }
-
 
2007
 
-
 
2008
    public void unsetItemNumber() {
-
 
2009
      this.itemNumber = null;
-
 
2010
    }
-
 
2011
 
-
 
2012
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
-
 
2013
    public boolean isSetItemNumber() {
-
 
2014
      return this.itemNumber != null;
-
 
2015
    }
-
 
2016
 
-
 
2017
    public void setItemNumberIsSet(boolean value) {
-
 
2018
      if (!value) {
-
 
2019
        this.itemNumber = null;
-
 
2020
      }
2075
    }
2021
    }
2076
 
2022
 
2077
    public long getItemId() {
2023
    public long getItemId() {
2078
      return this.itemId;
2024
      return this.itemId;
2079
    }
2025
    }
Line 2094... Line 2040...
2094
 
2040
 
2095
    public void setItemIdIsSet(boolean value) {
2041
    public void setItemIdIsSet(boolean value) {
2096
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2042
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2097
    }
2043
    }
2098
 
2044
 
2099
    public long getWarehouseId() {
2045
    public long getFulfilmentWarehouseId() {
2100
      return this.warehouseId;
2046
      return this.fulfilmentWarehouseId;
2101
    }
2047
    }
2102
 
2048
 
2103
    public void setWarehouseId(long warehouseId) {
2049
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
2104
      this.warehouseId = warehouseId;
2050
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
2105
      setWarehouseIdIsSet(true);
2051
      setFulfilmentWarehouseIdIsSet(true);
2106
    }
2052
    }
2107
 
2053
 
2108
    public void unsetWarehouseId() {
2054
    public void unsetFulfilmentWarehouseId() {
2109
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
2055
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
2110
    }
2056
    }
2111
 
2057
 
2112
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
2058
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
2113
    public boolean isSetWarehouseId() {
2059
    public boolean isSetFulfilmentWarehouseId() {
2114
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
2060
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
2115
    }
2061
    }
2116
 
2062
 
2117
    public void setWarehouseIdIsSet(boolean value) {
2063
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
2118
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
2064
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
2119
    }
2065
    }
2120
 
2066
 
2121
    public void setFieldValue(_Fields field, Object value) {
2067
    public void setFieldValue(_Fields field, Object value) {
2122
      switch (field) {
2068
      switch (field) {
-
 
2069
      case ITEM_NUMBER:
-
 
2070
        if (value == null) {
-
 
2071
          unsetItemNumber();
-
 
2072
        } else {
-
 
2073
          setItemNumber((String)value);
-
 
2074
        }
-
 
2075
        break;
-
 
2076
 
2123
      case ITEM_ID:
2077
      case ITEM_ID:
2124
        if (value == null) {
2078
        if (value == null) {
2125
          unsetItemId();
2079
          unsetItemId();
2126
        } else {
2080
        } else {
2127
          setItemId((Long)value);
2081
          setItemId((Long)value);
2128
        }
2082
        }
2129
        break;
2083
        break;
2130
 
2084
 
2131
      case WAREHOUSE_ID:
2085
      case FULFILMENT_WAREHOUSE_ID:
2132
        if (value == null) {
2086
        if (value == null) {
2133
          unsetWarehouseId();
2087
          unsetFulfilmentWarehouseId();
2134
        } else {
2088
        } else {
2135
          setWarehouseId((Long)value);
2089
          setFulfilmentWarehouseId((Long)value);
2136
        }
2090
        }
2137
        break;
2091
        break;
2138
 
2092
 
2139
      }
2093
      }
2140
    }
2094
    }
2141
 
2095
 
2142
    public Object getFieldValue(_Fields field) {
2096
    public Object getFieldValue(_Fields field) {
2143
      switch (field) {
2097
      switch (field) {
-
 
2098
      case ITEM_NUMBER:
-
 
2099
        return getItemNumber();
-
 
2100
 
2144
      case ITEM_ID:
2101
      case ITEM_ID:
2145
        return Long.valueOf(getItemId());
2102
        return Long.valueOf(getItemId());
2146
 
2103
 
2147
      case WAREHOUSE_ID:
2104
      case FULFILMENT_WAREHOUSE_ID:
2148
        return Long.valueOf(getWarehouseId());
2105
        return Long.valueOf(getFulfilmentWarehouseId());
2149
 
2106
 
2150
      }
2107
      }
2151
      throw new IllegalStateException();
2108
      throw new IllegalStateException();
2152
    }
2109
    }
2153
 
2110
 
Line 2156... Line 2113...
2156
      if (field == null) {
2113
      if (field == null) {
2157
        throw new IllegalArgumentException();
2114
        throw new IllegalArgumentException();
2158
      }
2115
      }
2159
 
2116
 
2160
      switch (field) {
2117
      switch (field) {
-
 
2118
      case ITEM_NUMBER:
-
 
2119
        return isSetItemNumber();
2161
      case ITEM_ID:
2120
      case ITEM_ID:
2162
        return isSetItemId();
2121
        return isSetItemId();
2163
      case WAREHOUSE_ID:
2122
      case FULFILMENT_WAREHOUSE_ID:
2164
        return isSetWarehouseId();
2123
        return isSetFulfilmentWarehouseId();
2165
      }
2124
      }
2166
      throw new IllegalStateException();
2125
      throw new IllegalStateException();
2167
    }
2126
    }
2168
 
2127
 
2169
    @Override
2128
    @Override
Line 2177... Line 2136...
2177
 
2136
 
2178
    public boolean equals(getNonSeralizedInventoryItem_args that) {
2137
    public boolean equals(getNonSeralizedInventoryItem_args that) {
2179
      if (that == null)
2138
      if (that == null)
2180
        return false;
2139
        return false;
2181
 
2140
 
-
 
2141
      boolean this_present_itemNumber = true && this.isSetItemNumber();
-
 
2142
      boolean that_present_itemNumber = true && that.isSetItemNumber();
-
 
2143
      if (this_present_itemNumber || that_present_itemNumber) {
-
 
2144
        if (!(this_present_itemNumber && that_present_itemNumber))
-
 
2145
          return false;
-
 
2146
        if (!this.itemNumber.equals(that.itemNumber))
-
 
2147
          return false;
-
 
2148
      }
-
 
2149
 
2182
      boolean this_present_itemId = true;
2150
      boolean this_present_itemId = true;
2183
      boolean that_present_itemId = true;
2151
      boolean that_present_itemId = true;
2184
      if (this_present_itemId || that_present_itemId) {
2152
      if (this_present_itemId || that_present_itemId) {
2185
        if (!(this_present_itemId && that_present_itemId))
2153
        if (!(this_present_itemId && that_present_itemId))
2186
          return false;
2154
          return false;
2187
        if (this.itemId != that.itemId)
2155
        if (this.itemId != that.itemId)
2188
          return false;
2156
          return false;
2189
      }
2157
      }
2190
 
2158
 
2191
      boolean this_present_warehouseId = true;
2159
      boolean this_present_fulfilmentWarehouseId = true;
2192
      boolean that_present_warehouseId = true;
2160
      boolean that_present_fulfilmentWarehouseId = true;
2193
      if (this_present_warehouseId || that_present_warehouseId) {
2161
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
2194
        if (!(this_present_warehouseId && that_present_warehouseId))
2162
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
2195
          return false;
2163
          return false;
2196
        if (this.warehouseId != that.warehouseId)
2164
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
2197
          return false;
2165
          return false;
2198
      }
2166
      }
2199
 
2167
 
2200
      return true;
2168
      return true;
2201
    }
2169
    }
Line 2211... Line 2179...
2211
      }
2179
      }
2212
 
2180
 
2213
      int lastComparison = 0;
2181
      int lastComparison = 0;
2214
      getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
2182
      getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
2215
 
2183
 
-
 
2184
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
-
 
2185
      if (lastComparison != 0) {
-
 
2186
        return lastComparison;
-
 
2187
      }
-
 
2188
      if (isSetItemNumber()) {
-
 
2189
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
-
 
2190
        if (lastComparison != 0) {
-
 
2191
          return lastComparison;
-
 
2192
        }
-
 
2193
      }
2216
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2194
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2217
      if (lastComparison != 0) {
2195
      if (lastComparison != 0) {
2218
        return lastComparison;
2196
        return lastComparison;
2219
      }
2197
      }
2220
      if (isSetItemId()) {
2198
      if (isSetItemId()) {
2221
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
2199
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
2222
        if (lastComparison != 0) {
2200
        if (lastComparison != 0) {
2223
          return lastComparison;
2201
          return lastComparison;
2224
        }
2202
        }
2225
      }
2203
      }
2226
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
2204
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
2227
      if (lastComparison != 0) {
2205
      if (lastComparison != 0) {
2228
        return lastComparison;
2206
        return lastComparison;
2229
      }
2207
      }
2230
      if (isSetWarehouseId()) {
2208
      if (isSetFulfilmentWarehouseId()) {
2231
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
2209
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
2232
        if (lastComparison != 0) {
2210
        if (lastComparison != 0) {
2233
          return lastComparison;
2211
          return lastComparison;
2234
        }
2212
        }
2235
      }
2213
      }
2236
      return 0;
2214
      return 0;
Line 2248... Line 2226...
2248
        field = iprot.readFieldBegin();
2226
        field = iprot.readFieldBegin();
2249
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2227
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2250
          break;
2228
          break;
2251
        }
2229
        }
2252
        switch (field.id) {
2230
        switch (field.id) {
-
 
2231
          case 1: // ITEM_NUMBER
-
 
2232
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
2233
              this.itemNumber = iprot.readString();
-
 
2234
            } else { 
-
 
2235
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2236
            }
-
 
2237
            break;
2253
          case 1: // ITEM_ID
2238
          case 2: // ITEM_ID
2254
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2239
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2255
              this.itemId = iprot.readI64();
2240
              this.itemId = iprot.readI64();
2256
              setItemIdIsSet(true);
2241
              setItemIdIsSet(true);
2257
            } else { 
2242
            } else { 
2258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2259
            }
2244
            }
2260
            break;
2245
            break;
2261
          case 2: // WAREHOUSE_ID
2246
          case 3: // FULFILMENT_WAREHOUSE_ID
2262
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2247
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2263
              this.warehouseId = iprot.readI64();
2248
              this.fulfilmentWarehouseId = iprot.readI64();
2264
              setWarehouseIdIsSet(true);
2249
              setFulfilmentWarehouseIdIsSet(true);
2265
            } else { 
2250
            } else { 
2266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2251
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2267
            }
2252
            }
2268
            break;
2253
            break;
2269
          default:
2254
          default:
Line 2277... Line 2262...
2277
 
2262
 
2278
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2263
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2279
      validate();
2264
      validate();
2280
 
2265
 
2281
      oprot.writeStructBegin(STRUCT_DESC);
2266
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2267
      if (this.itemNumber != null) {
-
 
2268
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
-
 
2269
        oprot.writeString(this.itemNumber);
-
 
2270
        oprot.writeFieldEnd();
-
 
2271
      }
2282
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2272
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2283
      oprot.writeI64(this.itemId);
2273
      oprot.writeI64(this.itemId);
2284
      oprot.writeFieldEnd();
2274
      oprot.writeFieldEnd();
2285
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
2275
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
2286
      oprot.writeI64(this.warehouseId);
2276
      oprot.writeI64(this.fulfilmentWarehouseId);
2287
      oprot.writeFieldEnd();
2277
      oprot.writeFieldEnd();
2288
      oprot.writeFieldStop();
2278
      oprot.writeFieldStop();
2289
      oprot.writeStructEnd();
2279
      oprot.writeStructEnd();
2290
    }
2280
    }
2291
 
2281
 
2292
    @Override
2282
    @Override
2293
    public String toString() {
2283
    public String toString() {
2294
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
2284
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
2295
      boolean first = true;
2285
      boolean first = true;
2296
 
2286
 
-
 
2287
      sb.append("itemNumber:");
-
 
2288
      if (this.itemNumber == null) {
-
 
2289
        sb.append("null");
-
 
2290
      } else {
-
 
2291
        sb.append(this.itemNumber);
-
 
2292
      }
-
 
2293
      first = false;
-
 
2294
      if (!first) sb.append(", ");
2297
      sb.append("itemId:");
2295
      sb.append("itemId:");
2298
      sb.append(this.itemId);
2296
      sb.append(this.itemId);
2299
      first = false;
2297
      first = false;
2300
      if (!first) sb.append(", ");
2298
      if (!first) sb.append(", ");
2301
      sb.append("warehouseId:");
2299
      sb.append("fulfilmentWarehouseId:");
2302
      sb.append(this.warehouseId);
2300
      sb.append(this.fulfilmentWarehouseId);
2303
      first = false;
2301
      first = false;
2304
      sb.append(")");
2302
      sb.append(")");
2305
      return sb.toString();
2303
      return sb.toString();
2306
    }
2304
    }
2307
 
2305
 
Line 2681... Line 2679...
2681
      sb.append("wex:");
2679
      sb.append("wex:");
2682
      if (this.wex == null) {
2680
      if (this.wex == null) {
2683
        sb.append("null");
2681
        sb.append("null");
2684
      } else {
2682
      } else {
2685
        sb.append(this.wex);
2683
        sb.append(this.wex);
2686
      }
-
 
2687
      first = false;
-
 
2688
      sb.append(")");
-
 
2689
      return sb.toString();
-
 
2690
    }
-
 
2691
 
-
 
2692
    public void validate() throws org.apache.thrift.TException {
-
 
2693
      // check for required fields
-
 
2694
    }
-
 
2695
 
-
 
2696
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2697
      try {
-
 
2698
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2699
      } catch (org.apache.thrift.TException te) {
-
 
2700
        throw new java.io.IOException(te);
-
 
2701
      }
-
 
2702
    }
-
 
2703
 
-
 
2704
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2705
      try {
-
 
2706
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2707
      } catch (org.apache.thrift.TException te) {
-
 
2708
        throw new java.io.IOException(te);
-
 
2709
      }
-
 
2710
    }
-
 
2711
 
-
 
2712
  }
-
 
2713
 
-
 
2714
  public static class scanSerializedItem_args implements org.apache.thrift.TBase<scanSerializedItem_args, scanSerializedItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
2715
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_args");
-
 
2716
 
-
 
2717
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
2718
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
2719
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
2720
 
-
 
2721
    private InventoryItem inventoryItem; // required
-
 
2722
    private ScanType type; // required
-
 
2723
    private long billingWarehouseId; // required
-
 
2724
 
-
 
2725
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
2726
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
2727
      INVENTORY_ITEM((short)1, "inventoryItem"),
-
 
2728
      /**
-
 
2729
       * 
-
 
2730
       * @see ScanType
-
 
2731
       */
-
 
2732
      TYPE((short)2, "type"),
-
 
2733
      BILLING_WAREHOUSE_ID((short)3, "billingWarehouseId");
-
 
2734
 
-
 
2735
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
2736
 
-
 
2737
      static {
-
 
2738
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
2739
          byName.put(field.getFieldName(), field);
-
 
2740
        }
-
 
2741
      }
-
 
2742
 
-
 
2743
      /**
-
 
2744
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
2745
       */
-
 
2746
      public static _Fields findByThriftId(int fieldId) {
-
 
2747
        switch(fieldId) {
-
 
2748
          case 1: // INVENTORY_ITEM
-
 
2749
            return INVENTORY_ITEM;
-
 
2750
          case 2: // TYPE
-
 
2751
            return TYPE;
-
 
2752
          case 3: // BILLING_WAREHOUSE_ID
-
 
2753
            return BILLING_WAREHOUSE_ID;
-
 
2754
          default:
-
 
2755
            return null;
-
 
2756
        }
-
 
2757
      }
-
 
2758
 
-
 
2759
      /**
-
 
2760
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
2761
       * if it is not found.
-
 
2762
       */
-
 
2763
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
2764
        _Fields fields = findByThriftId(fieldId);
-
 
2765
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
2766
        return fields;
-
 
2767
      }
-
 
2768
 
-
 
2769
      /**
-
 
2770
       * Find the _Fields constant that matches name, or null if its not found.
-
 
2771
       */
-
 
2772
      public static _Fields findByName(String name) {
-
 
2773
        return byName.get(name);
-
 
2774
      }
-
 
2775
 
-
 
2776
      private final short _thriftId;
-
 
2777
      private final String _fieldName;
-
 
2778
 
-
 
2779
      _Fields(short thriftId, String fieldName) {
-
 
2780
        _thriftId = thriftId;
-
 
2781
        _fieldName = fieldName;
-
 
2782
      }
-
 
2783
 
-
 
2784
      public short getThriftFieldId() {
-
 
2785
        return _thriftId;
-
 
2786
      }
-
 
2787
 
-
 
2788
      public String getFieldName() {
-
 
2789
        return _fieldName;
-
 
2790
      }
-
 
2791
    }
-
 
2792
 
-
 
2793
    // isset id assignments
-
 
2794
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 0;
-
 
2795
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
2796
 
-
 
2797
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
2798
    static {
-
 
2799
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2800
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2801
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
-
 
2802
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2803
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
2804
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2805
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
2806
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
2807
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItem_args.class, metaDataMap);
-
 
2808
    }
-
 
2809
 
-
 
2810
    public scanSerializedItem_args() {
-
 
2811
    }
-
 
2812
 
-
 
2813
    public scanSerializedItem_args(
-
 
2814
      InventoryItem inventoryItem,
-
 
2815
      ScanType type,
-
 
2816
      long billingWarehouseId)
-
 
2817
    {
-
 
2818
      this();
-
 
2819
      this.inventoryItem = inventoryItem;
-
 
2820
      this.type = type;
-
 
2821
      this.billingWarehouseId = billingWarehouseId;
-
 
2822
      setBillingWarehouseIdIsSet(true);
-
 
2823
    }
-
 
2824
 
-
 
2825
    /**
-
 
2826
     * Performs a deep copy on <i>other</i>.
-
 
2827
     */
-
 
2828
    public scanSerializedItem_args(scanSerializedItem_args other) {
-
 
2829
      __isset_bit_vector.clear();
-
 
2830
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
2831
      if (other.isSetInventoryItem()) {
-
 
2832
        this.inventoryItem = new InventoryItem(other.inventoryItem);
-
 
2833
      }
-
 
2834
      if (other.isSetType()) {
-
 
2835
        this.type = other.type;
-
 
2836
      }
-
 
2837
      this.billingWarehouseId = other.billingWarehouseId;
-
 
2838
    }
-
 
2839
 
-
 
2840
    public scanSerializedItem_args deepCopy() {
-
 
2841
      return new scanSerializedItem_args(this);
-
 
2842
    }
-
 
2843
 
-
 
2844
    @Override
-
 
2845
    public void clear() {
-
 
2846
      this.inventoryItem = null;
-
 
2847
      this.type = null;
-
 
2848
      setBillingWarehouseIdIsSet(false);
-
 
2849
      this.billingWarehouseId = 0;
-
 
2850
    }
-
 
2851
 
-
 
2852
    public InventoryItem getInventoryItem() {
-
 
2853
      return this.inventoryItem;
-
 
2854
    }
-
 
2855
 
-
 
2856
    public void setInventoryItem(InventoryItem inventoryItem) {
-
 
2857
      this.inventoryItem = inventoryItem;
-
 
2858
    }
-
 
2859
 
-
 
2860
    public void unsetInventoryItem() {
-
 
2861
      this.inventoryItem = null;
-
 
2862
    }
-
 
2863
 
-
 
2864
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
-
 
2865
    public boolean isSetInventoryItem() {
-
 
2866
      return this.inventoryItem != null;
-
 
2867
    }
-
 
2868
 
-
 
2869
    public void setInventoryItemIsSet(boolean value) {
-
 
2870
      if (!value) {
-
 
2871
        this.inventoryItem = null;
-
 
2872
      }
-
 
2873
    }
-
 
2874
 
-
 
2875
    /**
-
 
2876
     * 
-
 
2877
     * @see ScanType
-
 
2878
     */
-
 
2879
    public ScanType getType() {
-
 
2880
      return this.type;
-
 
2881
    }
-
 
2882
 
-
 
2883
    /**
-
 
2884
     * 
-
 
2885
     * @see ScanType
-
 
2886
     */
-
 
2887
    public void setType(ScanType type) {
-
 
2888
      this.type = type;
-
 
2889
    }
-
 
2890
 
-
 
2891
    public void unsetType() {
-
 
2892
      this.type = null;
-
 
2893
    }
-
 
2894
 
-
 
2895
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
2896
    public boolean isSetType() {
-
 
2897
      return this.type != null;
-
 
2898
    }
-
 
2899
 
-
 
2900
    public void setTypeIsSet(boolean value) {
-
 
2901
      if (!value) {
-
 
2902
        this.type = null;
-
 
2903
      }
-
 
2904
    }
-
 
2905
 
-
 
2906
    public long getBillingWarehouseId() {
-
 
2907
      return this.billingWarehouseId;
-
 
2908
    }
-
 
2909
 
-
 
2910
    public void setBillingWarehouseId(long billingWarehouseId) {
-
 
2911
      this.billingWarehouseId = billingWarehouseId;
-
 
2912
      setBillingWarehouseIdIsSet(true);
-
 
2913
    }
-
 
2914
 
-
 
2915
    public void unsetBillingWarehouseId() {
-
 
2916
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
2917
    }
-
 
2918
 
-
 
2919
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
-
 
2920
    public boolean isSetBillingWarehouseId() {
-
 
2921
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
2922
    }
-
 
2923
 
-
 
2924
    public void setBillingWarehouseIdIsSet(boolean value) {
-
 
2925
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
-
 
2926
    }
-
 
2927
 
-
 
2928
    public void setFieldValue(_Fields field, Object value) {
-
 
2929
      switch (field) {
-
 
2930
      case INVENTORY_ITEM:
-
 
2931
        if (value == null) {
-
 
2932
          unsetInventoryItem();
-
 
2933
        } else {
-
 
2934
          setInventoryItem((InventoryItem)value);
-
 
2935
        }
-
 
2936
        break;
-
 
2937
 
-
 
2938
      case TYPE:
-
 
2939
        if (value == null) {
-
 
2940
          unsetType();
-
 
2941
        } else {
-
 
2942
          setType((ScanType)value);
-
 
2943
        }
-
 
2944
        break;
-
 
2945
 
-
 
2946
      case BILLING_WAREHOUSE_ID:
-
 
2947
        if (value == null) {
-
 
2948
          unsetBillingWarehouseId();
-
 
2949
        } else {
-
 
2950
          setBillingWarehouseId((Long)value);
-
 
2951
        }
-
 
2952
        break;
-
 
2953
 
-
 
2954
      }
-
 
2955
    }
-
 
2956
 
-
 
2957
    public Object getFieldValue(_Fields field) {
-
 
2958
      switch (field) {
-
 
2959
      case INVENTORY_ITEM:
-
 
2960
        return getInventoryItem();
-
 
2961
 
-
 
2962
      case TYPE:
-
 
2963
        return getType();
-
 
2964
 
-
 
2965
      case BILLING_WAREHOUSE_ID:
-
 
2966
        return Long.valueOf(getBillingWarehouseId());
-
 
2967
 
-
 
2968
      }
-
 
2969
      throw new IllegalStateException();
-
 
2970
    }
-
 
2971
 
-
 
2972
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
2973
    public boolean isSet(_Fields field) {
-
 
2974
      if (field == null) {
-
 
2975
        throw new IllegalArgumentException();
-
 
2976
      }
-
 
2977
 
-
 
2978
      switch (field) {
-
 
2979
      case INVENTORY_ITEM:
-
 
2980
        return isSetInventoryItem();
-
 
2981
      case TYPE:
-
 
2982
        return isSetType();
-
 
2983
      case BILLING_WAREHOUSE_ID:
-
 
2984
        return isSetBillingWarehouseId();
-
 
2985
      }
-
 
2986
      throw new IllegalStateException();
-
 
2987
    }
-
 
2988
 
-
 
2989
    @Override
-
 
2990
    public boolean equals(Object that) {
-
 
2991
      if (that == null)
-
 
2992
        return false;
-
 
2993
      if (that instanceof scanSerializedItem_args)
-
 
2994
        return this.equals((scanSerializedItem_args)that);
-
 
2995
      return false;
-
 
2996
    }
-
 
2997
 
-
 
2998
    public boolean equals(scanSerializedItem_args that) {
-
 
2999
      if (that == null)
-
 
3000
        return false;
-
 
3001
 
-
 
3002
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
-
 
3003
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
-
 
3004
      if (this_present_inventoryItem || that_present_inventoryItem) {
-
 
3005
        if (!(this_present_inventoryItem && that_present_inventoryItem))
-
 
3006
          return false;
-
 
3007
        if (!this.inventoryItem.equals(that.inventoryItem))
-
 
3008
          return false;
-
 
3009
      }
-
 
3010
 
-
 
3011
      boolean this_present_type = true && this.isSetType();
-
 
3012
      boolean that_present_type = true && that.isSetType();
-
 
3013
      if (this_present_type || that_present_type) {
-
 
3014
        if (!(this_present_type && that_present_type))
-
 
3015
          return false;
-
 
3016
        if (!this.type.equals(that.type))
-
 
3017
          return false;
-
 
3018
      }
-
 
3019
 
-
 
3020
      boolean this_present_billingWarehouseId = true;
-
 
3021
      boolean that_present_billingWarehouseId = true;
-
 
3022
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
-
 
3023
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
-
 
3024
          return false;
-
 
3025
        if (this.billingWarehouseId != that.billingWarehouseId)
-
 
3026
          return false;
-
 
3027
      }
-
 
3028
 
-
 
3029
      return true;
-
 
3030
    }
-
 
3031
 
-
 
3032
    @Override
-
 
3033
    public int hashCode() {
-
 
3034
      return 0;
-
 
3035
    }
-
 
3036
 
-
 
3037
    public int compareTo(scanSerializedItem_args other) {
-
 
3038
      if (!getClass().equals(other.getClass())) {
-
 
3039
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3040
      }
-
 
3041
 
-
 
3042
      int lastComparison = 0;
-
 
3043
      scanSerializedItem_args typedOther = (scanSerializedItem_args)other;
-
 
3044
 
-
 
3045
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
-
 
3046
      if (lastComparison != 0) {
-
 
3047
        return lastComparison;
-
 
3048
      }
-
 
3049
      if (isSetInventoryItem()) {
-
 
3050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
-
 
3051
        if (lastComparison != 0) {
-
 
3052
          return lastComparison;
-
 
3053
        }
-
 
3054
      }
-
 
3055
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-
 
3056
      if (lastComparison != 0) {
-
 
3057
        return lastComparison;
-
 
3058
      }
-
 
3059
      if (isSetType()) {
-
 
3060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-
 
3061
        if (lastComparison != 0) {
-
 
3062
          return lastComparison;
-
 
3063
        }
-
 
3064
      }
-
 
3065
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
-
 
3066
      if (lastComparison != 0) {
-
 
3067
        return lastComparison;
-
 
3068
      }
-
 
3069
      if (isSetBillingWarehouseId()) {
-
 
3070
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
-
 
3071
        if (lastComparison != 0) {
-
 
3072
          return lastComparison;
-
 
3073
        }
-
 
3074
      }
-
 
3075
      return 0;
-
 
3076
    }
-
 
3077
 
-
 
3078
    public _Fields fieldForId(int fieldId) {
-
 
3079
      return _Fields.findByThriftId(fieldId);
-
 
3080
    }
-
 
3081
 
-
 
3082
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
3083
      org.apache.thrift.protocol.TField field;
-
 
3084
      iprot.readStructBegin();
-
 
3085
      while (true)
-
 
3086
      {
-
 
3087
        field = iprot.readFieldBegin();
-
 
3088
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
3089
          break;
-
 
3090
        }
-
 
3091
        switch (field.id) {
-
 
3092
          case 1: // INVENTORY_ITEM
-
 
3093
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
3094
              this.inventoryItem = new InventoryItem();
-
 
3095
              this.inventoryItem.read(iprot);
-
 
3096
            } else { 
-
 
3097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3098
            }
-
 
3099
            break;
-
 
3100
          case 2: // TYPE
-
 
3101
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
3102
              this.type = ScanType.findByValue(iprot.readI32());
-
 
3103
            } else { 
-
 
3104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3105
            }
-
 
3106
            break;
-
 
3107
          case 3: // BILLING_WAREHOUSE_ID
-
 
3108
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
3109
              this.billingWarehouseId = iprot.readI64();
-
 
3110
              setBillingWarehouseIdIsSet(true);
-
 
3111
            } else { 
-
 
3112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3113
            }
-
 
3114
            break;
-
 
3115
          default:
-
 
3116
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3117
        }
-
 
3118
        iprot.readFieldEnd();
-
 
3119
      }
-
 
3120
      iprot.readStructEnd();
-
 
3121
      validate();
-
 
3122
    }
-
 
3123
 
-
 
3124
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
3125
      validate();
-
 
3126
 
-
 
3127
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3128
      if (this.inventoryItem != null) {
-
 
3129
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
-
 
3130
        this.inventoryItem.write(oprot);
-
 
3131
        oprot.writeFieldEnd();
-
 
3132
      }
-
 
3133
      if (this.type != null) {
-
 
3134
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
3135
        oprot.writeI32(this.type.getValue());
-
 
3136
        oprot.writeFieldEnd();
-
 
3137
      }
-
 
3138
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
-
 
3139
      oprot.writeI64(this.billingWarehouseId);
-
 
3140
      oprot.writeFieldEnd();
-
 
3141
      oprot.writeFieldStop();
-
 
3142
      oprot.writeStructEnd();
-
 
3143
    }
-
 
3144
 
-
 
3145
    @Override
-
 
3146
    public String toString() {
-
 
3147
      StringBuilder sb = new StringBuilder("scanSerializedItem_args(");
-
 
3148
      boolean first = true;
-
 
3149
 
-
 
3150
      sb.append("inventoryItem:");
-
 
3151
      if (this.inventoryItem == null) {
-
 
3152
        sb.append("null");
-
 
3153
      } else {
-
 
3154
        sb.append(this.inventoryItem);
-
 
3155
      }
-
 
3156
      first = false;
-
 
3157
      if (!first) sb.append(", ");
-
 
3158
      sb.append("type:");
-
 
3159
      if (this.type == null) {
-
 
3160
        sb.append("null");
-
 
3161
      } else {
-
 
3162
        sb.append(this.type);
-
 
3163
      }
-
 
3164
      first = false;
-
 
3165
      if (!first) sb.append(", ");
-
 
3166
      sb.append("billingWarehouseId:");
-
 
3167
      sb.append(this.billingWarehouseId);
-
 
3168
      first = false;
-
 
3169
      sb.append(")");
-
 
3170
      return sb.toString();
-
 
3171
    }
-
 
3172
 
-
 
3173
    public void validate() throws org.apache.thrift.TException {
-
 
3174
      // check for required fields
-
 
3175
    }
-
 
3176
 
-
 
3177
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3178
      try {
-
 
3179
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3180
      } catch (org.apache.thrift.TException te) {
-
 
3181
        throw new java.io.IOException(te);
-
 
3182
      }
-
 
3183
    }
-
 
3184
 
-
 
3185
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3186
      try {
-
 
3187
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
3188
        __isset_bit_vector = new BitSet(1);
-
 
3189
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3190
      } catch (org.apache.thrift.TException te) {
-
 
3191
        throw new java.io.IOException(te);
-
 
3192
      }
-
 
3193
    }
-
 
3194
 
-
 
3195
  }
-
 
3196
 
-
 
3197
  public static class scanSerializedItem_result implements org.apache.thrift.TBase<scanSerializedItem_result, scanSerializedItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
3198
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_result");
-
 
3199
 
-
 
3200
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
3201
 
-
 
3202
    private WarehouseServiceException wex; // required
-
 
3203
 
-
 
3204
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3205
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
3206
      WEX((short)1, "wex");
-
 
3207
 
-
 
3208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3209
 
-
 
3210
      static {
-
 
3211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3212
          byName.put(field.getFieldName(), field);
-
 
3213
        }
-
 
3214
      }
-
 
3215
 
-
 
3216
      /**
-
 
3217
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3218
       */
-
 
3219
      public static _Fields findByThriftId(int fieldId) {
-
 
3220
        switch(fieldId) {
-
 
3221
          case 1: // WEX
-
 
3222
            return WEX;
-
 
3223
          default:
-
 
3224
            return null;
-
 
3225
        }
-
 
3226
      }
-
 
3227
 
-
 
3228
      /**
-
 
3229
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3230
       * if it is not found.
-
 
3231
       */
-
 
3232
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3233
        _Fields fields = findByThriftId(fieldId);
-
 
3234
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3235
        return fields;
-
 
3236
      }
-
 
3237
 
-
 
3238
      /**
-
 
3239
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3240
       */
-
 
3241
      public static _Fields findByName(String name) {
-
 
3242
        return byName.get(name);
-
 
3243
      }
-
 
3244
 
-
 
3245
      private final short _thriftId;
-
 
3246
      private final String _fieldName;
-
 
3247
 
-
 
3248
      _Fields(short thriftId, String fieldName) {
-
 
3249
        _thriftId = thriftId;
-
 
3250
        _fieldName = fieldName;
-
 
3251
      }
-
 
3252
 
-
 
3253
      public short getThriftFieldId() {
-
 
3254
        return _thriftId;
-
 
3255
      }
-
 
3256
 
-
 
3257
      public String getFieldName() {
-
 
3258
        return _fieldName;
-
 
3259
      }
-
 
3260
    }
-
 
3261
 
-
 
3262
    // isset id assignments
-
 
3263
 
-
 
3264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
3265
    static {
-
 
3266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3267
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3268
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
3269
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
3270
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItem_result.class, metaDataMap);
-
 
3271
    }
-
 
3272
 
-
 
3273
    public scanSerializedItem_result() {
-
 
3274
    }
-
 
3275
 
-
 
3276
    public scanSerializedItem_result(
-
 
3277
      WarehouseServiceException wex)
-
 
3278
    {
-
 
3279
      this();
-
 
3280
      this.wex = wex;
-
 
3281
    }
-
 
3282
 
-
 
3283
    /**
-
 
3284
     * Performs a deep copy on <i>other</i>.
-
 
3285
     */
-
 
3286
    public scanSerializedItem_result(scanSerializedItem_result other) {
-
 
3287
      if (other.isSetWex()) {
-
 
3288
        this.wex = new WarehouseServiceException(other.wex);
-
 
3289
      }
-
 
3290
    }
-
 
3291
 
-
 
3292
    public scanSerializedItem_result deepCopy() {
-
 
3293
      return new scanSerializedItem_result(this);
-
 
3294
    }
-
 
3295
 
-
 
3296
    @Override
-
 
3297
    public void clear() {
-
 
3298
      this.wex = null;
-
 
3299
    }
-
 
3300
 
-
 
3301
    public WarehouseServiceException getWex() {
-
 
3302
      return this.wex;
-
 
3303
    }
-
 
3304
 
-
 
3305
    public void setWex(WarehouseServiceException wex) {
-
 
3306
      this.wex = wex;
-
 
3307
    }
-
 
3308
 
-
 
3309
    public void unsetWex() {
-
 
3310
      this.wex = null;
-
 
3311
    }
-
 
3312
 
-
 
3313
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
3314
    public boolean isSetWex() {
-
 
3315
      return this.wex != null;
-
 
3316
    }
-
 
3317
 
-
 
3318
    public void setWexIsSet(boolean value) {
-
 
3319
      if (!value) {
-
 
3320
        this.wex = null;
-
 
3321
      }
-
 
3322
    }
-
 
3323
 
-
 
3324
    public void setFieldValue(_Fields field, Object value) {
-
 
3325
      switch (field) {
-
 
3326
      case WEX:
-
 
3327
        if (value == null) {
-
 
3328
          unsetWex();
-
 
3329
        } else {
-
 
3330
          setWex((WarehouseServiceException)value);
-
 
3331
        }
-
 
3332
        break;
-
 
3333
 
-
 
3334
      }
-
 
3335
    }
-
 
3336
 
-
 
3337
    public Object getFieldValue(_Fields field) {
-
 
3338
      switch (field) {
-
 
3339
      case WEX:
-
 
3340
        return getWex();
-
 
3341
 
-
 
3342
      }
-
 
3343
      throw new IllegalStateException();
-
 
3344
    }
-
 
3345
 
-
 
3346
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
3347
    public boolean isSet(_Fields field) {
-
 
3348
      if (field == null) {
-
 
3349
        throw new IllegalArgumentException();
-
 
3350
      }
-
 
3351
 
-
 
3352
      switch (field) {
-
 
3353
      case WEX:
-
 
3354
        return isSetWex();
-
 
3355
      }
-
 
3356
      throw new IllegalStateException();
-
 
3357
    }
-
 
3358
 
-
 
3359
    @Override
-
 
3360
    public boolean equals(Object that) {
-
 
3361
      if (that == null)
-
 
3362
        return false;
-
 
3363
      if (that instanceof scanSerializedItem_result)
-
 
3364
        return this.equals((scanSerializedItem_result)that);
-
 
3365
      return false;
-
 
3366
    }
-
 
3367
 
-
 
3368
    public boolean equals(scanSerializedItem_result that) {
-
 
3369
      if (that == null)
-
 
3370
        return false;
-
 
3371
 
-
 
3372
      boolean this_present_wex = true && this.isSetWex();
-
 
3373
      boolean that_present_wex = true && that.isSetWex();
-
 
3374
      if (this_present_wex || that_present_wex) {
-
 
3375
        if (!(this_present_wex && that_present_wex))
-
 
3376
          return false;
-
 
3377
        if (!this.wex.equals(that.wex))
-
 
3378
          return false;
-
 
3379
      }
-
 
3380
 
-
 
3381
      return true;
-
 
3382
    }
-
 
3383
 
-
 
3384
    @Override
-
 
3385
    public int hashCode() {
-
 
3386
      return 0;
-
 
3387
    }
-
 
3388
 
-
 
3389
    public int compareTo(scanSerializedItem_result other) {
-
 
3390
      if (!getClass().equals(other.getClass())) {
-
 
3391
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3392
      }
-
 
3393
 
-
 
3394
      int lastComparison = 0;
-
 
3395
      scanSerializedItem_result typedOther = (scanSerializedItem_result)other;
-
 
3396
 
-
 
3397
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
3398
      if (lastComparison != 0) {
-
 
3399
        return lastComparison;
-
 
3400
      }
-
 
3401
      if (isSetWex()) {
-
 
3402
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
3403
        if (lastComparison != 0) {
-
 
3404
          return lastComparison;
-
 
3405
        }
-
 
3406
      }
-
 
3407
      return 0;
-
 
3408
    }
-
 
3409
 
-
 
3410
    public _Fields fieldForId(int fieldId) {
-
 
3411
      return _Fields.findByThriftId(fieldId);
-
 
3412
    }
-
 
3413
 
-
 
3414
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
3415
      org.apache.thrift.protocol.TField field;
-
 
3416
      iprot.readStructBegin();
-
 
3417
      while (true)
-
 
3418
      {
-
 
3419
        field = iprot.readFieldBegin();
-
 
3420
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
3421
          break;
-
 
3422
        }
-
 
3423
        switch (field.id) {
-
 
3424
          case 1: // WEX
-
 
3425
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
3426
              this.wex = new WarehouseServiceException();
-
 
3427
              this.wex.read(iprot);
-
 
3428
            } else { 
-
 
3429
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3430
            }
-
 
3431
            break;
-
 
3432
          default:
-
 
3433
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3434
        }
-
 
3435
        iprot.readFieldEnd();
-
 
3436
      }
-
 
3437
      iprot.readStructEnd();
-
 
3438
      validate();
-
 
3439
    }
-
 
3440
 
-
 
3441
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
3442
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3443
 
-
 
3444
      if (this.isSetWex()) {
-
 
3445
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
3446
        this.wex.write(oprot);
-
 
3447
        oprot.writeFieldEnd();
-
 
3448
      }
-
 
3449
      oprot.writeFieldStop();
-
 
3450
      oprot.writeStructEnd();
-
 
3451
    }
-
 
3452
 
-
 
3453
    @Override
-
 
3454
    public String toString() {
-
 
3455
      StringBuilder sb = new StringBuilder("scanSerializedItem_result(");
-
 
3456
      boolean first = true;
-
 
3457
 
-
 
3458
      sb.append("wex:");
-
 
3459
      if (this.wex == null) {
-
 
3460
        sb.append("null");
-
 
3461
      } else {
-
 
3462
        sb.append(this.wex);
-
 
3463
      }
2684
      }
3464
      first = false;
2685
      first = false;
3465
      sb.append(")");
2686
      sb.append(")");
3466
      return sb.toString();
2687
      return sb.toString();
3467
    }
2688
    }