Subversion Repositories SmartDukaan

Rev

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

Rev 8565 Rev 8717
Line 278... Line 278...
278
     * 
278
     * 
279
     * @param date
279
     * @param date
280
     */
280
     */
281
    public List<InventoryAvailability> getHistoricBadInventoryByScans(long date) throws WarehouseServiceException, org.apache.thrift.TException;
281
    public List<InventoryAvailability> getHistoricBadInventoryByScans(long date) throws WarehouseServiceException, org.apache.thrift.TException;
282
 
282
 
283
    public void scanForBadSale(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException;
283
    public InventoryItem scanForBadSale(String serialNumber, String itemNumber, long itemId, long orderId, long fulfilmentWarehouseId, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
284
 
284
 
285
  }
285
  }
286
 
286
 
287
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
287
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
288
 
288
 
Line 378... Line 378...
378
 
378
 
379
    public void isItemAvailableForSale(long itemId, String serialNumber, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isItemAvailableForSale_call> resultHandler) throws org.apache.thrift.TException;
379
    public void isItemAvailableForSale(long itemId, String serialNumber, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isItemAvailableForSale_call> resultHandler) throws org.apache.thrift.TException;
380
 
380
 
381
    public void getHistoricBadInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricBadInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
381
    public void getHistoricBadInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricBadInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
382
 
382
 
383
    public void scanForBadSale(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForBadSale_call> resultHandler) throws org.apache.thrift.TException;
383
    public void scanForBadSale(String serialNumber, String itemNumber, long itemId, long orderId, long fulfilmentWarehouseId, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForBadSale_call> resultHandler) throws org.apache.thrift.TException;
384
 
384
 
385
  }
385
  }
386
 
386
 
387
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
387
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
388
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
388
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 1583... Line 1583...
1583
        throw result.wex;
1583
        throw result.wex;
1584
      }
1584
      }
1585
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
1585
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
1586
    }
1586
    }
1587
 
1587
 
1588
    public void scanForBadSale(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
1588
    public InventoryItem scanForBadSale(String serialNumber, String itemNumber, long itemId, long orderId, long fulfilmentWarehouseId, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
1589
    {
1589
    {
1590
      send_scanForBadSale(inventoryItem, orderId, quantity, fulfilmentWarehouseId, billingWarehouseId);
1590
      send_scanForBadSale(serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
1591
      recv_scanForBadSale();
1591
      return recv_scanForBadSale();
1592
    }
1592
    }
1593
 
1593
 
1594
    public void send_scanForBadSale(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
1594
    public void send_scanForBadSale(String serialNumber, String itemNumber, long itemId, long orderId, long fulfilmentWarehouseId, long quantity, long billingWarehouseId) throws org.apache.thrift.TException
1595
    {
1595
    {
1596
      scanForBadSale_args args = new scanForBadSale_args();
1596
      scanForBadSale_args args = new scanForBadSale_args();
-
 
1597
      args.setSerialNumber(serialNumber);
1597
      args.setInventoryItem(inventoryItem);
1598
      args.setItemNumber(itemNumber);
-
 
1599
      args.setItemId(itemId);
1598
      args.setOrderId(orderId);
1600
      args.setOrderId(orderId);
1599
      args.setQuantity(quantity);
-
 
1600
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
1601
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
-
 
1602
      args.setQuantity(quantity);
1601
      args.setBillingWarehouseId(billingWarehouseId);
1603
      args.setBillingWarehouseId(billingWarehouseId);
1602
      sendBase("scanForBadSale", args);
1604
      sendBase("scanForBadSale", args);
1603
    }
1605
    }
1604
 
1606
 
1605
    public void recv_scanForBadSale() throws org.apache.thrift.TException
1607
    public InventoryItem recv_scanForBadSale() throws WarehouseServiceException, org.apache.thrift.TException
1606
    {
1608
    {
1607
      scanForBadSale_result result = new scanForBadSale_result();
1609
      scanForBadSale_result result = new scanForBadSale_result();
1608
      receiveBase(result, "scanForBadSale");
1610
      receiveBase(result, "scanForBadSale");
-
 
1611
      if (result.isSetSuccess()) {
-
 
1612
        return result.success;
1609
      return;
1613
      }
-
 
1614
      if (result.wex != null) {
-
 
1615
        throw result.wex;
-
 
1616
      }
-
 
1617
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForBadSale failed: unknown result");
1610
    }
1618
    }
1611
 
1619
 
1612
  }
1620
  }
1613
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1621
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1614
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1622
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
Line 3294... Line 3302...
3294
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3302
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3295
        return (new Client(prot)).recv_getHistoricBadInventoryByScans();
3303
        return (new Client(prot)).recv_getHistoricBadInventoryByScans();
3296
      }
3304
      }
3297
    }
3305
    }
3298
 
3306
 
3299
    public void scanForBadSale(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForBadSale_call> resultHandler) throws org.apache.thrift.TException {
3307
    public void scanForBadSale(String serialNumber, String itemNumber, long itemId, long orderId, long fulfilmentWarehouseId, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForBadSale_call> resultHandler) throws org.apache.thrift.TException {
3300
      checkReady();
3308
      checkReady();
3301
      scanForBadSale_call method_call = new scanForBadSale_call(inventoryItem, orderId, quantity, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
3309
      scanForBadSale_call method_call = new scanForBadSale_call(serialNumber, itemNumber, itemId, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
3302
      this.___currentMethod = method_call;
3310
      this.___currentMethod = method_call;
3303
      ___manager.call(method_call);
3311
      ___manager.call(method_call);
3304
    }
3312
    }
3305
 
3313
 
3306
    public static class scanForBadSale_call extends org.apache.thrift.async.TAsyncMethodCall {
3314
    public static class scanForBadSale_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3315
      private String serialNumber;
3307
      private InventoryItem inventoryItem;
3316
      private String itemNumber;
-
 
3317
      private long itemId;
3308
      private long orderId;
3318
      private long orderId;
3309
      private long quantity;
-
 
3310
      private long fulfilmentWarehouseId;
3319
      private long fulfilmentWarehouseId;
-
 
3320
      private long quantity;
3311
      private long billingWarehouseId;
3321
      private long billingWarehouseId;
3312
      public scanForBadSale_call(InventoryItem inventoryItem, long orderId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForBadSale_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 {
3322
      public scanForBadSale_call(String serialNumber, String itemNumber, long itemId, long orderId, long fulfilmentWarehouseId, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForBadSale_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 {
3313
        super(client, protocolFactory, transport, resultHandler, false);
3323
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3324
        this.serialNumber = serialNumber;
3314
        this.inventoryItem = inventoryItem;
3325
        this.itemNumber = itemNumber;
-
 
3326
        this.itemId = itemId;
3315
        this.orderId = orderId;
3327
        this.orderId = orderId;
3316
        this.quantity = quantity;
-
 
3317
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
3328
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
-
 
3329
        this.quantity = quantity;
3318
        this.billingWarehouseId = billingWarehouseId;
3330
        this.billingWarehouseId = billingWarehouseId;
3319
      }
3331
      }
3320
 
3332
 
3321
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3333
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3322
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForBadSale", org.apache.thrift.protocol.TMessageType.CALL, 0));
3334
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForBadSale", org.apache.thrift.protocol.TMessageType.CALL, 0));
3323
        scanForBadSale_args args = new scanForBadSale_args();
3335
        scanForBadSale_args args = new scanForBadSale_args();
-
 
3336
        args.setSerialNumber(serialNumber);
3324
        args.setInventoryItem(inventoryItem);
3337
        args.setItemNumber(itemNumber);
-
 
3338
        args.setItemId(itemId);
3325
        args.setOrderId(orderId);
3339
        args.setOrderId(orderId);
3326
        args.setQuantity(quantity);
-
 
3327
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
3340
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
-
 
3341
        args.setQuantity(quantity);
3328
        args.setBillingWarehouseId(billingWarehouseId);
3342
        args.setBillingWarehouseId(billingWarehouseId);
3329
        args.write(prot);
3343
        args.write(prot);
3330
        prot.writeMessageEnd();
3344
        prot.writeMessageEnd();
3331
      }
3345
      }
3332
 
3346
 
3333
      public void getResult() throws org.apache.thrift.TException {
3347
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3334
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3348
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3335
          throw new IllegalStateException("Method call not finished!");
3349
          throw new IllegalStateException("Method call not finished!");
3336
        }
3350
        }
3337
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3351
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3338
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3352
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3339
        (new Client(prot)).recv_scanForBadSale();
3353
        return (new Client(prot)).recv_scanForBadSale();
3340
      }
3354
      }
