Subversion Repositories SmartDukaan

Rev

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

Rev 21242 Rev 21617
Line 379... Line 379...
379
     */
379
     */
380
    public List<TransferInvoiceScan> fetchScansPerTransferInvoiceNumber(long date) throws org.apache.thrift.TException;
380
    public List<TransferInvoiceScan> fetchScansPerTransferInvoiceNumber(long date) throws org.apache.thrift.TException;
381
 
381
 
382
    public List<InventoryItem> getInventoryItems(List<String> serialNumbers) throws WarehouseServiceException, org.apache.thrift.TException;
382
    public List<InventoryItem> getInventoryItems(List<String> serialNumbers) throws WarehouseServiceException, org.apache.thrift.TException;
383
 
383
 
-
 
384
    public List<InventoryItem> getInventoryItemsBySerailNumbers(List<String> serialNumbers) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
385
 
-
 
386
    public void scanPurchaseBulk(List<InventoryItem> inventoryItems) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
387
 
384
  }
388
  }
385
 
389
 
386
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
390
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
387
 
391
 
388
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
392
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 527... Line 531...
527
 
531
 
528
    public void fetchScansPerTransferInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerTransferInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
532
    public void fetchScansPerTransferInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerTransferInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
529
 
533
 
530
    public void getInventoryItems(List<String> serialNumbers, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItems_call> resultHandler) throws org.apache.thrift.TException;
534
    public void getInventoryItems(List<String> serialNumbers, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItems_call> resultHandler) throws org.apache.thrift.TException;
531
 
535
 
-
 
536
    public void getInventoryItemsBySerailNumbers(List<String> serialNumbers, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsBySerailNumbers_call> resultHandler) throws org.apache.thrift.TException;
-
 
537
 
-
 
538
    public void scanPurchaseBulk(List<InventoryItem> inventoryItems, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanPurchaseBulk_call> resultHandler) throws org.apache.thrift.TException;
-
 
539
 
532
  }
540
  }
533
 
541
 
534
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
542
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
535
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
543
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
536
      public Factory() {}
544
      public Factory() {}
Line 2377... Line 2385...
2377
        throw result.wex;
2385
        throw result.wex;
2378
      }
2386
      }
2379
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItems failed: unknown result");
2387
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItems failed: unknown result");
2380
    }
2388
    }
2381
 
2389
 
-
 
2390
    public List<InventoryItem> getInventoryItemsBySerailNumbers(List<String> serialNumbers) throws WarehouseServiceException, org.apache.thrift.TException
-
 
2391
    {
-
 
2392
      send_getInventoryItemsBySerailNumbers(serialNumbers);
-
 
2393
      return recv_getInventoryItemsBySerailNumbers();
-
 
2394
    }
-
 
2395
 
-
 
2396
    public void send_getInventoryItemsBySerailNumbers(List<String> serialNumbers) throws org.apache.thrift.TException
-
 
2397
    {
-
 
2398
      getInventoryItemsBySerailNumbers_args args = new getInventoryItemsBySerailNumbers_args();
-
 
2399
      args.setSerialNumbers(serialNumbers);
-
 
2400
      sendBase("getInventoryItemsBySerailNumbers", args);
-
 
2401
    }
-
 
2402
 
-
 
2403
    public List<InventoryItem> recv_getInventoryItemsBySerailNumbers() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2404
    {
-
 
2405
      getInventoryItemsBySerailNumbers_result result = new getInventoryItemsBySerailNumbers_result();
-
 
2406
      receiveBase(result, "getInventoryItemsBySerailNumbers");
-
 
2407
      if (result.isSetSuccess()) {
-
 
2408
        return result.success;
-
 
2409
      }
-
 
2410
      if (result.wex != null) {
-
 
2411
        throw result.wex;
-
 
2412
      }
-
 
2413
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemsBySerailNumbers failed: unknown result");
-
 
2414
    }
-
 
2415
 
-
 
2416
    public void scanPurchaseBulk(List<InventoryItem> inventoryItems) throws WarehouseServiceException, org.apache.thrift.TException
-
 
2417
    {
-
 
2418
      send_scanPurchaseBulk(inventoryItems);
-
 
2419
      recv_scanPurchaseBulk();
-
 
2420
    }
-
 
2421
 
-
 
2422
    public void send_scanPurchaseBulk(List<InventoryItem> inventoryItems) throws org.apache.thrift.TException
-
 
2423
    {
-
 
2424
      scanPurchaseBulk_args args = new scanPurchaseBulk_args();
-
 
2425
      args.setInventoryItems(inventoryItems);
-
 
2426
      sendBase("scanPurchaseBulk", args);
-
 
2427
    }
-
 
2428
 
-
 
2429
    public void recv_scanPurchaseBulk() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2430
    {
-
 
2431
      scanPurchaseBulk_result result = new scanPurchaseBulk_result();
-
 
2432
      receiveBase(result, "scanPurchaseBulk");
-
 
2433
      if (result.wex != null) {
-
 
2434
        throw result.wex;
-
 
2435
      }
-
 
2436
      return;
-
 
2437
    }
-
 
2438
 
2382
  }
2439
  }
2383
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2440
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2384
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2441
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2385
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2442
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2386
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2443
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4927... Line 4984...
4927
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4984
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4928
        return (new Client(prot)).recv_getInventoryItems();
4985
        return (new Client(prot)).recv_getInventoryItems();
4929
      }
4986
      }
4930
    }
4987
    }
4931
 
4988
 
-
 
4989
    public void getInventoryItemsBySerailNumbers(List<String> serialNumbers, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsBySerailNumbers_call> resultHandler) throws org.apache.thrift.TException {
-
 
4990
      checkReady();
-
 
4991
      getInventoryItemsBySerailNumbers_call method_call = new getInventoryItemsBySerailNumbers_call(serialNumbers, resultHandler, this, ___protocolFactory, ___transport);
-
 
4992
      this.___currentMethod = method_call;
-
 
4993
      ___manager.call(method_call);
-
 
4994
    }
-
 
4995
 
-
 
4996
    public static class getInventoryItemsBySerailNumbers_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4997
      private List<String> serialNumbers;
-
 
4998
      public getInventoryItemsBySerailNumbers_call(List<String> serialNumbers, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsBySerailNumbers_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 {
-
 
4999
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5000
        this.serialNumbers = serialNumbers;
-
 
5001
      }
-
 
5002
 
-
 
5003
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5004
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsBySerailNumbers", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5005
        getInventoryItemsBySerailNumbers_args args = new getInventoryItemsBySerailNumbers_args();
-
 
5006
        args.setSerialNumbers(serialNumbers);
-
 
5007
        args.write(prot);
-
 
5008
        prot.writeMessageEnd();
-
 
5009
      }
-
 
5010
 
-
 
5011
      public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
5012
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5013
          throw new IllegalStateException("Method call not finished!");
-
 
5014
        }
-
 
5015
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5016
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5017
        return (new Client(prot)).recv_getInventoryItemsBySerailNumbers();
-
 
5018
      }
-
 
5019
    }
-
 
5020
 
-
 
5021
    public void scanPurchaseBulk(List<InventoryItem> inventoryItems, org.apache.thrift.async.AsyncMethodCallback<scanPurchaseBulk_call> resultHandler) throws org.apache.thrift.TException {
-
 
5022
      checkReady();
-
 
5023
      scanPurchaseBulk_call method_call = new scanPurchaseBulk_call(inventoryItems, resultHandler, this, ___protocolFactory, ___transport);
-
 
5024
      this.___currentMethod = method_call;
-
 
5025
      ___manager.call(method_call);
-
 
5026
    }
-
 
5027
 
-
 
5028
    public static class scanPurchaseBulk_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5029
      private List<InventoryItem> inventoryItems;
-
 
5030
      public scanPurchaseBulk_call(List<InventoryItem> inventoryItems, org.apache.thrift.async.AsyncMethodCallback<scanPurchaseBulk_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 {
-
 
5031
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5032
        this.inventoryItems = inventoryItems;
-
 
5033
      }
-
 
5034
 
-
 
5035
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5036
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanPurchaseBulk", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5037
        scanPurchaseBulk_args args = new scanPurchaseBulk_args();
-
 
5038
        args.setInventoryItems(inventoryItems);
-
 
5039
        args.write(prot);
-
 
5040
        prot.writeMessageEnd();
-
 
5041
      }
-
 
5042
 
-
 
5043
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
5044
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5045
          throw new IllegalStateException("Method call not finished!");
-
 
5046
        }
-
 
5047
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5048
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5049
        (new Client(prot)).recv_scanPurchaseBulk();
-
 
5050
      }
-
 
5051
    }
-
 
5052
 
4932
  }
5053
  }
4933
 
5054
 
4934
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5055
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4935
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5056
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4936
    public Processor(I iface) {
5057
    public Processor(I iface) {
Line 5012... Line 5133...
5012
      processMap.put("getRemovalStockShipmentReferenceById", new getRemovalStockShipmentReferenceById());
5133
      processMap.put("getRemovalStockShipmentReferenceById", new getRemovalStockShipmentReferenceById());
5013
      processMap.put("createRemovalStockShipmentReference", new createRemovalStockShipmentReference());
5134
      processMap.put("createRemovalStockShipmentReference", new createRemovalStockShipmentReference());
5014
      processMap.put("updateShipmentReferenceTransferLot", new updateShipmentReferenceTransferLot());
5135
      processMap.put("updateShipmentReferenceTransferLot", new updateShipmentReferenceTransferLot());
5015
      processMap.put("fetchScansPerTransferInvoiceNumber", new fetchScansPerTransferInvoiceNumber());
5136
      processMap.put("fetchScansPerTransferInvoiceNumber", new fetchScansPerTransferInvoiceNumber());
5016
      processMap.put("getInventoryItems", new getInventoryItems());
5137
      processMap.put("getInventoryItems", new getInventoryItems());
-
 
5138
      processMap.put("getInventoryItemsBySerailNumbers", new getInventoryItemsBySerailNumbers());
-
 
5139
      processMap.put("scanPurchaseBulk", new scanPurchaseBulk());
5017
      return processMap;
5140
      return processMap;
5018
    }
5141
    }
5019
 
5142
 
5020
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
5143
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
5021
      public getInventoryItem() {
5144
      public getInventoryItem() {
Line 6359... Line 6482...
6359
        }
6482
        }
6360
        return result;
6483
        return result;
6361
      }
6484
      }
6362
    }
6485
    }
6363
 
6486
 
-
 
6487
    private static class getInventoryItemsBySerailNumbers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsBySerailNumbers_args> {
-
 
6488
      public getInventoryItemsBySerailNumbers() {
-
 
6489
        super("getInventoryItemsBySerailNumbers");
-
 
6490
      }
-
 
6491
 
-
 
6492
      protected getInventoryItemsBySerailNumbers_args getEmptyArgsInstance() {
-
 
6493
        return new getInventoryItemsBySerailNumbers_args();
-
 
6494
      }
-
 
6495
 
-
 
6496
      protected getInventoryItemsBySerailNumbers_result getResult(I iface, getInventoryItemsBySerailNumbers_args args) throws org.apache.thrift.TException {
-
 
6497
        getInventoryItemsBySerailNumbers_result result = new getInventoryItemsBySerailNumbers_result();
-
 
6498
        try {
-
 
6499
          result.success = iface.getInventoryItemsBySerailNumbers(args.serialNumbers);
-
 
6500
        } catch (WarehouseServiceException wex) {
-
 
6501
          result.wex = wex;
-
 
6502
        }
-
 
6503
        return result;
-
 
6504
      }
-
 
6505
    }
-
 
6506
 
-
 
6507
    private static class scanPurchaseBulk<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanPurchaseBulk_args> {
-
 
6508
      public scanPurchaseBulk() {
-
 
6509
        super("scanPurchaseBulk");
-
 
6510
      }
-
 
6511
 
-
 
6512
      protected scanPurchaseBulk_args getEmptyArgsInstance() {
-
 
6513
        return new scanPurchaseBulk_args();
-
 
6514
      }
-
 
6515
 
-
 
6516
      protected scanPurchaseBulk_result getResult(I iface, scanPurchaseBulk_args args) throws org.apache.thrift.TException {
-
 
6517
        scanPurchaseBulk_result result = new scanPurchaseBulk_result();
-
 
6518
        try {
-
 
6519
          iface.scanPurchaseBulk(args.inventoryItems);
-
 
6520
        } catch (WarehouseServiceException wex) {
-
 
6521
          result.wex = wex;
-
 
6522
        }
-
 
6523
        return result;
-
 
6524
      }
-
 
6525
    }
-
 
6526
 
6364
  }
6527
  }
6365
 
6528
 
6366
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
6529
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
6367
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
6530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
6368
 
6531
 
Line 59893... Line 60056...
59893
      sb.append("wex:");
60056
      sb.append("wex:");
59894
      if (this.wex == null) {
60057
      if (this.wex == null) {
59895
        sb.append("null");
60058
        sb.append("null");
59896
      } else {
60059
      } else {
59897
        sb.append(this.wex);
60060
        sb.append(this.wex);
-
 
60061
      }
-
 
60062
      first = false;
-
 
60063
      sb.append(")");
-
 
60064
      return sb.toString();
-
 
60065
    }
-
 
60066
 
-
 
60067
    public void validate() throws org.apache.thrift.TException {
-
 
60068
      // check for required fields
-
 
60069
    }
-
 
60070
 
-
 
60071
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
60072
      try {
-
 
60073
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
60074
      } catch (org.apache.thrift.TException te) {
-
 
60075
        throw new java.io.IOException(te);
-
 
60076
      }
-
 
60077
    }
-
 
60078
 
-
 
60079
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
60080
      try {
-
 
60081
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
60082
      } catch (org.apache.thrift.TException te) {
-
 
60083
        throw new java.io.IOException(te);
-
 
60084
      }
-
 
60085
    }
-
 
60086
 
-
 
60087
  }
-
 
60088
 
-
 
60089
  public static class getInventoryItemsBySerailNumbers_args implements org.apache.thrift.TBase<getInventoryItemsBySerailNumbers_args, getInventoryItemsBySerailNumbers_args._Fields>, java.io.Serializable, Cloneable   {
-
 
60090
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsBySerailNumbers_args");
-
 
60091
 
-
 
60092
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBERS_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumbers", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
60093
 
-
 
60094
    private List<String> serialNumbers; // required
-
 
60095
 
-
 
60096
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
60097
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
60098
      SERIAL_NUMBERS((short)1, "serialNumbers");
-
 
60099
 
-
 
60100
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
60101
 
-
 
60102
      static {
-
 
60103
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
60104
          byName.put(field.getFieldName(), field);
-
 
60105
        }
-
 
60106
      }
-
 
60107
 
-
 
60108
      /**
-
 
60109
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
60110
       */
-
 
60111
      public static _Fields findByThriftId(int fieldId) {
-
 
60112
        switch(fieldId) {
-
 
60113
          case 1: // SERIAL_NUMBERS
-
 
60114
            return SERIAL_NUMBERS;
-
 
60115
          default:
-
 
60116
            return null;
-
 
60117
        }
-
 
60118
      }
-
 
60119
 
-
 
60120
      /**
-
 
60121
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
60122
       * if it is not found.
-
 
60123
       */
-
 
60124
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
60125
        _Fields fields = findByThriftId(fieldId);
-
 
60126
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
60127
        return fields;
-
 
60128
      }
-
 
60129
 
-
 
60130
      /**
-
 
60131
       * Find the _Fields constant that matches name, or null if its not found.
-
 
60132
       */
-
 
60133
      public static _Fields findByName(String name) {
-
 
60134
        return byName.get(name);
-
 
60135
      }
-
 
60136
 
-
 
60137
      private final short _thriftId;
-
 
60138
      private final String _fieldName;
-
 
60139
 
-
 
60140
      _Fields(short thriftId, String fieldName) {
-
 
60141
        _thriftId = thriftId;
-
 
60142
        _fieldName = fieldName;
-
 
60143
      }
-
 
60144
 
-
 
60145
      public short getThriftFieldId() {
-
 
60146
        return _thriftId;
-
 
60147
      }
-
 
60148
 
-
 