3341
    }
3355
    }
3342
 
3356
 
3343
  }
3357
  }
3344
 
3358
 
Line 4273... Line 4287...
4273
        return new scanForBadSale_args();
4287
        return new scanForBadSale_args();
4274
      }
4288
      }
4275
 
4289
 
4276
      protected scanForBadSale_result getResult(I iface, scanForBadSale_args args) throws org.apache.thrift.TException {
4290
      protected scanForBadSale_result getResult(I iface, scanForBadSale_args args) throws org.apache.thrift.TException {
4277
        scanForBadSale_result result = new scanForBadSale_result();
4291
        scanForBadSale_result result = new scanForBadSale_result();
-
 
4292
        try {
4278
        iface.scanForBadSale(args.inventoryItem, args.orderId, args.quantity, args.fulfilmentWarehouseId, args.billingWarehouseId);
4293
          result.success = iface.scanForBadSale(args.serialNumber, args.itemNumber, args.itemId, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
-
 
4294
        } catch (WarehouseServiceException wex) {
-
 
4295
          result.wex = wex;
-
 
4296
        }
4279
        return result;
4297
        return result;
4280
      }
4298
      }
4281
    }
4299
    }
4282
 
4300
 
4283
  }
4301
  }
Line 38995... Line 39013...
38995
  }
39013
  }
38996
 
39014
 
38997
  public static class scanForBadSale_args implements org.apache.thrift.TBase<scanForBadSale_args, scanForBadSale_args._Fields>, java.io.Serializable, Cloneable   {
39015
  public static class scanForBadSale_args implements org.apache.thrift.TBase<scanForBadSale_args, scanForBadSale_args._Fields>, java.io.Serializable, Cloneable   {
38998
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForBadSale_args");
39016
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForBadSale_args");
38999
 
39017
 
-
 
39018
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
39000
    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);
39019
    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)2);
39001
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)2);
39020
    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)3);
39002
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
39021
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)4);
39003
    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)4);
39022
    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)5);
-
 
39023
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)6);
39004
    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)5);
39024
    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)7);
39005
 
39025
 
-
 
39026
    private String serialNumber; // required
39006
    private InventoryItem inventoryItem; // required
39027
    private String itemNumber; // required
-
 
39028
    private long itemId; // required
39007
    private long orderId; // required
39029
    private long orderId; // required
39008
    private long quantity; // required
-
 
39009
    private long fulfilmentWarehouseId; // required
39030
    private long fulfilmentWarehouseId; // required
-
 
39031
    private long quantity; // required
39010
    private long billingWarehouseId; // required
39032
    private long billingWarehouseId; // required
39011
 
39033
 
39012
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39013
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
39036
      SERIAL_NUMBER((short)1, "serialNumber"),
39014
      INVENTORY_ITEM((short)1, "inventoryItem"),
39037
      ITEM_NUMBER((short)2, "itemNumber"),
39015
      ORDER_ID((short)2, "orderId"),
39038
      ITEM_ID((short)3, "itemId"),
39016
      QUANTITY((short)3, "quantity"),
39039
      ORDER_ID((short)4, "orderId"),
39017
      FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
39040
      FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId"),
-
 
39041
      QUANTITY((short)6, "quantity"),
39018
      BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId");
39042
      BILLING_WAREHOUSE_ID((short)7, "billingWarehouseId");
39019
 
39043
 
39020
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39044
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39021
 
39045
 
39022
      static {
39046
      static {
39023
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39047
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 39028... Line 39052...
39028
      /**
39052
      /**
39029
       * Find the _Fields constant that matches fieldId, or null if its not found.
39053
       * Find the _Fields constant that matches fieldId, or null if its not found.
39030
       */
39054
       */
39031
      public static _Fields findByThriftId(int fieldId) {
39055
      public static _Fields findByThriftId(int fieldId) {
39032
        switch(fieldId) {
39056
        switch(fieldId) {
-
 
39057
          case 1: // SERIAL_NUMBER
-
 
39058
            return SERIAL_NUMBER;
-
 
39059
          case 2: // ITEM_NUMBER
-
 
39060
            return ITEM_NUMBER;
39033
          case 1: // INVENTORY_ITEM
39061
          case 3: // ITEM_ID
39034
            return INVENTORY_ITEM;
39062
            return ITEM_ID;
39035
          case 2: // ORDER_ID
39063
          case 4: // ORDER_ID
39036
            return ORDER_ID;
39064
            return ORDER_ID;
39037
          case 3: // QUANTITY
-
 
39038
            return QUANTITY;
-
 
39039
          case 4: // FULFILMENT_WAREHOUSE_ID
39065
          case 5: // FULFILMENT_WAREHOUSE_ID
39040
            return FULFILMENT_WAREHOUSE_ID;
39066
            return FULFILMENT_WAREHOUSE_ID;
-
 
39067
          case 6: // QUANTITY
-
 
39068
            return QUANTITY;
39041
          case 5: // BILLING_WAREHOUSE_ID
39069
          case 7: // BILLING_WAREHOUSE_ID
39042
            return BILLING_WAREHOUSE_ID;
39070
            return BILLING_WAREHOUSE_ID;
39043
          default:
39071
          default:
39044
            return null;
39072
            return null;
39045
        }
39073
        }
39046
      }
39074
      }
Line 39078... Line 39106...
39078
        return _fieldName;
39106
        return _fieldName;
39079
      }
39107
      }
39080
    }
39108
    }
39081
 
39109
 
39082
    // isset id assignments
39110
    // isset id assignments
39083
    private static final int __ORDERID_ISSET_ID = 0;
39111
    private static final int __ITEMID_ISSET_ID = 0;
39084
    private static final int __QUANTITY_ISSET_ID = 1;
39112
    private static final int __ORDERID_ISSET_ID = 1;
39085
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
39113
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
-
 
39114
    private static final int __QUANTITY_ISSET_ID = 3;
39086
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
39115
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 4;
39087
    private BitSet __isset_bit_vector = new BitSet(4);
39116
    private BitSet __isset_bit_vector = new BitSet(5);
39088
 
39117
 
39089
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39118
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39090
    static {
39119
    static {
39091
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39120
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
39121
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39122
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
39092
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39123
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39093
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
39124
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
39094
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39125
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39095
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39126
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39096
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39127
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39097
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39128
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39098
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39129
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39099
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39130
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
39131
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39132
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39100
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39133
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39101
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39134
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39102
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39135
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39103
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForBadSale_args.class, metaDataMap);
39136
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForBadSale_args.class, metaDataMap);
39104
    }
39137
    }
39105
 
39138
 
39106
    public scanForBadSale_args() {
39139
    public scanForBadSale_args() {
39107
    }
39140
    }
39108
 
39141
 
39109
    public scanForBadSale_args(
39142
    public scanForBadSale_args(
-
 
39143
      String serialNumber,
39110
      InventoryItem inventoryItem,
39144
      String itemNumber,
-
 
39145
      long itemId,
39111
      long orderId,
39146
      long orderId,
39112
      long quantity,
-
 
39113
      long fulfilmentWarehouseId,
39147
      long fulfilmentWarehouseId,
-
 
39148
      long quantity,
39114
      long billingWarehouseId)
39149
      long billingWarehouseId)
39115
    {
39150
    {
39116
      this();
39151
      this();
-
 
39152
      this.serialNumber = serialNumber;
39117
      this.inventoryItem = inventoryItem;
39153
      this.itemNumber = itemNumber;
-
 
39154
      this.itemId = itemId;
-
 
39155
      setItemIdIsSet(true);
39118
      this.orderId = orderId;
39156
      this.orderId = orderId;
39119
      setOrderIdIsSet(true);
39157
      setOrderIdIsSet(true);
39120
      this.quantity = quantity;
-
 
39121
      setQuantityIsSet(true);
-
 
39122
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
39158
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
39123
      setFulfilmentWarehouseIdIsSet(true);
39159
      setFulfilmentWarehouseIdIsSet(true);
-
 
39160
      this.quantity = quantity;
-
 
39161
      setQuantityIsSet(true);
39124
      this.billingWarehouseId = billingWarehouseId;
39162
      this.billingWarehouseId = billingWarehouseId;
39125
      setBillingWarehouseIdIsSet(true);
39163
      setBillingWarehouseIdIsSet(true);
39126
    }
39164
    }
39127
 
39165
 
39128
    /**
39166
    /**
39129
     * Performs a deep copy on <i>other</i>.
39167
     * Performs a deep copy on <i>other</i>.
39130
     */
39168
     */
39131
    public scanForBadSale_args(scanForBadSale_args other) {
39169
    public scanForBadSale_args(scanForBadSale_args other) {
39132
      __isset_bit_vector.clear();
39170
      __isset_bit_vector.clear();
39133
      __isset_bit_vector.or(other.__isset_bit_vector);
39171
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
39172
      if (other.isSetSerialNumber()) {
-
 
39173
        this.serialNumber = other.serialNumber;
-
 
39174
      }
39134
      if (other.isSetInventoryItem()) {
39175
      if (other.isSetItemNumber()) {
39135
        this.inventoryItem = new InventoryItem(other.inventoryItem);
39176
        this.itemNumber = other.itemNumber;
39136
      }
39177
      }
-
 
39178
      this.itemId = other.itemId;
39137
      this.orderId = other.orderId;
39179
      this.orderId = other.orderId;
39138
      this.quantity = other.quantity;
-
 
39139
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
39180
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
-
 
39181
      this.quantity = other.quantity;
39140
      this.billingWarehouseId = other.billingWarehouseId;
39182
      this.billingWarehouseId = other.billingWarehouseId;
39141
    }
39183
    }
39142
 
39184
 
39143
    public scanForBadSale_args deepCopy() {
39185
    public scanForBadSale_args deepCopy() {
39144
      return new scanForBadSale_args(this);
39186
      return new scanForBadSale_args(this);
39145
    }
39187
    }
39146
 
39188
 
39147
    @Override
39189
    @Override
39148
    public void clear() {
39190
    public void clear() {
-
 
39191
      this.serialNumber = null;
39149
      this.inventoryItem = null;
39192
      this.itemNumber = null;
-
 
39193
      setItemIdIsSet(false);
-
 
39194
      this.itemId = 0;
39150
      setOrderIdIsSet(false);
39195
      setOrderIdIsSet(false);
39151
      this.orderId = 0;
39196
      this.orderId = 0;
39152
      setQuantityIsSet(false);
-
 
39153
      this.quantity = 0;
-
 
39154
      setFulfilmentWarehouseIdIsSet(false);
39197
      setFulfilmentWarehouseIdIsSet(false);
39155
      this.fulfilmentWarehouseId = 0;
39198
      this.fulfilmentWarehouseId = 0;
-
 
39199
      setQuantityIsSet(false);
-
 
39200
      this.quantity = 0;
39156
      setBillingWarehouseIdIsSet(false);
39201
      setBillingWarehouseIdIsSet(false);
39157
      this.billingWarehouseId = 0;
39202
      this.billingWarehouseId = 0;
39158
    }
39203
    }
39159
 
39204
 
39160
    public InventoryItem getInventoryItem() {
39205
    public String getSerialNumber() {
39161
      return this.inventoryItem;
39206
      return this.serialNumber;
39162
    }
39207
    }
39163
 
39208
 
39164
    public void setInventoryItem(InventoryItem inventoryItem) {
39209
    public void setSerialNumber(String serialNumber) {
39165
      this.inventoryItem = inventoryItem;
39210
      this.serialNumber = serialNumber;
39166
    }
39211
    }
39167
 
39212
 
39168
    public void unsetInventoryItem() {
39213
    public void unsetSerialNumber() {
39169
      this.inventoryItem = null;
39214
      this.serialNumber = null;
39170
    }
39215
    }
39171
 
39216
 
39172
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
39217
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
39173
    public boolean isSetInventoryItem() {
39218
    public boolean isSetSerialNumber() {
39174
      return this.inventoryItem != null;
39219
      return this.serialNumber != null;
39175
    }
39220
    }
39176
 
39221
 
39177
    public void setInventoryItemIsSet(boolean value) {
39222
    public void setSerialNumberIsSet(boolean value) {
39178
      if (!value) {
39223
      if (!value) {
39179
        this.inventoryItem = null;
39224
        this.serialNumber = null;
39180
      }
39225
      }
39181
    }
39226
    }
39182
 
39227
 
-
 
39228
    public String getItemNumber() {
-
 
39229
      return this.itemNumber;
-
 
39230
    }
-
 
39231
 
-
 
39232
    public void setItemNumber(String itemNumber) {
-
 
39233
      this.itemNumber = itemNumber;
-
 
39234
    }
-
 
39235
 
-
 
39236
    public void unsetItemNumber() {
-
 
39237
      this.itemNumber = null;
-
 
39238
    }
-
 
39239
 
-
 
39240
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
-
 
39241
    public boolean isSetItemNumber() {
-
 
39242
      return this.itemNumber != null;
-
 
39243
    }
-
 
39244
 
-
 
39245
    public void setItemNumberIsSet(boolean value) {
-
 
39246
      if (!value) {
-
 
39247
        this.itemNumber = null;
-
 
39248
      }
-
 
39249
    }
-
 
39250
 
-
 
39251
    public long getItemId() {
-
 
39252
      return this.itemId;
-
 
39253
    }
-
 
39254
 
-
 
39255
    public void setItemId(long itemId) {
-
 
39256
      this.itemId = itemId;
-
 
39257
      setItemIdIsSet(true);
-
 
39258
    }
-
 
39259
 
-
 
39260
    public void unsetItemId() {
-
 
39261
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
39262
    }
-
 
39263
 
-
 
39264
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
39265
    public boolean isSetItemId() {
-
 
39266
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
39267
    }
-
 
39268
 