60149
      public String getFieldName() {
-
 
60150
        return _fieldName;
-
 
60151
      }
-
 
60152
    }
-
 
60153
 
-
 
60154
    // isset id assignments
-
 
60155
 
-
 
60156
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
60157
    static {
-
 
60158
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
60159
      tmpMap.put(_Fields.SERIAL_NUMBERS, new org.apache.thrift.meta_data.FieldMetaData("serialNumbers", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60160
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
60161
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
60162
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
60163
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsBySerailNumbers_args.class, metaDataMap);
-
 
60164
    }
-
 
60165
 
-
 
60166
    public getInventoryItemsBySerailNumbers_args() {
-
 
60167
    }
-
 
60168
 
-
 
60169
    public getInventoryItemsBySerailNumbers_args(
-
 
60170
      List<String> serialNumbers)
-
 
60171
    {
-
 
60172
      this();
-
 
60173
      this.serialNumbers = serialNumbers;
-
 
60174
    }
-
 
60175
 
-
 
60176
    /**
-
 
60177
     * Performs a deep copy on <i>other</i>.
-
 
60178
     */
-
 
60179
    public getInventoryItemsBySerailNumbers_args(getInventoryItemsBySerailNumbers_args other) {
-
 
60180
      if (other.isSetSerialNumbers()) {
-
 
60181
        List<String> __this__serialNumbers = new ArrayList<String>();
-
 
60182
        for (String other_element : other.serialNumbers) {
-
 
60183
          __this__serialNumbers.add(other_element);
-
 
60184
        }
-
 
60185
        this.serialNumbers = __this__serialNumbers;
-
 
60186
      }
-
 
60187
    }
-
 
60188
 
-
 
60189
    public getInventoryItemsBySerailNumbers_args deepCopy() {
-
 
60190
      return new getInventoryItemsBySerailNumbers_args(this);
-
 
60191
    }
-
 
60192
 
-
 
60193
    @Override
-
 
60194
    public void clear() {
-
 
60195
      this.serialNumbers = null;
-
 
60196
    }
-
 
60197
 
-
 
60198
    public int getSerialNumbersSize() {
-
 
60199
      return (this.serialNumbers == null) ? 0 : this.serialNumbers.size();
-
 
60200
    }
-
 
60201
 
-
 
60202
    public java.util.Iterator<String> getSerialNumbersIterator() {
-
 
60203
      return (this.serialNumbers == null) ? null : this.serialNumbers.iterator();
-
 
60204
    }
-
 
60205
 
-
 
60206
    public void addToSerialNumbers(String elem) {
-
 
60207
      if (this.serialNumbers == null) {
-
 
60208
        this.serialNumbers = new ArrayList<String>();
-
 
60209
      }
-
 
60210
      this.serialNumbers.add(elem);
-
 
60211
    }
-
 
60212
 
-
 
60213
    public List<String> getSerialNumbers() {
-
 
60214
      return this.serialNumbers;
-
 
60215
    }
-
 
60216
 
-
 
60217
    public void setSerialNumbers(List<String> serialNumbers) {
-
 
60218
      this.serialNumbers = serialNumbers;
-
 
60219
    }
-
 
60220
 
-
 
60221
    public void unsetSerialNumbers() {
-
 
60222
      this.serialNumbers = null;
-
 
60223
    }
-
 
60224
 
-
 
60225
    /** Returns true if field serialNumbers is set (has been assigned a value) and false otherwise */
-
 
60226
    public boolean isSetSerialNumbers() {
-
 
60227
      return this.serialNumbers != null;
-
 
60228
    }
-
 
60229
 
-
 
60230
    public void setSerialNumbersIsSet(boolean value) {
-
 
60231
      if (!value) {
-
 
60232
        this.serialNumbers = null;
-
 
60233
      }
-
 
60234
    }
-
 
60235
 
-
 
60236
    public void setFieldValue(_Fields field, Object value) {
-
 
60237
      switch (field) {
-
 
60238
      case SERIAL_NUMBERS:
-
 
60239
        if (value == null) {
-
 
60240
          unsetSerialNumbers();
-
 
60241
        } else {
-
 
60242
          setSerialNumbers((List<String>)value);
-
 
60243
        }
-
 
60244
        break;
-
 
60245
 
-
 
60246
      }
-
 
60247
    }
-
 
60248
 
-
 
60249
    public Object getFieldValue(_Fields field) {
-
 
60250
      switch (field) {
-
 
60251
      case SERIAL_NUMBERS:
-
 
60252
        return getSerialNumbers();
-
 
60253
 
-
 
60254
      }
-
 
60255
      throw new IllegalStateException();
-
 
60256
    }
-
 
60257
 
-
 
60258
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
60259
    public boolean isSet(_Fields field) {
-
 
60260
      if (field == null) {
-
 
60261
        throw new IllegalArgumentException();
-
 
60262
      }
-
 
60263
 
-
 
60264
      switch (field) {
-
 
60265
      case SERIAL_NUMBERS:
-
 
60266
        return isSetSerialNumbers();
-
 
60267
      }
-
 
60268
      throw new IllegalStateException();
-
 
60269
    }
-
 
60270
 
-
 
60271
    @Override
-
 
60272
    public boolean equals(Object that) {
-
 
60273
      if (that == null)
-
 
60274
        return false;
-
 
60275
      if (that instanceof getInventoryItemsBySerailNumbers_args)
-
 
60276
        return this.equals((getInventoryItemsBySerailNumbers_args)that);
-
 
60277
      return false;
-
 
60278
    }
-
 
60279
 
-
 
60280
    public boolean equals(getInventoryItemsBySerailNumbers_args that) {
-
 
60281
      if (that == null)
-
 
60282
        return false;
-
 
60283
 
-
 
60284
      boolean this_present_serialNumbers = true && this.isSetSerialNumbers();
-
 
60285
      boolean that_present_serialNumbers = true && that.isSetSerialNumbers();
-
 
60286
      if (this_present_serialNumbers || that_present_serialNumbers) {
-
 
60287
        if (!(this_present_serialNumbers && that_present_serialNumbers))
-
 
60288
          return false;
-
 
60289
        if (!this.serialNumbers.equals(that.serialNumbers))
-
 
60290
          return false;
-
 
60291
      }
-
 
60292
 
-
 
60293
      return true;
-
 
60294
    }
-
 
60295
 
-
 
60296
    @Override
-
 
60297
    public int hashCode() {
-
 
60298
      return 0;
-
 
60299
    }
-
 
60300
 
-
 
60301
    public int compareTo(getInventoryItemsBySerailNumbers_args other) {
-
 
60302
      if (!getClass().equals(other.getClass())) {
-
 
60303
        return getClass().getName().compareTo(other.getClass().getName());
-
 
60304
      }
-
 
60305
 
-
 
60306
      int lastComparison = 0;
-
 
60307
      getInventoryItemsBySerailNumbers_args typedOther = (getInventoryItemsBySerailNumbers_args)other;
-
 
60308
 
-
 
60309
      lastComparison = Boolean.valueOf(isSetSerialNumbers()).compareTo(typedOther.isSetSerialNumbers());
-
 
60310
      if (lastComparison != 0) {
-
 
60311
        return lastComparison;
-
 
60312
      }
-
 
60313
      if (isSetSerialNumbers()) {
-
 
60314
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumbers, typedOther.serialNumbers);
-
 
60315
        if (lastComparison != 0) {
-
 
60316
          return lastComparison;
-
 
60317
        }
-
 
60318
      }
-
 
60319
      return 0;
-
 
60320
    }
-
 
60321
 
-
 
60322
    public _Fields fieldForId(int fieldId) {
-
 
60323
      return _Fields.findByThriftId(fieldId);
-
 
60324
    }
-
 
60325
 
-
 
60326
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
60327
      org.apache.thrift.protocol.TField field;
-
 
60328
      iprot.readStructBegin();
-
 
60329
      while (true)
-
 
60330
      {
-
 
60331
        field = iprot.readFieldBegin();
-
 
60332
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
60333
          break;
-
 
60334
        }
-
 