-
 
39269
    public void setItemIdIsSet(boolean value) {
-
 
39270
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
39271
    }
-
 
39272
 
39183
    public long getOrderId() {
39273
    public long getOrderId() {
39184
      return this.orderId;
39274
      return this.orderId;
39185
    }
39275
    }
39186
 
39276
 
39187
    public void setOrderId(long orderId) {
39277
    public void setOrderId(long orderId) {
Line 39200... Line 39290...
39200
 
39290
 
39201
    public void setOrderIdIsSet(boolean value) {
39291
    public void setOrderIdIsSet(boolean value) {
39202
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
39292
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
39203
    }
39293
    }
39204
 
39294
 
39205
    public long getQuantity() {
-
 
39206
      return this.quantity;
-
 
39207
    }
-
 
39208
 
-
 
39209
    public void setQuantity(long quantity) {
-
 
39210
      this.quantity = quantity;
-
 
39211
      setQuantityIsSet(true);
-
 
39212
    }
-
 
39213
 
-
 
39214
    public void unsetQuantity() {
-
 
39215
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
39216
    }
-
 
39217
 
-
 
39218
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
39219
    public boolean isSetQuantity() {
-
 
39220
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
39221
    }
-
 
39222
 
-
 
39223
    public void setQuantityIsSet(boolean value) {
-
 
39224
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
39225
    }
-
 
39226
 
-
 
39227
    public long getFulfilmentWarehouseId() {
39295
    public long getFulfilmentWarehouseId() {
39228
      return this.fulfilmentWarehouseId;
39296
      return this.fulfilmentWarehouseId;
39229
    }
39297
    }
39230
 
39298
 
39231
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
39299
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
Line 39244... Line 39312...
39244
 
39312
 
39245
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
39313
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
39246
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
39314
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
39247
    }
39315
    }
39248
 
39316
 
-
 
39317
    public long getQuantity() {
-
 
39318
      return this.quantity;
-
 
39319
    }
-
 
39320
 
-
 
39321
    public void setQuantity(long quantity) {
-
 
39322
      this.quantity = quantity;
-
 
39323
      setQuantityIsSet(true);
-
 
39324
    }
-
 
39325
 
-
 
39326
    public void unsetQuantity() {
-
 
39327
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
39328
    }
-
 
39329
 
-
 
39330
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
39331
    public boolean isSetQuantity() {
-
 
39332
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
39333
    }
-
 
39334
 
-
 
39335
    public void setQuantityIsSet(boolean value) {
-
 
39336
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
39337
    }
-
 
39338
 
39249
    public long getBillingWarehouseId() {
39339
    public long getBillingWarehouseId() {
39250
      return this.billingWarehouseId;
39340
      return this.billingWarehouseId;
39251
    }
39341
    }
39252
 
39342
 
39253
    public void setBillingWarehouseId(long billingWarehouseId) {
39343
    public void setBillingWarehouseId(long billingWarehouseId) {
Line 39268... Line 39358...
39268
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
39358
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
39269
    }
39359
    }
39270
 
39360
 
39271
    public void setFieldValue(_Fields field, Object value) {
39361
    public void setFieldValue(_Fields field, Object value) {
39272
      switch (field) {
39362
      switch (field) {
39273
      case INVENTORY_ITEM:
39363
      case SERIAL_NUMBER:
39274
        if (value == null) {
39364
        if (value == null) {
39275
          unsetInventoryItem();
39365
          unsetSerialNumber();
39276
        } else {
39366
        } else {
39277
          setInventoryItem((InventoryItem)value);
39367
          setSerialNumber((String)value);
39278
        }
39368
        }
39279
        break;
39369
        break;
39280
 
39370
 
39281
      case ORDER_ID:
39371
      case ITEM_NUMBER:
39282
        if (value == null) {
39372
        if (value == null) {
39283
          unsetOrderId();
39373
          unsetItemNumber();
39284
        } else {
39374
        } else {
39285
          setOrderId((Long)value);
39375
          setItemNumber((String)value);
39286
        }
39376
        }
39287
        break;
39377
        break;
39288
 
39378
 
39289
      case QUANTITY:
39379
      case ITEM_ID:
39290
        if (value == null) {
39380
        if (value == null) {
39291
          unsetQuantity();
39381
          unsetItemId();
39292
        } else {
39382
        } else {
-
 
39383
          setItemId((Long)value);
-
 
39384
        }
-
 
39385
        break;
-
 
39386
 
-
 
39387
      case ORDER_ID:
-
 
39388
        if (value == null) {
-
 
39389
          unsetOrderId();
-
 
39390
        } else {
39293
          setQuantity((Long)value);
39391
          setOrderId((Long)value);
39294
        }
39392
        }
39295
        break;
39393
        break;
39296
 
39394
 
39297
      case FULFILMENT_WAREHOUSE_ID:
39395
      case FULFILMENT_WAREHOUSE_ID:
39298
        if (value == null) {
39396
        if (value == null) {
Line 39300... Line 39398...
39300
        } else {
39398
        } else {
39301
          setFulfilmentWarehouseId((Long)value);
39399
          setFulfilmentWarehouseId((Long)value);
39302
        }
39400
        }
39303
        break;
39401
        break;
39304
 
39402
 
-
 
39403
      case QUANTITY:
-
 
39404
        if (value == null) {
-
 
39405
          unsetQuantity();
-
 
39406
        } else {
-
 
39407
          setQuantity((Long)value);
-
 
39408
        }
-
 
39409
        break;
-
 
39410
 
39305
      case BILLING_WAREHOUSE_ID:
39411
      case BILLING_WAREHOUSE_ID:
39306
        if (value == null) {
39412
        if (value == null) {
39307
          unsetBillingWarehouseId();
39413
          unsetBillingWarehouseId();
39308
        } else {
39414
        } else {
39309
          setBillingWarehouseId((Long)value);
39415
          setBillingWarehouseId((Long)value);
Line 39313... Line 39419...
39313
      }
39419
      }
39314
    }
39420
    }
39315
 
39421
 
39316
    public Object getFieldValue(_Fields field) {
39422
    public Object getFieldValue(_Fields field) {
39317
      switch (field) {
39423
      switch (field) {
-
 
39424
      case SERIAL_NUMBER:
-
 
39425
        return getSerialNumber();
-
 
39426
 
39318
      case INVENTORY_ITEM:
39427
      case ITEM_NUMBER:
39319
        return getInventoryItem();
39428
        return getItemNumber();
-
 
39429
 
-
 
39430
      case ITEM_ID:
-
 
39431
        return Long.valueOf(getItemId());
39320
 
39432
 
39321
      case ORDER_ID:
39433
      case ORDER_ID:
39322
        return Long.valueOf(getOrderId());
39434
        return Long.valueOf(getOrderId());
39323
 
39435
 
39324
      case QUANTITY:
-
 
39325
        return Long.valueOf(getQuantity());
-
 
39326
 
-
 
39327
      case FULFILMENT_WAREHOUSE_ID:
39436
      case FULFILMENT_WAREHOUSE_ID:
39328
        return Long.valueOf(getFulfilmentWarehouseId());
39437
        return Long.valueOf(getFulfilmentWarehouseId());
39329
 
39438
 
-
 
39439
      case QUANTITY:
-
 
39440
        return Long.valueOf(getQuantity());
-
 
39441
 
39330
      case BILLING_WAREHOUSE_ID:
39442
      case BILLING_WAREHOUSE_ID:
39331
        return Long.valueOf(getBillingWarehouseId());
39443
        return Long.valueOf(getBillingWarehouseId());
39332
 
39444
 
39333
      }
39445
      }
39334
      throw new IllegalStateException();
39446
      throw new IllegalStateException();
Line 39339... Line 39451...
39339
      if (field == null) {
39451
      if (field == null) {
39340
        throw new IllegalArgumentException();
39452
        throw new IllegalArgumentException();
39341
      }
39453
      }
39342
 
39454
 
39343
      switch (field) {
39455
      switch (field) {
-
 
39456
      case SERIAL_NUMBER:
-
 
39457
        return isSetSerialNumber();
39344
      case INVENTORY_ITEM:
39458
      case ITEM_NUMBER:
39345
        return isSetInventoryItem();
39459
        return isSetItemNumber();
-
 
39460
      case ITEM_ID:
-
 
39461
        return isSetItemId();
39346
      case ORDER_ID:
39462
      case ORDER_ID:
39347
        return isSetOrderId();
39463
        return isSetOrderId();
39348
      case QUANTITY:
-
 
39349
        return isSetQuantity();
-
 
39350
      case FULFILMENT_WAREHOUSE_ID:
39464
      case FULFILMENT_WAREHOUSE_ID:
39351
        return isSetFulfilmentWarehouseId();
39465
        return isSetFulfilmentWarehouseId();
-
 
39466
      case QUANTITY:
-
 
39467
        return isSetQuantity();
39352
      case BILLING_WAREHOUSE_ID:
39468
      case BILLING_WAREHOUSE_ID:
39353
        return isSetBillingWarehouseId();
39469
        return isSetBillingWarehouseId();
39354
      }
39470
      }
39355
      throw new IllegalStateException();
39471
      throw new IllegalStateException();
39356
    }
39472
    }
Line 39366... Line 39482...
39366
 
39482
 
39367
    public boolean equals(scanForBadSale_args that) {
39483
    public boolean equals(scanForBadSale_args that) {
39368
      if (that == null)
39484
      if (that == null)
39369
        return false;
39485
        return false;
39370
 
39486
 
39371
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
39487
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
39372
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
39488
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
39373
      if (this_present_inventoryItem || that_present_inventoryItem) {
39489
      if (this_present_serialNumber || that_present_serialNumber) {
39374
        if (!(this_present_inventoryItem && that_present_inventoryItem))
39490
        if (!(this_present_serialNumber && that_present_serialNumber))
39375
          return false;
39491
          return false;
-
 
39492
        if (!this.serialNumber.equals(that.serialNumber))
-
 
39493
          return false;
-
 
39494
      }
-
 
39495
 
-
 
39496
      boolean this_present_itemNumber = true && this.isSetItemNumber();
-
 
39497
      boolean that_present_itemNumber = true && that.isSetItemNumber();
-
 
39498
      if (this_present_itemNumber || that_present_itemNumber) {
-
 
39499
        if (!(this_present_itemNumber && that_present_itemNumber))
-
 
39500
          return false;
39376
        if (!this.inventoryItem.equals(that.inventoryItem))
39501
        if (!this.itemNumber.equals(that.itemNumber))
-
 
39502
          return false;
-
 
39503
      }
-
 
39504
 
-
 
39505
      boolean this_present_itemId = true;
-
 
39506
      boolean that_present_itemId = true;
-
 
39507
      if (this_present_itemId || that_present_itemId) {
-
 
39508
        if (!(this_present_itemId && that_present_itemId))
-
 
39509
          return false;
-
 
39510
        if (this.itemId != that.itemId)
39377
          return false;
39511
          return false;
39378
      }
39512
      }
39379
 
39513
 
39380
      boolean this_present_orderId = true;
39514
      boolean this_present_orderId = true;
39381
      boolean that_present_orderId = true;
39515
      boolean that_present_orderId = true;
Line 39384... Line 39518...
39384
          return false;
39518
          return false;
39385
        if (this.orderId != that.orderId)
39519
        if (this.orderId != that.orderId)
39386
          return false;
39520
          return false;
39387
      }
39521
      }
39388
 
39522
 
39389
      boolean this_present_quantity = true;
-
 
39390
      boolean that_present_quantity = true;
-
 
39391
      if (this_present_quantity || that_present_quantity) {
-
 
39392
        if (!(this_present_quantity && that_present_quantity))
-
 
39393
          return false;
-
 
39394
        if (this.quantity != that.quantity)
-
 
39395
          return false;
-
 
39396
      }
-
 
39397
 
-
 
39398
      boolean this_present_fulfilmentWarehouseId = true;
39523
      boolean this_present_fulfilmentWarehouseId = true;
39399
      boolean that_present_fulfilmentWarehouseId = true;
39524
      boolean that_present_fulfilmentWarehouseId = true;
39400
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
39525
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
39401
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
39526
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
39402
          return false;
39527
          return false;
39403
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
39528
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
39404
          return false;
39529
          return false;
39405
      }
39530
      }
39406
 
39531
 
-
 
39532
      boolean this_present_quantity = true;
-
 
39533
      boolean that_present_quantity = true;
-
 
39534
      if (this_present_quantity || that_present_quantity) {
-
 
39535
        if (!(this_present_quantity && that_present_quantity))
-
 
39536
          return false;
-
 
39537
        if (this.quantity != that.quantity)
-
 
39538
          return false;
-
 
39539
      }
-
 
39540
 
39407
      boolean this_present_billingWarehouseId = true;
39541
      boolean this_present_billingWarehouseId = true;
39408
      boolean that_present_billingWarehouseId = true;
39542
      boolean that_present_billingWarehouseId = true;
39409
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
39543
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
39410
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
39544
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
39411
          return false;
39545
          return false;
Line 39427... Line 39561...
39427
      }
39561
      }
39428
 
39562
 
39429
      int lastComparison = 0;
39563
      int lastComparison = 0;
39430
      scanForBadSale_args typedOther = (scanForBadSale_args)other;
39564
      scanForBadSale_args typedOther = (scanForBadSale_args)other;
39431
 
39565
 
39432
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
39566
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
39433
      if (lastComparison != 0) {
39567
      if (lastComparison != 0) {
39434
        return lastComparison;
39568
        return lastComparison;
39435
      }
39569
      }
39436
      if (isSetInventoryItem()) {
39570
      if (isSetSerialNumber()) {
39437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
39571
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
39438
        if (lastComparison != 0) {
39572
        if (lastComparison != 0) {
39439
          return lastComparison;
39573
          return lastComparison;
39440
        }
39574
        }
39441
      }
39575
      }
39442
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
39576
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
39443
      if (lastComparison != 0) {
39577
      if (lastComparison != 0) {
39444
        return lastComparison;
39578
        return lastComparison;
39445
      }
39579
      }
39446
      if (isSetOrderId()) {
39580
      if (isSetItemNumber()) {
39447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
39581
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
39448
        if (lastComparison != 0) {
39582
        if (lastComparison != 0) {
39449
          return lastComparison;
39583
          return lastComparison;
39450
        }
39584
        }
39451
      }
39585
      }
39452
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
39586
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
39453
      if (lastComparison != 0) {
39587
      if (lastComparison != 0) {
39454
        return lastComparison;
39588
        return lastComparison;
39455
      }
39589
      }
-
 
39590
      if (isSetItemId()) {
-
 
39591
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
39592
        if (lastComparison != 0) {
-
 
39593
          return lastComparison;
-
 
39594
        }
-
 
39595
      }
-
 
39596
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
39597
      if (lastComparison != 0) {
-
 
39598
        return lastComparison;
-
 
39599
      }