60335
        switch (field.id) {
-
 
60336
          case 1: // SERIAL_NUMBERS
-
 
60337
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
60338
              {
-
 
60339
                org.apache.thrift.protocol.TList _list198 = iprot.readListBegin();
-
 
60340
                this.serialNumbers = new ArrayList<String>(_list198.size);
-
 
60341
                for (int _i199 = 0; _i199 < _list198.size; ++_i199)
-
 
60342
                {
-
 
60343
                  String _elem200; // required
-
 
60344
                  _elem200 = iprot.readString();
-
 
60345
                  this.serialNumbers.add(_elem200);
-
 
60346
                }
-
 
60347
                iprot.readListEnd();
-
 
60348
              }
-
 
60349
            } else { 
-
 
60350
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60351
            }
-
 
60352
            break;
-
 
60353
          default:
-
 
60354
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60355
        }
-
 
60356
        iprot.readFieldEnd();
-
 
60357
      }
-
 
60358
      iprot.readStructEnd();
-
 
60359
      validate();
-
 
60360
    }
-
 
60361
 
-
 
60362
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
60363
      validate();
-
 
60364
 
-
 
60365
      oprot.writeStructBegin(STRUCT_DESC);
-
 
60366
      if (this.serialNumbers != null) {
-
 
60367
        oprot.writeFieldBegin(SERIAL_NUMBERS_FIELD_DESC);
-
 
60368
        {
-
 
60369
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.serialNumbers.size()));
-
 
60370
          for (String _iter201 : this.serialNumbers)
-
 
60371
          {
-
 
60372
            oprot.writeString(_iter201);
-
 
60373
          }
-
 
60374
          oprot.writeListEnd();
-
 
60375
        }
-
 
60376
        oprot.writeFieldEnd();
-
 
60377
      }
-
 
60378
      oprot.writeFieldStop();
-
 
60379
      oprot.writeStructEnd();
-
 
60380
    }
-
 
60381
 
-
 
60382
    @Override
-
 
60383
    public String toString() {
-
 
60384
      StringBuilder sb = new StringBuilder("getInventoryItemsBySerailNumbers_args(");
-
 
60385
      boolean first = true;
-
 
60386
 
-
 
60387
      sb.append("serialNumbers:");
-
 
60388
      if (this.serialNumbers == null) {
-
 
60389
        sb.append("null");
-
 
60390
      } else {
-
 
60391
        sb.append(this.serialNumbers);
-
 
60392
      }
-
 
60393
      first = false;
-
 
60394
      sb.append(")");
-
 
60395
      return sb.toString();
-
 
60396
    }
-
 
60397
 
-
 
60398
    public void validate() throws org.apache.thrift.TException {
-
 
60399
      // check for required fields
-
 
60400
    }
-
 
60401
 
-
 
60402
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
60403
      try {
-
 
60404
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
60405
      } catch (org.apache.thrift.TException te) {
-
 
60406
        throw new java.io.IOException(te);
-
 
60407
      }
-
 
60408
    }
-
 
60409
 
-
 
60410
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
60411
      try {
-
 
60412
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
60413
      } catch (org.apache.thrift.TException te) {
-
 
60414
        throw new java.io.IOException(te);
-
 
60415
      }
-
 
60416
    }
-
 
60417
 
-
 
60418
  }
-
 
60419
 
-
 
60420
  public static class getInventoryItemsBySerailNumbers_result implements org.apache.thrift.TBase<getInventoryItemsBySerailNumbers_result, getInventoryItemsBySerailNumbers_result._Fields>, java.io.Serializable, Cloneable   {
-
 
60421
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsBySerailNumbers_result");
-
 
60422
 
-
 
60423
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
60424
    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);
-
 
60425
 
-
 
60426
    private List<InventoryItem> success; // required
-
 
60427
    private WarehouseServiceException wex; // required
-
 
60428
 
-
 
60429
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
60430
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
60431
      SUCCESS((short)0, "success"),
-
 
60432
      WEX((short)1, "wex");
-
 
60433
 
-
 
60434
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
60435
 
-
 
60436
      static {
-
 
60437
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
60438
          byName.put(field.getFieldName(), field);
-
 
60439
        }
-
 
60440
      }
-
 
60441
 
-
 
60442
      /**
-
 
60443
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
60444
       */
-
 
60445
      public static _Fields findByThriftId(int fieldId) {
-
 
60446
        switch(fieldId) {
-
 
60447
          case 0: // SUCCESS
-
 
60448
            return SUCCESS;
-
 
60449
          case 1: // WEX
-
 
60450
            return WEX;
-
 
60451
          default:
-
 
60452
            return null;
-
 
60453
        }
-
 
60454
      }
-
 
60455
 
-
 
60456
      /**
-
 
60457
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
60458
       * if it is not found.
-
 
60459
       */
-
 
60460
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
60461
        _Fields fields = findByThriftId(fieldId);
-
 
60462
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
60463
        return fields;
-
 
60464
      }
-
 
60465
 
-
 
60466
      /**
-
 
60467
       * Find the _Fields constant that matches name, or null if its not found.
-
 
60468
       */
-
 
60469
      public static _Fields findByName(String name) {
-
 
60470
        return byName.get(name);
-
 
60471
      }
-
 
60472
 
-
 
60473
      private final short _thriftId;
-
 
60474
      private final String _fieldName;
-
 
60475
 
-
 
60476
      _Fields(short thriftId, String fieldName) {
-
 
60477
        _thriftId = thriftId;
-
 
60478
        _fieldName = fieldName;
-
 
60479
      }
-
 
60480
 
-
 
60481
      public short getThriftFieldId() {
-
 
60482
        return _thriftId;
-
 
60483
      }
-
 
60484
 
-
 
60485
      public String getFieldName() {
-
 
60486
        return _fieldName;
-
 
60487
      }
-
 
60488
    }
-
 
60489
 
-
 
60490
    // isset id assignments
-
 
60491
 
-
 
60492
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
60493
    static {
-
 
60494
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
60495
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60496
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
60497
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
60498
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60499
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
60500
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
60501
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsBySerailNumbers_result.class, metaDataMap);
-
 
60502
    }
-
 
60503
 
-
 
60504
    public getInventoryItemsBySerailNumbers_result() {
-
 
60505
    }
-
 
60506
 
-
 
60507
    public getInventoryItemsBySerailNumbers_result(
-
 
60508
      List<InventoryItem> success,
-
 
60509
      WarehouseServiceException wex)
-
 
60510
    {
-
 
60511
      this();
-
 
60512
      this.success = success;
-
 
60513
      this.wex = wex;
-
 
60514
    }
-
 
60515
 
-
 
60516
    /**
-
 
60517
     * Performs a deep copy on <i>other</i>.
-
 
60518
     */
-
 
60519
    public getInventoryItemsBySerailNumbers_result(getInventoryItemsBySerailNumbers_result other) {
-
 
60520
      if (other.isSetSuccess()) {
-
 
60521
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
-
 
60522
        for (InventoryItem other_element : other.success) {
-
 
60523
          __this__success.add(new InventoryItem(other_element));
-
 
60524
        }
-
 
60525
        this.success = __this__success;
-
 
60526
      }
-
 
60527
      if (other.isSetWex()) {
-
 
60528
        this.wex = new WarehouseServiceException(other.wex);
-
 
60529
      }
-
 
60530
    }
-
 
60531
 
-
 
60532
    public getInventoryItemsBySerailNumbers_result deepCopy() {
-
 
60533
      return new getInventoryItemsBySerailNumbers_result(this);
-
 
60534
    }
-
 
60535
 
-
 
60536
    @Override
-
 
60537
    public void clear() {
-
 
60538
      this.success = null;
-
 
60539
      this.wex = null;
-
 
60540
    }
-
 
60541
 
-
 
60542
    public int getSuccessSize() {
-
 
60543
      return (this.success == null) ? 0 : this.success.size();
-
 
60544
    }
-
 
60545
 
-
 
60546
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
-
 
60547
      return (this.success == null) ? null : this.success.iterator();
-
 
60548
    }
-
 
60549
 
-
 
60550
    public void addToSuccess(InventoryItem elem) {
-
 
60551
      if (this.success == null) {
-
 
60552
        this.success = new ArrayList<InventoryItem>();
-
 
60553
      }
-
 
60554
      this.success.add(elem);
-
 
60555
    }
-
 
60556
 
-
 
60557
    public List<InventoryItem> getSuccess() {
-
 
60558
      return this.success;
-
 
60559
    }
-
 
60560
 
-
 
60561
    public void setSuccess(List<InventoryItem> success) {
-
 
60562
      this.success = success;
-
 
60563
    }
-
 
60564
 
-
 
60565
    public void unsetSuccess() {
-
 
60566
      this.success = null;
-
 
60567
    }
-
 
60568
 
-
 
60569
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
60570
    public boolean isSetSuccess() {
-
 
60571
      return this.success != null;
-
 
60572
    }
-
 
60573
 
-
 
60574
    public void setSuccessIsSet(boolean value) {
-
 
60575
      if (!value) {
-
 
60576
        this.success = null;
-
 
60577
      }
-
 
60578
    }
-
 
60579
 
-
 
60580
    public WarehouseServiceException getWex() {
-
 
60581
      return this.wex;
-
 
60582
    }
-
 
60583
 
-
 
60584
    public void setWex(WarehouseServiceException wex) {
-
 
60585
      this.wex = wex;
-
 
60586
    }
-
 
60587
 
-
 
60588
    public void unsetWex() {
-
 
60589
      this.wex = null;
-
 
60590
    }
-
 
60591
 
-
 
60592
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
60593
    public boolean isSetWex() {
-
 
60594
      return this.wex != null;
-
 
60595
    }
-
 
60596
 
-
 
60597
    public void setWexIsSet(boolean value) {
-
 
60598
      if (!value) {
-
 
60599
        this.wex = null;
-
 
60600
      }
-
 
60601
    }
-
 
60602
 
-
 
60603
    public void setFieldValue(_Fields field, Object value) {
-
 
60604
      switch (field) {
-
 
60605
      case SUCCESS:
-
 
60606
        if (value == null) {
-
 
60607
          unsetSuccess();
-
 
60608
        } else {
-
 
60609
          setSuccess((List<InventoryItem>)value);
-
 
60610
        }
-
 
60611
        break;
-
 
60612
 
-
 
60613
      case WEX:
-
 
60614
        if (value == null) {
-
 
60615
          unsetWex();
-
 
60616
        } else {
-
 
60617
          setWex((WarehouseServiceException)value);
-
 
60618
        }
-
 
60619
        break;
-
 
60620
 
-
 
60621
      }
-
 
60622
    }
-
 
60623
 
-
 
60624
    public Object getFieldValue(_Fields field) {
-
 
60625
      switch (field) {
-
 
60626
      case SUCCESS:
-
 
60627
        return getSuccess();
-
 
60628
 
-
 
60629
      case WEX:
-
 
60630
        return getWex();
-
 
60631
 
-
 
60632
      }
-
 
60633
      throw new IllegalStateException();
-
 
60634
    }
-
 
60635
 
-
 
60636
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
60637
    public boolean isSet(_Fields field) {
-
 
60638
      if (field == null) {
-
 
60639
        throw new IllegalArgumentException();
-
 
60640
      }
-
 
60641
 
-
 
60642
      switch (field) {
-
 
60643
      case SUCCESS:
-
 
60644
        return isSetSuccess();
-
 
60645
      case WEX:
-
 
60646
        return isSetWex();
-
 
60647
      }
-
 
60648
      throw new IllegalStateException();
-
 
60649
    }
-
 
60650
 
-
 
60651
    @Override
-
 
60652
    public boolean equals(Object that) {
-
 
60653
      if (that == null)
-
 
60654
        return false;
-
 
60655
      if (that instanceof getInventoryItemsBySerailNumbers_result)
-
 
60656
        return this.equals((getInventoryItemsBySerailNumbers_result)that);
-
 
60657
      return false;
-
 
60658
    }
-
 
60659
 
-
 
60660
    public boolean equals(getInventoryItemsBySerailNumbers_result that) {
-
 
60661
      if (that == null)
-
 
60662
        return false;
-
 
60663
 
-
 
60664
      boolean this_present_success = true && this.isSetSuccess();
-
 
60665
      boolean that_present_success = true && that.isSetSuccess();
-
 
60666
      if (this_present_success || that_present_success) {
-
 
60667
        if (!(this_present_success && that_present_success))
-
 
60668
          return false;
-
 
60669
        if (!this.success.equals(that.success))
-
 
60670
          return false;
-
 
60671
      }
-
 
60672
 
-
 
60673
      boolean this_present_wex = true && this.isSetWex();
-
 
60674
      boolean that_present_wex = true && that.isSetWex();
-
 
60675
      if (this_present_wex || that_present_wex) {
-
 
60676
        if (!(this_present_wex && that_present_wex))
-
 
60677
          return false;
-
 
60678
        if (!this.wex.equals(that.wex))
-
 
60679
          return false;
-
 
60680
      }
-
 
60681
 
-
 
60682
      return true;
-
 
60683
    }
-
 
60684
 
-
 
60685
    @Override
-
 
60686
    public int hashCode() {
-
 
60687
      return 0;
-
 
60688
    }
-
 
60689
 
-
 
60690
    public int compareTo(getInventoryItemsBySerailNumbers_result other) {
-
 
60691
      if (!getClass().equals(other.getClass())) {
-
 
60692
        return getClass().getName().compareTo(other.getClass().getName());
-
 
60693
      }
-
 
60694
 
-
 
60695
      int lastComparison = 0;
-
 
60696
      getInventoryItemsBySerailNumbers_result typedOther = (getInventoryItemsBySerailNumbers_result)other;
-
 
60697
 
-
 
60698
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
60699
      if (lastComparison != 0) {
-
 
60700
        return lastComparison;
-
 
60701
      }
-
 
60702
      if (isSetSuccess()) {
-
 
60703
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
60704
        if (lastComparison != 0) {
-
 
60705
          return lastComparison;
-
 
60706
        }
-
 
60707
      }
-
 
60708
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
60709
      if (lastComparison != 0) {
-
 
60710
        return lastComparison;
-
 
60711
      }
-
 
60712
      if (isSetWex()) {
-
 
60713
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
60714
        if (lastComparison != 0) {
-
 
60715
          return lastComparison;
-
 
60716
        }
-
 
60717
      }
-
 
60718
      return 0;
-
 
60719
    }
-
 
60720
 
-
 
60721
    public _Fields fieldForId(int fieldId) {
-
 
60722
      return _Fields.findByThriftId(fieldId);
-
 
60723
    }
-
 
60724
 
-
 
60725
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
60726
      org.apache.thrift.protocol.TField field;
-
 
60727
      iprot.readStructBegin();
-
 
60728
      while (true)
-
 
60729
      {
-
 
60730
        field = iprot.readFieldBegin();
-
 
60731
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
60732
          break;
-
 
60733
        }
-
 
60734
        switch (field.id) {
-
 
60735
          case 0: // SUCCESS
-
 
60736
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
60737
              {
-
 
60738
                org.apache.thrift.protocol.TList _list202 = iprot.readListBegin();
-
 
60739
                this.success = new ArrayList<InventoryItem>(_list202.size);
-
 
60740
                for (int _i203 = 0; _i203 < _list202.size; ++_i203)
-
 
60741
                {
-
 
60742
                  InventoryItem _elem204; // required
-
 
60743
                  _elem204 = new InventoryItem();
-
 
60744
                  _elem204.read(iprot);
-
 
60745
                  this.success.add(_elem204);
-
 
60746
                }
-
 
60747
                iprot.readListEnd();
-
 
60748
              }
-
 
60749
            } else { 
-
 
60750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60751
            }
-
 
60752
            break;
-
 
60753
          case 1: // WEX
-
 
60754
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
60755
              this.wex = new WarehouseServiceException();
-
 
60756
              this.wex.read(iprot);
-
 
60757
            } else { 
-
 
60758
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60759
            }
-
 
60760
            break;
-
 
60761
          default:
-
 
60762
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60763
        }
-
 
60764
        iprot.readFieldEnd();
-
 
60765
      }
-
 
60766
      iprot.readStructEnd();
-
 
60767
      validate();
-
 
60768
    }
-
 
60769
 
-
 
60770
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
60771
      oprot.writeStructBegin(STRUCT_DESC);
-
 
60772
 