39456
      if (isSetQuantity()) {
39600
      if (isSetOrderId()) {
39457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
39601
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
39458
        if (lastComparison != 0) {
39602
        if (lastComparison != 0) {
39459
          return lastComparison;
39603
          return lastComparison;
39460
        }
39604
        }
39461
      }
39605
      }
39462
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
39606
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
Line 39467... Line 39611...
39467
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
39611
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
39468
        if (lastComparison != 0) {
39612
        if (lastComparison != 0) {
39469
          return lastComparison;
39613
          return lastComparison;
39470
        }
39614
        }
39471
      }
39615
      }
-
 
39616
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
-
 
39617
      if (lastComparison != 0) {
-
 
39618
        return lastComparison;
-
 
39619
      }
-
 
39620
      if (isSetQuantity()) {
-
 
39621
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
-
 
39622
        if (lastComparison != 0) {
-
 
39623
          return lastComparison;
-
 
39624
        }
-
 
39625
      }
39472
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
39626
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
39473
      if (lastComparison != 0) {
39627
      if (lastComparison != 0) {
39474
        return lastComparison;
39628
        return lastComparison;
39475
      }
39629
      }
39476
      if (isSetBillingWarehouseId()) {
39630
      if (isSetBillingWarehouseId()) {
Line 39494... Line 39648...
39494
        field = iprot.readFieldBegin();
39648
        field = iprot.readFieldBegin();
39495
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39649
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39496
          break;
39650
          break;
39497
        }
39651
        }
39498
        switch (field.id) {
39652
        switch (field.id) {
39499
          case 1: // INVENTORY_ITEM
39653
          case 1: // SERIAL_NUMBER
39500
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
39654
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
39501
              this.inventoryItem = new InventoryItem();
39655
              this.serialNumber = iprot.readString();
-
 
39656
            } else { 
-
 
39657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39658
            }
-
 
39659
            break;
-
 
39660
          case 2: // ITEM_NUMBER
-
 
39661
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
39502
              this.inventoryItem.read(iprot);
39662
              this.itemNumber = iprot.readString();
39503
            } else { 
39663
            } else { 
39504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39664
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39505
            }
39665
            }
39506
            break;
39666
            break;
39507
          case 2: // ORDER_ID
39667
          case 3: // ITEM_ID
39508
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39668
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39509
              this.orderId = iprot.readI64();
39669
              this.itemId = iprot.readI64();
39510
              setOrderIdIsSet(true);
39670
              setItemIdIsSet(true);
39511
            } else { 
39671
            } else { 
39512
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39513
            }
39673
            }
39514
            break;
39674
            break;
39515
          case 3: // QUANTITY
39675
          case 4: // ORDER_ID
39516
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39676
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39517
              this.quantity = iprot.readI64();
39677
              this.orderId = iprot.readI64();
39518
              setQuantityIsSet(true);
39678
              setOrderIdIsSet(true);
39519
            } else { 
39679
            } else { 
39520
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39521
            }
39681
            }
39522
            break;
39682
            break;
39523
          case 4: // FULFILMENT_WAREHOUSE_ID
39683
          case 5: // FULFILMENT_WAREHOUSE_ID
39524
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39684
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39525
              this.fulfilmentWarehouseId = iprot.readI64();
39685
              this.fulfilmentWarehouseId = iprot.readI64();
39526
              setFulfilmentWarehouseIdIsSet(true);
39686
              setFulfilmentWarehouseIdIsSet(true);
39527
            } else { 
39687
            } else { 
39528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39529
            }
39689
            }
39530
            break;
39690
            break;
-
 
39691
          case 6: // QUANTITY
-
 
39692
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
39693
              this.quantity = iprot.readI64();
-
 
39694
              setQuantityIsSet(true);
-
 
39695
            } else { 
-
 
39696
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39697
            }
-
 
39698
            break;
39531
          case 5: // BILLING_WAREHOUSE_ID
39699
          case 7: // BILLING_WAREHOUSE_ID
39532
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39700
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39533
              this.billingWarehouseId = iprot.readI64();
39701
              this.billingWarehouseId = iprot.readI64();
39534
              setBillingWarehouseIdIsSet(true);
39702
              setBillingWarehouseIdIsSet(true);
39535
            } else { 
39703
            } else { 
39536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 39547... Line 39715...
39547
 
39715
 
39548
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39716
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39549
      validate();
39717
      validate();
39550
 
39718
 
39551
      oprot.writeStructBegin(STRUCT_DESC);
39719
      oprot.writeStructBegin(STRUCT_DESC);
-
 
39720
      if (this.serialNumber != null) {
-
 
39721
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
-
 
39722
        oprot.writeString(this.serialNumber);
-
 
39723
        oprot.writeFieldEnd();
-
 
39724
      }
39552
      if (this.inventoryItem != null) {
39725
      if (this.itemNumber != null) {
39553
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
39726
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
39554
        this.inventoryItem.write(oprot);
39727
        oprot.writeString(this.itemNumber);
39555
        oprot.writeFieldEnd();
39728
        oprot.writeFieldEnd();
39556
      }
39729
      }
-
 
39730
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
39731
      oprot.writeI64(this.itemId);
-
 
39732
      oprot.writeFieldEnd();
39557
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
39733
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
39558
      oprot.writeI64(this.orderId);
39734
      oprot.writeI64(this.orderId);
39559
      oprot.writeFieldEnd();
39735
      oprot.writeFieldEnd();
39560
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
39561
      oprot.writeI64(this.quantity);
-
 
39562
      oprot.writeFieldEnd();
-
 
39563
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
39736
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
39564
      oprot.writeI64(this.fulfilmentWarehouseId);
39737
      oprot.writeI64(this.fulfilmentWarehouseId);
39565
      oprot.writeFieldEnd();
39738
      oprot.writeFieldEnd();
-
 
39739
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
39740
      oprot.writeI64(this.quantity);
-
 
39741
      oprot.writeFieldEnd();
39566
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
39742
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
39567
      oprot.writeI64(this.billingWarehouseId);
39743
      oprot.writeI64(this.billingWarehouseId);
39568
      oprot.writeFieldEnd();
39744
      oprot.writeFieldEnd();
39569
      oprot.writeFieldStop();
39745
      oprot.writeFieldStop();
39570
      oprot.writeStructEnd();
39746
      oprot.writeStructEnd();
Line 39573... Line 39749...
39573
    @Override
39749
    @Override
39574
    public String toString() {
39750
    public String toString() {
39575
      StringBuilder sb = new StringBuilder("scanForBadSale_args(");
39751
      StringBuilder sb = new StringBuilder("scanForBadSale_args(");
39576
      boolean first = true;
39752
      boolean first = true;
39577
 
39753
 
39578
      sb.append("inventoryItem:");
39754
      sb.append("serialNumber:");
39579
      if (this.inventoryItem == null) {
39755
      if (this.serialNumber == null) {
39580
        sb.append("null");
39756
        sb.append("null");
39581
      } else {
39757
      } else {
39582
        sb.append(this.inventoryItem);
39758
        sb.append(this.serialNumber);
39583
      }
39759
      }
39584
      first = false;
39760
      first = false;
39585
      if (!first) sb.append(", ");
39761
      if (!first) sb.append(", ");
39586
      sb.append("orderId:");
39762
      sb.append("itemNumber:");
-
 
39763
      if (this.itemNumber == null) {
-
 
39764
        sb.append("null");
-
 
39765
      } else {
39587
      sb.append(this.orderId);
39766
        sb.append(this.itemNumber);
-
 
39767
      }
39588
      first = false;
39768
      first = false;
39589
      if (!first) sb.append(", ");
39769
      if (!first) sb.append(", ");
-
 
39770
      sb.append("itemId:");
-
 
39771
      sb.append(this.itemId);
-
 
39772
      first = false;
-
 
39773
      if (!first) sb.append(", ");
39590
      sb.append("quantity:");
39774
      sb.append("orderId:");
39591
      sb.append(this.quantity);
39775
      sb.append(this.orderId);
39592
      first = false;
39776
      first = false;
39593
      if (!first) sb.append(", ");
39777
      if (!first) sb.append(", ");
39594
      sb.append("fulfilmentWarehouseId:");
39778
      sb.append("fulfilmentWarehouseId:");
39595
      sb.append(this.fulfilmentWarehouseId);
39779
      sb.append(this.fulfilmentWarehouseId);
39596
      first = false;
39780
      first = false;
39597
      if (!first) sb.append(", ");
39781
      if (!first) sb.append(", ");
-
 
39782
      sb.append("quantity:");
-
 
39783
      sb.append(this.quantity);
-
 
39784
      first = false;
-
 
39785
      if (!first) sb.append(", ");
39598
      sb.append("billingWarehouseId:");
39786
      sb.append("billingWarehouseId:");
39599
      sb.append(this.billingWarehouseId);
39787
      sb.append(this.billingWarehouseId);
39600
      first = false;
39788
      first = false;
39601
      sb.append(")");
39789
      sb.append(")");
39602
      return sb.toString();
39790
      return sb.toString();
Line 39627... Line 39815...
39627
  }
39815
  }
39628
 
39816
 
39629
  public static class scanForBadSale_result implements org.apache.thrift.TBase<scanForBadSale_result, scanForBadSale_result._Fields>, java.io.Serializable, Cloneable   {
39817
  public static class scanForBadSale_result implements org.apache.thrift.TBase<scanForBadSale_result, scanForBadSale_result._Fields>, java.io.Serializable, Cloneable   {
39630
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForBadSale_result");
39818
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForBadSale_result");
39631
 
39819
 
-
 
39820
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
39821
    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);
39632
 
39822
 
-
 
39823
    private InventoryItem success; // required
-
 
39824
    private WarehouseServiceException wex; // required
39633
 
39825
 
39634
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39826
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39635
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39827
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39636
;
-
 
-
 
39828
      SUCCESS((short)0, "success"),
-
 
39829
      WEX((short)1, "wex");
39637
 
39830
 
39638
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39831
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39639
 
39832
 
39640
      static {
39833
      static {
39641
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39834
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 39646... Line 39839...
39646
      /**
39839
      /**
39647
       * Find the _Fields constant that matches fieldId, or null if its not found.
39840
       * Find the _Fields constant that matches fieldId, or null if its not found.
39648
       */
39841
       */
39649
      public static _Fields findByThriftId(int fieldId) {
39842
      public static _Fields findByThriftId(int fieldId) {
39650
        switch(fieldId) {
39843
        switch(fieldId) {
-
 
39844
          case 0: // SUCCESS
-
 
39845
            return SUCCESS;
-
 
39846
          case 1: // WEX
-
 
39847
            return WEX;
39651
          default:
39848
          default:
39652
            return null;
39849
            return null;
39653
        }
39850
        }
39654
      }
39851
      }
39655
 
39852
 
Line 39684... Line 39881...
39684
 
39881
 
39685
      public String getFieldName() {
39882
      public String getFieldName() {
39686
        return _fieldName;
39883
        return _fieldName;
39687
      }
39884
      }
39688
    }
39885
    }
-
 
39886
 
-
 
39887
    // isset id assignments
-
 
39888
 
39689
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39889
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39690
    static {
39890
    static {
39691
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39891
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
39892
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39893
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
-
 
39894
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39895
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39692
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39896
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39693
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForBadSale_result.class, metaDataMap);
39897
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForBadSale_result.class, metaDataMap);
39694
    }
39898
    }
39695
 
39899
 
39696
    public scanForBadSale_result() {
39900
    public scanForBadSale_result() {
39697
    }
39901
    }
39698
 
39902
 
-
 
39903
    public scanForBadSale_result(
-
 
39904
      InventoryItem success,
-
 
39905
      WarehouseServiceException wex)
-
 
39906
    {
-
 
39907
      this();
-
 
39908
      this.success = success;
-
 
39909
      this.wex = wex;
-
 
39910
    }
-
 
39911
 
39699
    /**
39912
    /**
39700
     * Performs a deep copy on <i>other</i>.
39913
     * Performs a deep copy on <i>other</i>.
39701
     */
39914
     */
39702
    public scanForBadSale_result(scanForBadSale_result other) {
39915
    public scanForBadSale_result(scanForBadSale_result other) {
-
 
39916
      if (other.isSetSuccess()) {
-
 
39917
        this.success = new InventoryItem(other.success);
-
 
39918
      }
-
 
39919
      if (other.isSetWex()) {
-
 
39920
        this.wex = new WarehouseServiceException(other.wex);
-
 
39921
      }
39703
    }
39922
    }
39704
 
39923
 
39705
    public scanForBadSale_result deepCopy() {
39924
    public scanForBadSale_result deepCopy() {
39706
      return new scanForBadSale_result(this);
39925
      return new scanForBadSale_result(this);
39707
    }
39926
    }
39708
 
39927
 
39709
    @Override
39928
    @Override
39710
    public void clear() {
39929
    public void clear() {
-
 
39930
      this.success = null;
-
 
39931
      this.wex = null;
-
 
39932
    }
-
 
39933
 
-
 
39934
    public InventoryItem getSuccess() {
-
 
39935
      return this.success;
-
 
39936
    }
-
 
39937
 
-
 
39938
    public void setSuccess(InventoryItem success) {
-
 
39939
      this.success = success;
-
 
39940
    }
-
 
39941
 
-
 
39942
    public void unsetSuccess() {
-
 
39943
      this.success = null;
-
 
39944
    }
-
 
39945
 
-
 
39946
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
39947
    public boolean isSetSuccess() {
-
 
39948
      return this.success != null;
-
 
39949
    }
-
 
39950
 
-
 
39951
    public void setSuccessIsSet(boolean value) {
-
 
39952
      if (!value) {
-
 
39953
        this.success = null;
-
 
39954
      }
-
 
39955
    }
-
 
39956
 
-
 
39957
    public WarehouseServiceException getWex() {
-
 
39958
      return this.wex;
-
 
39959
    }
-
 
39960
 
-
 
39961
    public void setWex(WarehouseServiceException wex) {
-
 
39962
      this.wex = wex;
-
 
39963
    }
-
 
39964
 
-
 
39965
    public void unsetWex() {
-
 
39966
      this.wex = null;
-
 
39967
    }
-
 
39968
 
-
 
39969
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
39970
    public boolean isSetWex() {
-
 
39971
      return this.wex != null;
-
 
39972
    }
-
 
39973
 
-
 
39974
    public void setWexIsSet(boolean value) {
-
 
39975
      if (!value) {
-
 
39976
        this.wex = null;
-
 
39977
      }
39711
    }
39978
    }
39712
 
39979
 