-
 
60773
      if (this.isSetSuccess()) {
-
 
60774
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
60775
        {
-
 
60776
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
60777
          for (InventoryItem _iter205 : this.success)
-
 
60778
          {
-
 
60779
            _iter205.write(oprot);
-
 
60780
          }
-
 
60781
          oprot.writeListEnd();
-
 
60782
        }
-
 
60783
        oprot.writeFieldEnd();
-
 
60784
      } else if (this.isSetWex()) {
-
 
60785
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
60786
        this.wex.write(oprot);
-
 
60787
        oprot.writeFieldEnd();
-
 
60788
      }
-
 
60789
      oprot.writeFieldStop();
-
 
60790
      oprot.writeStructEnd();
-
 
60791
    }
-
 
60792
 
-
 
60793
    @Override
-
 
60794
    public String toString() {
-
 
60795
      StringBuilder sb = new StringBuilder("getInventoryItemsBySerailNumbers_result(");
-
 
60796
      boolean first = true;
-
 
60797
 
-
 
60798
      sb.append("success:");
-
 
60799
      if (this.success == null) {
-
 
60800
        sb.append("null");
-
 
60801
      } else {
-
 
60802
        sb.append(this.success);
-
 
60803
      }
-
 
60804
      first = false;
-
 
60805
      if (!first) sb.append(", ");
-
 
60806
      sb.append("wex:");
-
 
60807
      if (this.wex == null) {
-
 
60808
        sb.append("null");
-
 
60809
      } else {
-
 
60810
        sb.append(this.wex);
-
 
60811
      }
-
 
60812
      first = false;
-
 
60813
      sb.append(")");
-
 
60814
      return sb.toString();
-
 
60815
    }
-
 
60816
 
-
 
60817
    public void validate() throws org.apache.thrift.TException {
-
 
60818
      // check for required fields
-
 
60819
    }
-
 
60820
 
-
 
60821
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
60822
      try {
-
 
60823
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
60824
      } catch (org.apache.thrift.TException te) {
-
 
60825
        throw new java.io.IOException(te);
-
 
60826
      }
-
 
60827
    }
-
 
60828
 
-
 
60829
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
60830
      try {
-
 
60831
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
60832
      } catch (org.apache.thrift.TException te) {
-
 
60833
        throw new java.io.IOException(te);
-
 
60834
      }
-
 
60835
    }
-
 
60836
 
-
 
60837
  }
-
 
60838
 
-
 
60839
  public static class scanPurchaseBulk_args implements org.apache.thrift.TBase<scanPurchaseBulk_args, scanPurchaseBulk_args._Fields>, java.io.Serializable, Cloneable   {
-
 
60840
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanPurchaseBulk_args");
-
 
60841
 
-
 
60842
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItems", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
60843
 
-
 
60844
    private List<InventoryItem> inventoryItems; // required
-
 
60845
 
-
 
60846
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
60847
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
60848
      INVENTORY_ITEMS((short)1, "inventoryItems");
-
 
60849
 
-
 
60850
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
60851
 
-
 
60852
      static {
-
 
60853
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
60854
          byName.put(field.getFieldName(), field);
-
 
60855
        }
-
 
60856
      }
-
 
60857
 
-
 
60858
      /**
-
 
60859
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
60860
       */
-
 
60861
      public static _Fields findByThriftId(int fieldId) {
-
 
60862
        switch(fieldId) {
-
 
60863
          case 1: // INVENTORY_ITEMS
-
 
60864
            return INVENTORY_ITEMS;
-
 
60865
          default:
-
 
60866
            return null;
-
 
60867
        }
-
 
60868
      }
-
 
60869
 
-
 
60870
      /**
-
 
60871
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
60872
       * if it is not found.
-
 
60873
       */
-
 
60874
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
60875
        _Fields fields = findByThriftId(fieldId);
-
 
60876
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
60877
        return fields;
-
 
60878
      }
-
 
60879
 
-
 
60880
      /**
-
 
60881
       * Find the _Fields constant that matches name, or null if its not found.
-
 
60882
       */
-
 
60883
      public static _Fields findByName(String name) {
-
 
60884
        return byName.get(name);
-
 
60885
      }
-
 
60886
 
-
 
60887
      private final short _thriftId;
-
 
60888
      private final String _fieldName;
-
 
60889
 
-
 
60890
      _Fields(short thriftId, String fieldName) {
-
 
60891
        _thriftId = thriftId;
-
 
60892
        _fieldName = fieldName;
-
 
60893
      }
-
 
60894
 
-
 
60895
      public short getThriftFieldId() {
-
 
60896
        return _thriftId;
-
 
60897
      }
-
 
60898
 
-
 
60899
      public String getFieldName() {
-
 
60900
        return _fieldName;
-
 
60901
      }
-
 
60902
    }
-
 
60903
 
-
 
60904
    // isset id assignments
-
 
60905
 
-
 
60906
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
60907
    static {
-
 
60908
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
60909
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60910
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
60911
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
-
 
60912
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
60913
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanPurchaseBulk_args.class, metaDataMap);
-
 
60914
    }
-
 
60915
 
-
 
60916
    public scanPurchaseBulk_args() {
-
 
60917
    }
-
 
60918
 
-
 
60919
    public scanPurchaseBulk_args(
-
 
60920
      List<InventoryItem> inventoryItems)
-
 
60921
    {
-
 
60922
      this();
-
 
60923
      this.inventoryItems = inventoryItems;
-
 
60924
    }
-
 
60925
 
-
 
60926
    /**
-
 
60927
     * Performs a deep copy on <i>other</i>.
-
 
60928
     */
-
 
60929
    public scanPurchaseBulk_args(scanPurchaseBulk_args other) {
-
 
60930
      if (other.isSetInventoryItems()) {
-
 
60931
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
-
 
60932
        for (InventoryItem other_element : other.inventoryItems) {
-
 
60933
          __this__inventoryItems.add(new InventoryItem(other_element));
-
 
60934
        }
-
 
60935
        this.inventoryItems = __this__inventoryItems;
-
 
60936
      }
-
 
60937
    }
-
 
60938
 
-
 
60939
    public scanPurchaseBulk_args deepCopy() {
-
 
60940
      return new scanPurchaseBulk_args(this);
-
 
60941
    }
-
 
60942
 
-
 
60943
    @Override
-
 
60944
    public void clear() {
-
 
60945
      this.inventoryItems = null;
-
 
60946
    }
-
 
60947
 
-
 
60948
    public int getInventoryItemsSize() {
-
 
60949
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
-
 
60950
    }
-
 
60951
 
-
 
60952
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
-
 
60953
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
-
 
60954
    }
-
 
60955
 
-
 
60956
    public void addToInventoryItems(InventoryItem elem) {
-
 
60957
      if (this.inventoryItems == null) {
-
 
60958
        this.inventoryItems = new ArrayList<InventoryItem>();
-
 
60959
      }
-
 
60960
      this.inventoryItems.add(elem);
-
 
60961
    }
-
 
60962
 
-
 
60963
    public List<InventoryItem> getInventoryItems() {
-
 
60964
      return this.inventoryItems;
-
 
60965
    }
-
 
60966
 
-
 
60967
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
-
 
60968
      this.inventoryItems = inventoryItems;
-
 
60969
    }
-
 
60970
 
-
 
60971
    public void unsetInventoryItems() {
-
 
60972
      this.inventoryItems = null;
-
 
60973
    }
-
 
60974
 
-
 
60975
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
-
 
60976
    public boolean isSetInventoryItems() {
-
 
60977
      return this.inventoryItems != null;
-
 
60978
    }
-
 
60979
 
-
 
60980
    public void setInventoryItemsIsSet(boolean value) {
-
 
60981
      if (!value) {
-
 
60982
        this.inventoryItems = null;
-
 
60983
      }
-
 
60984
    }
-
 
60985
 
-
 
60986
    public void setFieldValue(_Fields field, Object value) {
-
 
60987
      switch (field) {
-
 
60988
      case INVENTORY_ITEMS:
-
 
60989
        if (value == null) {
-
 
60990
          unsetInventoryItems();
-
 
60991
        } else {
-
 
60992
          setInventoryItems((List<InventoryItem>)value);
-
 
60993
        }
-
 
60994
        break;
-
 
60995
 
-
 
60996
      }
-
 
60997
    }