39713
    public void setFieldValue(_Fields field, Object value) {
39980
    public void setFieldValue(_Fields field, Object value) {
39714
      switch (field) {
39981
      switch (field) {
-
 
39982
      case SUCCESS:
-
 
39983
        if (value == null) {
-
 
39984
          unsetSuccess();
-
 
39985
        } else {
-
 
39986
          setSuccess((InventoryItem)value);
-
 
39987
        }
-
 
39988
        break;
-
 
39989
 
-
 
39990
      case WEX:
-
 
39991
        if (value == null) {
-
 
39992
          unsetWex();
-
 
39993
        } else {
-
 
39994
          setWex((WarehouseServiceException)value);
-
 
39995
        }
-
 
39996
        break;
-
 
39997
 
39715
      }
39998
      }
39716
    }
39999
    }
39717
 
40000
 
39718
    public Object getFieldValue(_Fields field) {
40001
    public Object getFieldValue(_Fields field) {
39719
      switch (field) {
40002
      switch (field) {
-
 
40003
      case SUCCESS:
-
 
40004
        return getSuccess();
-
 
40005
 
-
 
40006
      case WEX:
-
 
40007
        return getWex();
-
 
40008
 
39720
      }
40009
      }
39721
      throw new IllegalStateException();
40010
      throw new IllegalStateException();
39722
    }
40011
    }
39723
 
40012
 
39724
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40013
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 39726... Line 40015...
39726
      if (field == null) {
40015
      if (field == null) {
39727
        throw new IllegalArgumentException();
40016
        throw new IllegalArgumentException();
39728
      }
40017
      }
39729
 
40018
 
39730
      switch (field) {
40019
      switch (field) {
-
 
40020
      case SUCCESS:
-
 
40021
        return isSetSuccess();
-
 
40022
      case WEX:
-
 
40023
        return isSetWex();
39731
      }
40024
      }
39732
      throw new IllegalStateException();
40025
      throw new IllegalStateException();
39733
    }
40026
    }
39734
 
40027
 
39735
    @Override
40028
    @Override
Line 39743... Line 40036...
39743
 
40036
 
39744
    public boolean equals(scanForBadSale_result that) {
40037
    public boolean equals(scanForBadSale_result that) {
39745
      if (that == null)
40038
      if (that == null)
39746
        return false;
40039
        return false;
39747
 
40040
 
-
 
40041
      boolean this_present_success = true && this.isSetSuccess();
-
 
40042
      boolean that_present_success = true && that.isSetSuccess();
-
 
40043
      if (this_present_success || that_present_success) {
-
 
40044
        if (!(this_present_success && that_present_success))
-
 
40045
          return false;
-
 
40046
        if (!this.success.equals(that.success))
-
 
40047
          return false;
-
 
40048
      }
-
 
40049
 
-
 
40050
      boolean this_present_wex = true && this.isSetWex();
-
 
40051
      boolean that_present_wex = true && that.isSetWex();
-
 
40052
      if (this_present_wex || that_present_wex) {
-
 
40053
        if (!(this_present_wex && that_present_wex))
-
 
40054
          return false;
-
 
40055
        if (!this.wex.equals(that.wex))
-
 
40056
          return false;
-
 
40057
      }
-
 
40058
 
39748
      return true;
40059
      return true;
39749
    }
40060
    }
39750
 
40061
 
39751
    @Override
40062
    @Override
39752
    public int hashCode() {
40063
    public int hashCode() {
Line 39759... Line 40070...
39759
      }
40070
      }
39760
 
40071
 
39761
      int lastComparison = 0;
40072
      int lastComparison = 0;
39762
      scanForBadSale_result typedOther = (scanForBadSale_result)other;
40073
      scanForBadSale_result typedOther = (scanForBadSale_result)other;
39763
 
40074
 
-
 
40075
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
40076
      if (lastComparison != 0) {
-
 
40077
        return lastComparison;
-
 
40078
      }
-
 
40079
      if (isSetSuccess()) {
-
 
40080
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
40081
        if (lastComparison != 0) {
-
 
40082
          return lastComparison;
-
 
40083
        }
-
 
40084
      }
-
 
40085
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
40086
      if (lastComparison != 0) {
-
 
40087
        return lastComparison;
-
 
40088
      }
-
 
40089
      if (isSetWex()) {
-
 
40090
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
40091
        if (lastComparison != 0) {
-
 
40092
          return lastComparison;
-
 
40093
        }
-
 
40094
      }
39764
      return 0;
40095
      return 0;
39765
    }
40096
    }
39766
 
40097
 
39767
    public _Fields fieldForId(int fieldId) {
40098
    public _Fields fieldForId(int fieldId) {
39768
      return _Fields.findByThriftId(fieldId);
40099
      return _Fields.findByThriftId(fieldId);
Line 39776... Line 40107...
39776
        field = iprot.readFieldBegin();
40107
        field = iprot.readFieldBegin();
39777
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40108
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39778
          break;
40109
          break;
39779
        }
40110
        }
39780
        switch (field.id) {
40111
        switch (field.id) {
-
 
40112
          case 0: // SUCCESS
-
 
40113
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
40114
              this.success = new InventoryItem();
-
 
40115
              this.success.read(iprot);
-
 
40116
            } else { 
-
 
40117
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40118
            }
-
 
40119
            break;
-
 
40120
          case 1: // WEX
-
 
40121
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
40122
              this.wex = new WarehouseServiceException();
-
 
40123
              this.wex.read(iprot);
-
 
40124
            } else { 
-
 
40125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40126
            }
-
 
40127
            break;
39781
          default:
40128
          default:
39782
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40129
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39783
        }
40130
        }
39784
        iprot.readFieldEnd();
40131
        iprot.readFieldEnd();
39785
      }
40132
      }
Line 39788... Line 40135...
39788
    }
40135
    }
39789
 
40136
 
39790
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40137
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39791
      oprot.writeStructBegin(STRUCT_DESC);
40138
      oprot.writeStructBegin(STRUCT_DESC);
39792
 
40139
 
-
 
40140
      if (this.isSetSuccess()) {
-
 
40141
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
40142
        this.success.write(oprot);
-
 
40143
        oprot.writeFieldEnd();
-
 
40144
      } else if (this.isSetWex()) {
-
 
40145
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
40146
        this.wex.write(oprot);
-
 
40147
        oprot.writeFieldEnd();
-
 
40148
      }
39793
      oprot.writeFieldStop();
40149
      oprot.writeFieldStop();
39794
      oprot.writeStructEnd();
40150
      oprot.writeStructEnd();
39795
    }
40151
    }
39796
 
40152
 
39797
    @Override
40153
    @Override
39798
    public String toString() {
40154
    public String toString() {
39799
      StringBuilder sb = new StringBuilder("scanForBadSale_result(");
40155
      StringBuilder sb = new StringBuilder("scanForBadSale_result(");
39800
      boolean first = true;
40156
      boolean first = true;
39801
 
40157
 
-
 
40158
      sb.append("success:");
-
 
40159
      if (this.success == null) {
-
 
40160
        sb.append("null");
-
 
40161
      } else {
-
 
40162
        sb.append(this.success);
-
 
40163
      }
-
 
40164
      first = false;
-
 
40165
      if (!first) sb.append(", ");
-
 
40166
      sb.append("wex:");
-
 
40167
      if (this.wex == null) {
-
 
40168
        sb.append("null");
-
 
40169
      } else {
-
 
40170
        sb.append(this.wex);
-
 
40171
      }
-
 
40172
      first = false;
39802
      sb.append(")");
40173
      sb.append(")");
39803
      return sb.toString();
40174
      return sb.toString();
39804
    }
40175
    }
39805
 
40176
 
39806
    public void validate() throws org.apache.thrift.TException {
40177
    public void validate() throws org.apache.thrift.TException {