-
 
60998
 
-
 
60999
    public Object getFieldValue(_Fields field) {
-
 
61000
      switch (field) {
-
 
61001
      case INVENTORY_ITEMS:
-
 
61002
        return getInventoryItems();
-
 
61003
 
-
 
61004
      }
-
 
61005
      throw new IllegalStateException();
-
 
61006
    }
-
 
61007
 
-
 
61008
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
61009
    public boolean isSet(_Fields field) {
-
 
61010
      if (field == null) {
-
 
61011
        throw new IllegalArgumentException();
-
 
61012
      }
-
 
61013
 
-
 
61014
      switch (field) {
-
 
61015
      case INVENTORY_ITEMS:
-
 
61016
        return isSetInventoryItems();
-
 
61017
      }
-
 
61018
      throw new IllegalStateException();
-
 
61019
    }
-
 
61020
 
-
 
61021
    @Override
-
 
61022
    public boolean equals(Object that) {
-
 
61023
      if (that == null)
-
 
61024
        return false;
-
 
61025
      if (that instanceof scanPurchaseBulk_args)
-
 
61026
        return this.equals((scanPurchaseBulk_args)that);
-
 
61027
      return false;
-
 
61028
    }
-
 
61029
 
-
 
61030
    public boolean equals(scanPurchaseBulk_args that) {
-
 
61031
      if (that == null)
-
 
61032
        return false;
-
 
61033
 
-
 
61034
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
-
 
61035
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
-
 
61036
      if (this_present_inventoryItems || that_present_inventoryItems) {
-
 
61037
        if (!(this_present_inventoryItems && that_present_inventoryItems))
-
 
61038
          return false;
-
 
61039
        if (!this.inventoryItems.equals(that.inventoryItems))
-
 
61040
          return false;
-
 
61041
      }
-
 
61042
 
-
 
61043
      return true;
-
 
61044
    }
-
 
61045
 
-
 
61046
    @Override
-
 
61047
    public int hashCode() {
-
 
61048
      return 0;
-
 
61049
    }
-
 
61050
 
-
 
61051
    public int compareTo(scanPurchaseBulk_args other) {
-
 
61052
      if (!getClass().equals(other.getClass())) {
-
 
61053
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61054
      }
-
 
61055
 
-
 
61056
      int lastComparison = 0;
-
 
61057
      scanPurchaseBulk_args typedOther = (scanPurchaseBulk_args)other;
-
 
61058
 
-
 
61059
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
-
 
61060
      if (lastComparison != 0) {
-
 
61061
        return lastComparison;
-
 
61062
      }
-
 
61063
      if (isSetInventoryItems()) {
-
 
61064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
-
 
61065
        if (lastComparison != 0) {
-
 
61066
          return lastComparison;
-
 
61067
        }
-
 
61068
      }
-
 
61069
      return 0;
-
 
61070
    }
-
 
61071
 
-
 
61072
    public _Fields fieldForId(int fieldId) {
-
 
61073
      return _Fields.findByThriftId(fieldId);
-
 
61074
    }
-
 
61075
 
-
 
61076
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61077
      org.apache.thrift.protocol.TField field;
-
 
61078
      iprot.readStructBegin();
-
 
61079
      while (true)
-
 
61080
      {
-
 
61081
        field = iprot.readFieldBegin();
-
 
61082
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61083
          break;
-
 
61084
        }
-
 
61085
        switch (field.id) {
-
 
61086
          case 1: // INVENTORY_ITEMS
-
 
61087
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
61088
              {
-
 
61089
                org.apache.thrift.protocol.TList _list206 = iprot.readListBegin();
-
 
61090
                this.inventoryItems = new ArrayList<InventoryItem>(_list206.size);
-
 
61091
                for (int _i207 = 0; _i207 < _list206.size; ++_i207)
-
 
61092
                {
-
 
61093
                  InventoryItem _elem208; // required
-
 
61094
                  _elem208 = new InventoryItem();
-
 
61095
                  _elem208.read(iprot);
-
 
61096
                  this.inventoryItems.add(_elem208);
-
 
61097
                }
-
 
61098
                iprot.readListEnd();
-
 
61099
              }
-
 
61100
            } else { 
-
 
61101
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61102
            }
-
 
61103
            break;
-
 
61104
          default:
-
 
61105
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61106
        }
-
 
61107
        iprot.readFieldEnd();
-
 
61108
      }
-
 
61109
      iprot.readStructEnd();
-
 
61110
      validate();
-
 
61111
    }
-
 
61112
 
-
 
61113
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61114
      validate();
-
 
61115
 
-
 
61116
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61117
      if (this.inventoryItems != null) {
-
 
61118
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
-
 
61119
        {
-
 
61120
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
-
 
61121
          for (InventoryItem _iter209 : this.inventoryItems)
-
 
61122
          {
-
 
61123
            _iter209.write(oprot);
-
 
61124
          }
-
 
61125
          oprot.writeListEnd();
-
 
61126
        }
-
 
61127
        oprot.writeFieldEnd();
-
 
61128
      }
-
 
61129
      oprot.writeFieldStop();
-
 
61130
      oprot.writeStructEnd();
-
 
61131
    }
-
 
61132
 
-
 
61133
    @Override
-
 
61134
    public String toString() {
-
 
61135
      StringBuilder sb = new StringBuilder("scanPurchaseBulk_args(");
-
 
61136
      boolean first = true;
-
 
61137
 
-
 
61138
      sb.append("inventoryItems:");
-
 
61139
      if (this.inventoryItems == null) {
-
 
61140
        sb.append("null");
-
 
61141
      } else {
-
 
61142
        sb.append(this.inventoryItems);
-
 
61143
      }
-
 
61144
      first = false;
-
 
61145
      sb.append(")");
-
 
61146
      return sb.toString();
-
 
61147
    }
-
 
61148
 
-
 
61149
    public void validate() throws org.apache.thrift.TException {
-
 
61150
      // check for required fields
-
 
61151
    }
-
 
61152
 
-
 
61153
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
61154
      try {
-
 
61155
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
61156
      } catch (org.apache.thrift.TException te) {
-
 
61157
        throw new java.io.IOException(te);
-
 
61158
      }
-
 
61159
    }
-
 
61160
 
-
 
61161
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
61162
      try {
-
 
61163
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
61164
      } catch (org.apache.thrift.TException te) {
-
 
61165
        throw new java.io.IOException(te);
-
 
61166
      }
-
 
61167
    }
-
 
61168
 
-
 
61169
  }
-
 
61170
 
-
 
61171
  public static class scanPurchaseBulk_result implements org.apache.thrift.TBase<scanPurchaseBulk_result, scanPurchaseBulk_result._Fields>, java.io.Serializable, Cloneable   {
-
 
61172
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanPurchaseBulk_result");
-
 
61173
 
-
 
61174
    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);
-
 
61175
 
-
 
61176
    private WarehouseServiceException wex; // required
-
 
61177
 
-
 
61178
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
61179
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
61180
      WEX((short)1, "wex");
-
 
61181
 
-
 
61182
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
61183
 
-
 
61184
      static {
-
 
61185
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
61186
          byName.put(field.getFieldName(), field);
-
 
61187
        }
-
 
61188
      }
-
 
61189
 
-
 
61190
      /**
-
 
61191
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
61192
       */
-
 
61193
      public static _Fields findByThriftId(int fieldId) {
-
 
61194
        switch(fieldId) {
-
 
61195
          case 1: // WEX
-
 
61196
            return WEX;
-
 
61197
          default:
-
 
61198
            return null;
-
 
61199
        }
-
 
61200
      }
-
 
61201
 
-
 
61202
      /**
-
 
61203
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
61204
       * if it is not found.
-
 
61205
       */
-
 
61206
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
61207
        _Fields fields = findByThriftId(fieldId);
-
 
61208
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
61209
        return fields;
-
 
61210
      }
-
 
61211
 
-
 
61212
      /**
-
 
61213
       * Find the _Fields constant that matches name, or null if its not found.
-
 
61214
       */
-
 
61215
      public static _Fields findByName(String name) {
-
 
61216
        return byName.get(name);
-
 
61217
      }
-
 
61218
 
-
 
61219
      private final short _thriftId;
-
 
61220
      private final String _fieldName;
-
 
61221
 
-
 
61222
      _Fields(short thriftId, String fieldName) {
-
 
61223
        _thriftId = thriftId;
-
 
61224
        _fieldName = fieldName;
-
 
61225
      }
-
 
61226
 
-
 
61227
      public short getThriftFieldId() {
-
 
61228
        return _thriftId;
-
 
61229
      }
-
 
61230
 
-
 
61231
      public String getFieldName() {
-
 
61232
        return _fieldName;
-
 
61233
      }
-
 
61234
    }
-
 
61235
 
-
 
61236
    // isset id assignments
-
 
61237
 
-
 
61238
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
61239
    static {
-
 
61240
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
61241
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61242
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
61243
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
61244
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanPurchaseBulk_result.class, metaDataMap);
-
 
61245
    }
-
 
61246
 
-
 
61247
    public scanPurchaseBulk_result() {
-
 
61248
    }
-
 
61249
 
-
 
61250
    public scanPurchaseBulk_result(
-
 
61251
      WarehouseServiceException wex)
-
 
61252
    {
-
 
61253
      this();
-
 
61254
      this.wex = wex;
-
 
61255
    }
-
 
61256
 
-
 
61257
    /**
-
 
61258
     * Performs a deep copy on <i>other</i>.
-
 
61259
     */
-
 
61260
    public scanPurchaseBulk_result(scanPurchaseBulk_result other) {
-
 
61261
      if (other.isSetWex()) {
-
 
61262
        this.wex = new WarehouseServiceException(other.wex);
-
 
61263
      }
-
 
61264
    }
-
 
61265
 
-
 
61266
    public scanPurchaseBulk_result deepCopy() {
-
 
61267
      return new scanPurchaseBulk_result(this);
-
 
61268
    }
-
 
61269
 
-
 
61270
    @Override
-
 
61271
    public void clear() {
-
 
61272
      this.wex = null;
-
 
61273
    }
-
 
61274
 
-
 
61275
    public WarehouseServiceException getWex() {
-
 
61276
      return this.wex;
-
 
61277
    }
-
 
61278
 
-
 
61279
    public void setWex(WarehouseServiceException wex) {
-
 
61280
      this.wex = wex;
-
 
61281
    }
-
 
61282
 
-
 
61283
    public void unsetWex() {
-
 
61284
      this.wex = null;
-
 
61285
    }
-
 
61286
 
-
 
61287
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
61288
    public boolean isSetWex() {
-
 
61289
      return this.wex != null;
-
 
61290
    }
-
 
61291
 
-
 
61292
    public void setWexIsSet(boolean value) {
-
 
61293
      if (!value) {
-
 
61294
        this.wex = null;
-
 
61295
      }
-
 
61296
    }
-
 
61297
 
-
 
61298
    public void setFieldValue(_Fields field, Object value) {
-
 
61299
      switch (field) {
-
 
61300
      case WEX:
-
 
61301
        if (value == null) {
-
 
61302
          unsetWex();
-
 
61303
        } else {
-
 
61304
          setWex((WarehouseServiceException)value);
-
 
61305
        }
-
 
61306
        break;
-
 
61307
 
-
 
61308
      }
-
 
61309
    }
-
 
61310
 
-
 
61311
    public Object getFieldValue(_Fields field) {
-
 
61312
      switch (field) {
-
 
61313
      case WEX:
-
 
61314
        return getWex();
-
 
61315
 
-
 
61316
      }
-
 
61317
      throw new IllegalStateException();
-
 
61318
    }
-
 
61319
 
-
 
61320
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
61321
    public boolean isSet(_Fields field) {
-
 
61322
      if (field == null) {
-
 
61323
        throw new IllegalArgumentException();
-
 
61324
      }
-
 
61325
 
-
 
61326
      switch (field) {
-
 
61327
      case WEX:
-
 
61328
        return isSetWex();
-
 
61329
      }
-
 
61330
      throw new IllegalStateException();
-
 
61331
    }
-
 
61332
 
-
 
61333
    @Override
-
 
61334
    public boolean equals(Object that) {
-
 
61335
      if (that == null)
-
 
61336
        return false;
-
 
61337
      if (that instanceof scanPurchaseBulk_result)
-
 
61338
        return this.equals((scanPurchaseBulk_result)that);
-
 
61339
      return false;
-
 
61340
    }
-
 
61341
 
-
 
61342
    public boolean equals(scanPurchaseBulk_result that) {
-
 
61343
      if (that == null)
-
 
61344
        return false;
-
 
61345
 
-
 
61346
      boolean this_present_wex = true && this.isSetWex();
-
 
61347
      boolean that_present_wex = true && that.isSetWex();
-
 
61348
      if (this_present_wex || that_present_wex) {
-
 
61349
        if (!(this_present_wex && that_present_wex))
-
 
61350
          return false;
-
 
61351
        if (!this.wex.equals(that.wex))
-
 
61352
          return false;
-
 
61353
      }
-
 
61354
 
-
 
61355
      return true;
-
 
61356
    }
-
 
61357
 
-
 
61358
    @Override
-
 
61359
    public int hashCode() {
-
 
61360
      return 0;
-
 
61361
    }
-
 
61362
 
-
 
61363
    public int compareTo(scanPurchaseBulk_result other) {
-
 
61364
      if (!getClass().equals(other.getClass())) {
-
 
61365
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61366
      }
-
 
61367
 
-
 
61368
      int lastComparison = 0;
-
 
61369
      scanPurchaseBulk_result typedOther = (scanPurchaseBulk_result)other;
-
 
61370
 
-
 
61371
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
61372
      if (lastComparison != 0) {
-
 
61373
        return lastComparison;
-
 
61374
      }
-
 
61375
      if (isSetWex()) {
-
 
61376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
61377
        if (lastComparison != 0) {
-
 
61378
          return lastComparison;
-
 
61379
        }
-
 
61380
      }
-
 
61381
      return 0;
-
 
61382
    }
-
 
61383
 
-
 
61384
    public _Fields fieldForId(int fieldId) {
-
 
61385
      return _Fields.findByThriftId(fieldId);
-
 
61386
    }
-
 
61387
 
-
 
61388
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61389
      org.apache.thrift.protocol.TField field;
-
 
61390
      iprot.readStructBegin();
-
 
61391
      while (true)
-
 
61392
      {
-
 
61393
        field = iprot.readFieldBegin();
-
 
61394
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61395
          break;
-
 
61396
        }
-
 
61397
        switch (field.id) {
-
 
61398
          case 1: // WEX
-
 
61399
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
61400
              this.wex = new WarehouseServiceException();
-
 
61401
              this.wex.read(iprot);
-
 
61402
            } else { 
-
 
61403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61404
            }
-
 
61405
            break;
-
 
61406
          default:
-
 
61407
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61408
        }
-
 
61409
        iprot.readFieldEnd();
-
 
61410
      }
-
 
61411
      iprot.readStructEnd();
-
 
61412
      validate();
-
 
61413
    }
-
 
61414
 
-
 
61415
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61416
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61417
 
-
 
61418
      if (this.isSetWex()) {
-
 
61419
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
61420
        this.wex.write(oprot);
-
 
61421
        oprot.writeFieldEnd();
-
 
61422
      }
-
 
61423
      oprot.writeFieldStop();
-
 
61424
      oprot.writeStructEnd();
-
 
61425
    }
-
 
61426
 
-
 
61427
    @Override
-
 
61428
    public String toString() {
-
 
61429
      StringBuilder sb = new StringBuilder("scanPurchaseBulk_result(");
-
 
61430
      boolean first = true;
-
 
61431
 
-
 
61432
      sb.append("wex:");
-
 
61433
      if (this.wex == null) {
-
 
61434
        sb.append("null");
-
 
61435
      } else {
-
 
61436
        sb.append(this.wex);
59898
      }
61437
      }
59899
      first = false;
61438
      first = false;
59900
      sb.append(")");
61439
      sb.append(")");
59901
      return sb.toString();
61440
      return sb.toString();
59902
    }
61441
    }