Subversion Repositories SmartDukaan

Rev

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

Rev 7453 Rev 7574
Line 257... Line 257...
257
 
257
 
258
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
258
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
259
 
259
 
260
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws WarehouseServiceException, org.apache.thrift.TException;
260
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id) throws WarehouseServiceException, org.apache.thrift.TException;
261
 
261
 
-
 
262
    public long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
263
 
262
  }
264
  }
263
 
265
 
264
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
266
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
265
 
267
 
266
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
268
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 347... Line 349...
347
 
349
 
348
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForTransferIn_call> resultHandler) throws org.apache.thrift.TException;
350
    public void scanForTransferIn(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForTransferIn_call> resultHandler) throws org.apache.thrift.TException;
349
 
351
 
350
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException;
352
    public void scanForOursThirdPartyReceive(List<InventoryItem> inventoryItems, long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursThirdPartyReceive_call> resultHandler) throws org.apache.thrift.TException;
351
 
353
 
-
 
354
    public void getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call> resultHandler) throws org.apache.thrift.TException;
-
 
355
 
352
  }
356
  }
353
 
357
 
354
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
358
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
355
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
359
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
356
      public Factory() {}
360
      public Factory() {}
Line 1440... Line 1444...
1440
        throw result.wex;
1444
        throw result.wex;
1441
      }
1445
      }
1442
      return;
1446
      return;
1443
    }
1447
    }
1444
 
1448
 
-
 
1449
    public long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1450
    {
-
 
1451
      send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId);
-
 
1452
      return recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse();
-
 
1453
    }
-
 
1454
 
-
 
1455
    public void send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws org.apache.thrift.TException
-
 
1456
    {
-
 
1457
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args args = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args();
-
 
1458
      args.setItemId(itemId);
-
 
1459
      args.setPhysicalWarehouseId(physicalWarehouseId);
-
 
1460
      sendBase("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", args);
-
 
1461
    }
-
 
1462
 
-
 
1463
    public long recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1464
    {
-
 
1465
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result result = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result();
-
 
1466
      receiveBase(result, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse");
-
 
1467
      if (result.isSetSuccess()) {
-
 
1468
        return result.success;
-
 
1469
      }
-
 
1470
      if (result.wex != null) {
-
 
1471
        throw result.wex;
-
 
1472
      }
-
 
1473
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");
-
 
1474
    }
-
 
1475
 
1445
  }
1476
  }
1446
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1477
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1447
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1478
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1448
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1479
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1449
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1480
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 2972... Line 3003...
2972
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3003
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2973
        (new Client(prot)).recv_scanForOursThirdPartyReceive();
3004
        (new Client(prot)).recv_scanForOursThirdPartyReceive();
2974
      }
3005
      }
2975
    }
3006
    }
2976
 
3007
 
-
 
3008
    public void getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call> resultHandler) throws org.apache.thrift.TException {
-
 
3009
      checkReady();
-
 
3010
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call method_call = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call(itemId, physicalWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
3011
      this.___currentMethod = method_call;
-
 
3012
      ___manager.call(method_call);
-
 
3013
    }
-
 
3014
 
-
 
3015
    public static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3016
      private long itemId;
-
 
3017
      private long physicalWarehouseId;
-
 
3018
      public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_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 {
-
 
3019
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3020
        this.itemId = itemId;
-
 
3021
        this.physicalWarehouseId = physicalWarehouseId;
-
 
3022
      }
-
 
3023
 
-
 
3024
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3025
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3026
        getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args args = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args();
-
 
3027
        args.setItemId(itemId);
-
 
3028
        args.setPhysicalWarehouseId(physicalWarehouseId);
-
 
3029
        args.write(prot);
-
 
3030
        prot.writeMessageEnd();
-
 
3031
      }
-
 
3032
 
-
 
3033
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
3034
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3035
          throw new IllegalStateException("Method call not finished!");
-
 
3036
        }
-
 
3037
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3038
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3039
        return (new Client(prot)).recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse();
-
 
3040
      }
-
 
3041
    }
-
 
3042
 
2977
  }
3043
  }
2978
 
3044
 
2979
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3045
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2980
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3046
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2981
    public Processor(I iface) {
3047
    public Processor(I iface) {
Line 3028... Line 3094...
3028
      processMap.put("markItemsAsReceivedForTransferLot", new markItemsAsReceivedForTransferLot());
3094
      processMap.put("markItemsAsReceivedForTransferLot", new markItemsAsReceivedForTransferLot());
3029
      processMap.put("updateTransferLotAfterItemReceive", new updateTransferLotAfterItemReceive());
3095
      processMap.put("updateTransferLotAfterItemReceive", new updateTransferLotAfterItemReceive());
3030
      processMap.put("scanForTransferOut", new scanForTransferOut());
3096
      processMap.put("scanForTransferOut", new scanForTransferOut());
3031
      processMap.put("scanForTransferIn", new scanForTransferIn());
3097
      processMap.put("scanForTransferIn", new scanForTransferIn());
3032
      processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
3098
      processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
-
 
3099
      processMap.put("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse());
3033
      return processMap;
3100
      return processMap;
3034
    }
3101
    }
3035
 
3102
 
3036
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
3103
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
3037
      public getInventoryItem() {
3104
      public getInventoryItem() {
Line 3813... Line 3880...
3813
        }
3880
        }
3814
        return result;
3881
        return result;
3815
      }
3882
      }
3816
    }
3883
    }
3817
 
3884
 
-
 
3885
    private static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args> {
-
 
3886
      public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse() {
-
 
3887
        super("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse");
-
 
3888
      }
-
 
3889
 
-
 
3890
      protected getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args getEmptyArgsInstance() {
-
 
3891
        return new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args();
-
 
3892
      }
-
 
3893
 
-
 
3894
      protected getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result getResult(I iface, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args args) throws org.apache.thrift.TException {
-
 
3895
        getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result result = new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result();
-
 
3896
        try {
-
 
3897
          result.success = iface.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId);
-
 
3898
          result.setSuccessIsSet(true);
-
 
3899
        } catch (WarehouseServiceException wex) {
-
 
3900
          result.wex = wex;
-
 
3901
        }
-
 
3902
        return result;
-
 
3903
      }
-
 
3904
    }
-
 
3905
 
3818
  }
3906
  }
3819
 
3907
 
3820
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
3908
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
3821
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
3909
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
3822
 
3910
 
Line 35037... Line 35125...
35037
      sb.append("wex:");
35125
      sb.append("wex:");
35038
      if (this.wex == null) {
35126
      if (this.wex == null) {
35039
        sb.append("null");
35127
        sb.append("null");
35040
      } else {
35128
      } else {
35041
        sb.append(this.wex);
35129
        sb.append(this.wex);
-
 
35130
      }
-
 
35131
      first = false;
-
 
35132
      sb.append(")");
-
 
35133
      return sb.toString();
-
 
35134
    }
-
 
35135
 
-
 
35136
    public void validate() throws org.apache.thrift.TException {
-
 
35137
      // check for required fields
-
 
35138
    }
-
 
35139
 
-
 
35140
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
35141
      try {
-
 
35142
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
35143
      } catch (org.apache.thrift.TException te) {
-
 
35144
        throw new java.io.IOException(te);
-
 
35145
      }
-
 
35146
    }
-
 
35147
 
-
 
35148
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
35149
      try {
-
 
35150
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
35151
      } catch (org.apache.thrift.TException te) {
-
 
35152
        throw new java.io.IOException(te);
-
 
35153
      }
-
 
35154
    }
-
 
35155
 
-
 
35156
  }
-
 
35157
 
-
 
35158
  public static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args implements org.apache.thrift.TBase<getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
-
 
35159
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args");
-
 
35160
 
-
 
35161
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
35162
    private static final org.apache.thrift.protocol.TField PHYSICAL_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("physicalWarehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
35163
 
-
 
35164
    private long itemId; // required
-
 
35165
    private long physicalWarehouseId; // required
-
 
35166
 
-
 
35167
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
35168
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
35169
      ITEM_ID((short)1, "itemId"),
-
 
35170
      PHYSICAL_WAREHOUSE_ID((short)2, "physicalWarehouseId");
-
 
35171
 
-
 
35172
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35173
 
-
 
35174
      static {
-
 
35175
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
35176
          byName.put(field.getFieldName(), field);
-
 
35177
        }
-
 
35178
      }
-
 
35179
 
-
 
35180
      /**
-
 
35181
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35182
       */
-
 
35183
      public static _Fields findByThriftId(int fieldId) {
-
 
35184
        switch(fieldId) {
-
 
35185
          case 1: // ITEM_ID
-
 
35186
            return ITEM_ID;
-
 
35187
          case 2: // PHYSICAL_WAREHOUSE_ID
-
 
35188
            return PHYSICAL_WAREHOUSE_ID;
-
 
35189
          default:
-
 
35190
            return null;
-
 
35191
        }
-
 
35192
      }
-
 
35193
 
-
 
35194
      /**
-
 
35195
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35196
       * if it is not found.
-
 
35197
       */
-
 
35198
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35199
        _Fields fields = findByThriftId(fieldId);
-
 
35200
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35201
        return fields;
-
 
35202
      }
-
 
35203
 
-
 
35204
      /**
-
 
35205
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35206
       */
-
 
35207
      public static _Fields findByName(String name) {
-
 
35208
        return byName.get(name);
-
 
35209
      }
-
 
35210
 
-
 
35211
      private final short _thriftId;
-
 
35212
      private final String _fieldName;
-
 
35213
 
-
 
35214
      _Fields(short thriftId, String fieldName) {
-
 
35215
        _thriftId = thriftId;
-
 
35216
        _fieldName = fieldName;
-
 
35217
      }
-
 
35218
 
-
 
35219
      public short getThriftFieldId() {
-
 
35220
        return _thriftId;
-
 
35221
      }
-
 
35222
 
-
 
35223
      public String getFieldName() {
-
 
35224
        return _fieldName;
-
 
35225
      }
-
 
35226
    }
-
 
35227
 
-
 
35228
    // isset id assignments
-
 
35229
    private static final int __ITEMID_ISSET_ID = 0;
-
 
35230
    private static final int __PHYSICALWAREHOUSEID_ISSET_ID = 1;
-
 
35231
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
35232
 
-
 
35233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
35234
    static {
-
 
35235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
35236
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
35237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
35238
      tmpMap.put(_Fields.PHYSICAL_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("physicalWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
35239
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
35240
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
35241
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args.class, metaDataMap);
-
 
35242
    }
-
 
35243
 
-
 
35244
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args() {
-
 
35245
    }
-
 
35246
 
-
 
35247
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(
-
 
35248
      long itemId,
-
 
35249
      long physicalWarehouseId)
-
 
35250
    {
-
 
35251
      this();
-
 
35252
      this.itemId = itemId;
-
 
35253
      setItemIdIsSet(true);
-
 
35254
      this.physicalWarehouseId = physicalWarehouseId;
-
 
35255
      setPhysicalWarehouseIdIsSet(true);
-
 
35256
    }
-
 
35257
 
-
 
35258
    /**
-
 
35259
     * Performs a deep copy on <i>other</i>.
-
 
35260
     */
-
 
35261
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args other) {
-
 
35262
      __isset_bit_vector.clear();
-
 
35263
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
35264
      this.itemId = other.itemId;
-
 
35265
      this.physicalWarehouseId = other.physicalWarehouseId;
-
 
35266
    }
-
 
35267
 
-
 
35268
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args deepCopy() {
-
 
35269
      return new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(this);
-
 
35270
    }
-
 
35271
 
-
 
35272
    @Override
-
 
35273
    public void clear() {
-
 
35274
      setItemIdIsSet(false);
-
 
35275
      this.itemId = 0;
-
 
35276
      setPhysicalWarehouseIdIsSet(false);
-
 
35277
      this.physicalWarehouseId = 0;
-
 
35278
    }
-
 
35279
 
-
 
35280
    public long getItemId() {
-
 
35281
      return this.itemId;
-
 
35282
    }
-
 
35283
 
-
 
35284
    public void setItemId(long itemId) {
-
 
35285
      this.itemId = itemId;
-
 
35286
      setItemIdIsSet(true);
-
 
35287
    }
-
 
35288
 
-
 
35289
    public void unsetItemId() {
-
 
35290
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
35291
    }
-
 
35292
 
-
 
35293
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
35294
    public boolean isSetItemId() {
-
 
35295
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
35296
    }
-
 
35297
 
-
 
35298
    public void setItemIdIsSet(boolean value) {
-
 
35299
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
35300
    }
-
 
35301
 
-
 
35302
    public long getPhysicalWarehouseId() {
-
 
35303
      return this.physicalWarehouseId;
-
 
35304
    }
-
 
35305
 
-
 
35306
    public void setPhysicalWarehouseId(long physicalWarehouseId) {
-
 
35307
      this.physicalWarehouseId = physicalWarehouseId;
-
 
35308
      setPhysicalWarehouseIdIsSet(true);
-
 
35309
    }
-
 
35310
 
-
 
35311
    public void unsetPhysicalWarehouseId() {
-
 
35312
      __isset_bit_vector.clear(__PHYSICALWAREHOUSEID_ISSET_ID);
-
 
35313
    }
-
 
35314
 
-
 
35315
    /** Returns true if field physicalWarehouseId is set (has been assigned a value) and false otherwise */
-
 
35316
    public boolean isSetPhysicalWarehouseId() {
-
 
35317
      return __isset_bit_vector.get(__PHYSICALWAREHOUSEID_ISSET_ID);
-
 
35318
    }
-
 
35319
 
-
 
35320
    public void setPhysicalWarehouseIdIsSet(boolean value) {
-
 
35321
      __isset_bit_vector.set(__PHYSICALWAREHOUSEID_ISSET_ID, value);
-
 
35322
    }
-
 
35323
 
-
 
35324
    public void setFieldValue(_Fields field, Object value) {
-
 
35325
      switch (field) {
-
 
35326
      case ITEM_ID:
-
 
35327
        if (value == null) {
-
 
35328
          unsetItemId();
-
 
35329
        } else {
-
 
35330
          setItemId((Long)value);
-
 
35331
        }
-
 
35332
        break;
-
 
35333
 
-
 
35334
      case PHYSICAL_WAREHOUSE_ID:
-
 
35335
        if (value == null) {
-
 
35336
          unsetPhysicalWarehouseId();
-
 
35337
        } else {
-
 
35338
          setPhysicalWarehouseId((Long)value);
-
 
35339
        }
-
 
35340
        break;
-
 
35341
 
-
 
35342
      }
-
 
35343
    }
-
 
35344
 
-
 
35345
    public Object getFieldValue(_Fields field) {
-
 
35346
      switch (field) {
-
 
35347
      case ITEM_ID:
-
 
35348
        return Long.valueOf(getItemId());
-
 
35349
 
-
 
35350
      case PHYSICAL_WAREHOUSE_ID:
-
 
35351
        return Long.valueOf(getPhysicalWarehouseId());
-
 
35352
 
-
 
35353
      }
-
 
35354
      throw new IllegalStateException();
-
 
35355
    }
-
 
35356
 
-
 
35357
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
35358
    public boolean isSet(_Fields field) {
-
 
35359
      if (field == null) {
-
 
35360
        throw new IllegalArgumentException();
-
 
35361
      }
-
 
35362
 
-
 
35363
      switch (field) {
-
 
35364
      case ITEM_ID:
-
 
35365
        return isSetItemId();
-
 
35366
      case PHYSICAL_WAREHOUSE_ID:
-
 
35367
        return isSetPhysicalWarehouseId();
-
 
35368
      }
-
 
35369
      throw new IllegalStateException();
-
 
35370
    }
-
 
35371
 
-
 
35372
    @Override
-
 
35373
    public boolean equals(Object that) {
-
 
35374
      if (that == null)
-
 
35375
        return false;
-
 
35376
      if (that instanceof getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args)
-
 
35377
        return this.equals((getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args)that);
-
 
35378
      return false;
-
 
35379
    }
-
 
35380
 
-
 
35381
    public boolean equals(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args that) {
-
 
35382
      if (that == null)
-
 
35383
        return false;
-
 
35384
 
-
 
35385
      boolean this_present_itemId = true;
-
 
35386
      boolean that_present_itemId = true;
-
 
35387
      if (this_present_itemId || that_present_itemId) {
-
 
35388
        if (!(this_present_itemId && that_present_itemId))
-
 
35389
          return false;
-
 
35390
        if (this.itemId != that.itemId)
-
 
35391
          return false;
-
 
35392
      }
-
 
35393
 
-
 
35394
      boolean this_present_physicalWarehouseId = true;
-
 
35395
      boolean that_present_physicalWarehouseId = true;
-
 
35396
      if (this_present_physicalWarehouseId || that_present_physicalWarehouseId) {
-
 
35397
        if (!(this_present_physicalWarehouseId && that_present_physicalWarehouseId))
-
 
35398
          return false;
-
 
35399
        if (this.physicalWarehouseId != that.physicalWarehouseId)
-
 
35400
          return false;
-
 
35401
      }
-
 
35402
 
-
 
35403
      return true;
-
 
35404
    }
-
 
35405
 
-
 
35406
    @Override
-
 
35407
    public int hashCode() {
-
 
35408
      return 0;
-
 
35409
    }
-
 
35410
 
-
 
35411
    public int compareTo(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args other) {
-
 
35412
      if (!getClass().equals(other.getClass())) {
-
 
35413
        return getClass().getName().compareTo(other.getClass().getName());
-
 
35414
      }
-
 
35415
 
-
 
35416
      int lastComparison = 0;
-
 
35417
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args typedOther = (getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args)other;
-
 
35418
 
-
 
35419
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
35420
      if (lastComparison != 0) {
-
 
35421
        return lastComparison;
-
 
35422
      }
-
 
35423
      if (isSetItemId()) {
-
 
35424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
35425
        if (lastComparison != 0) {
-
 
35426
          return lastComparison;
-
 
35427
        }
-
 
35428
      }
-
 
35429
      lastComparison = Boolean.valueOf(isSetPhysicalWarehouseId()).compareTo(typedOther.isSetPhysicalWarehouseId());
-
 
35430
      if (lastComparison != 0) {
-
 
35431
        return lastComparison;
-
 
35432
      }
-
 
35433
      if (isSetPhysicalWarehouseId()) {
-
 
35434
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.physicalWarehouseId, typedOther.physicalWarehouseId);
-
 
35435
        if (lastComparison != 0) {
-
 
35436
          return lastComparison;
-
 
35437
        }
-
 
35438
      }
-
 
35439
      return 0;
-
 
35440
    }
-
 
35441
 
-
 
35442
    public _Fields fieldForId(int fieldId) {
-
 
35443
      return _Fields.findByThriftId(fieldId);
-
 
35444
    }
-
 
35445
 
-
 
35446
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
35447
      org.apache.thrift.protocol.TField field;
-
 
35448
      iprot.readStructBegin();
-
 
35449
      while (true)
-
 
35450
      {
-
 
35451
        field = iprot.readFieldBegin();
-
 
35452
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
35453
          break;
-
 
35454
        }
-
 
35455
        switch (field.id) {
-
 
35456
          case 1: // ITEM_ID
-
 
35457
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
35458
              this.itemId = iprot.readI64();
-
 
35459
              setItemIdIsSet(true);
-
 
35460
            } else { 
-
 
35461
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35462
            }
-
 
35463
            break;
-
 
35464
          case 2: // PHYSICAL_WAREHOUSE_ID
-
 
35465
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
35466
              this.physicalWarehouseId = iprot.readI64();
-
 
35467
              setPhysicalWarehouseIdIsSet(true);
-
 
35468
            } else { 
-
 
35469
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35470
            }
-
 
35471
            break;
-
 
35472
          default:
-
 
35473
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35474
        }
-
 
35475
        iprot.readFieldEnd();
-
 
35476
      }
-
 
35477
      iprot.readStructEnd();
-
 
35478
      validate();
-
 
35479
    }
-
 
35480
 
-
 
35481
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
35482
      validate();
-
 
35483
 
-
 
35484
      oprot.writeStructBegin(STRUCT_DESC);
-
 
35485
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
35486
      oprot.writeI64(this.itemId);
-
 
35487
      oprot.writeFieldEnd();
-
 
35488
      oprot.writeFieldBegin(PHYSICAL_WAREHOUSE_ID_FIELD_DESC);
-
 
35489
      oprot.writeI64(this.physicalWarehouseId);
-
 
35490
      oprot.writeFieldEnd();
-
 
35491
      oprot.writeFieldStop();
-
 
35492
      oprot.writeStructEnd();
-
 
35493
    }
-
 
35494
 
-
 
35495
    @Override
-
 
35496
    public String toString() {
-
 
35497
      StringBuilder sb = new StringBuilder("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args(");
-
 
35498
      boolean first = true;
-
 
35499
 
-
 
35500
      sb.append("itemId:");
-
 
35501
      sb.append(this.itemId);
-
 
35502
      first = false;
-
 
35503
      if (!first) sb.append(", ");
-
 
35504
      sb.append("physicalWarehouseId:");
-
 
35505
      sb.append(this.physicalWarehouseId);
-
 
35506
      first = false;
-
 
35507
      sb.append(")");
-
 
35508
      return sb.toString();
-
 
35509
    }
-
 
35510
 
-
 
35511
    public void validate() throws org.apache.thrift.TException {
-
 
35512
      // check for required fields
-
 
35513
    }
-
 
35514
 
-
 
35515
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
35516
      try {
-
 
35517
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
35518
      } catch (org.apache.thrift.TException te) {
-
 
35519
        throw new java.io.IOException(te);
-
 
35520
      }
-
 
35521
    }
-
 
35522
 
-
 
35523
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
35524
      try {
-
 
35525
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
35526
        __isset_bit_vector = new BitSet(1);
-
 
35527
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
35528
      } catch (org.apache.thrift.TException te) {
-
 
35529
        throw new java.io.IOException(te);
-
 
35530
      }
-
 
35531
    }
-
 
35532
 
-
 
35533
  }
-
 
35534
 
-
 
35535
  public static class getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result implements org.apache.thrift.TBase<getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result, getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
-
 
35536
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result");
-
 
35537
 
-
 
35538
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
35539
    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);
-
 
35540
 
-
 
35541
    private long success; // required
-
 
35542
    private WarehouseServiceException wex; // required
-
 
35543
 
-
 
35544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
35545
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
35546
      SUCCESS((short)0, "success"),
-
 
35547
      WEX((short)1, "wex");
-
 
35548
 
-
 
35549
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35550
 
-
 
35551
      static {
-
 
35552
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
35553
          byName.put(field.getFieldName(), field);
-
 
35554
        }
-
 
35555
      }
-
 
35556
 
-
 
35557
      /**
-
 
35558
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
35559
       */
-
 
35560
      public static _Fields findByThriftId(int fieldId) {
-
 
35561
        switch(fieldId) {
-
 
35562
          case 0: // SUCCESS
-
 
35563
            return SUCCESS;
-
 
35564
          case 1: // WEX
-
 
35565
            return WEX;
-
 
35566
          default:
-
 
35567
            return null;
-
 
35568
        }
-
 
35569
      }
-
 
35570
 
-
 
35571
      /**
-
 
35572
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
35573
       * if it is not found.
-
 
35574
       */
-
 
35575
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
35576
        _Fields fields = findByThriftId(fieldId);
-
 
35577
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
35578
        return fields;
-
 
35579
      }
-
 
35580
 
-
 
35581
      /**
-
 
35582
       * Find the _Fields constant that matches name, or null if its not found.
-
 
35583
       */
-
 
35584
      public static _Fields findByName(String name) {
-
 
35585
        return byName.get(name);
-
 
35586
      }
-
 
35587
 
-
 
35588
      private final short _thriftId;
-
 
35589
      private final String _fieldName;
-
 
35590
 
-
 
35591
      _Fields(short thriftId, String fieldName) {
-
 
35592
        _thriftId = thriftId;
-
 
35593
        _fieldName = fieldName;
-
 
35594
      }
-
 
35595
 
-
 
35596
      public short getThriftFieldId() {
-
 
35597
        return _thriftId;
-
 
35598
      }
-
 
35599
 
-
 
35600
      public String getFieldName() {
-
 
35601
        return _fieldName;
-
 
35602
      }
-
 
35603
    }
-
 
35604
 
-
 
35605
    // isset id assignments
-
 
35606
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
35607
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
35608
 
-
 
35609
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
35610
    static {
-
 
35611
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
35612
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
35613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
35614
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
35615
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
35616
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
35617
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result.class, metaDataMap);
-
 
35618
    }
-
 
35619
 
-
 
35620
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result() {
-
 
35621
    }
-
 
35622
 
-
 
35623
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(
-
 
35624
      long success,
-
 
35625
      WarehouseServiceException wex)
-
 
35626
    {
-
 
35627
      this();
-
 
35628
      this.success = success;
-
 
35629
      setSuccessIsSet(true);
-
 
35630
      this.wex = wex;
-
 
35631
    }
-
 
35632
 
-
 
35633
    /**
-
 
35634
     * Performs a deep copy on <i>other</i>.
-
 
35635
     */
-
 
35636
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result other) {
-
 
35637
      __isset_bit_vector.clear();
-
 
35638
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
35639
      this.success = other.success;
-
 
35640
      if (other.isSetWex()) {
-
 
35641
        this.wex = new WarehouseServiceException(other.wex);
-
 
35642
      }
-
 
35643
    }
-
 
35644
 
-
 
35645
    public getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result deepCopy() {
-
 
35646
      return new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(this);
-
 
35647
    }
-
 
35648
 
-
 
35649
    @Override
-
 
35650
    public void clear() {
-
 
35651
      setSuccessIsSet(false);
-
 
35652
      this.success = 0;
-
 
35653
      this.wex = null;
-
 
35654
    }
-
 
35655
 
-
 
35656
    public long getSuccess() {
-
 
35657
      return this.success;
-
 
35658
    }
-
 
35659
 
-
 
35660
    public void setSuccess(long success) {
-
 
35661
      this.success = success;
-
 
35662
      setSuccessIsSet(true);
-
 
35663
    }
-
 
35664
 
-
 
35665
    public void unsetSuccess() {
-
 
35666
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
35667
    }
-
 
35668
 
-
 
35669
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
35670
    public boolean isSetSuccess() {
-
 
35671
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
35672
    }
-
 
35673
 
-
 
35674
    public void setSuccessIsSet(boolean value) {
-
 
35675
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
35676
    }
-
 
35677
 
-
 
35678
    public WarehouseServiceException getWex() {
-
 
35679
      return this.wex;
-
 
35680
    }
-
 
35681
 
-
 
35682
    public void setWex(WarehouseServiceException wex) {
-
 
35683
      this.wex = wex;
-
 
35684
    }
-
 
35685
 
-
 
35686
    public void unsetWex() {
-
 
35687
      this.wex = null;
-
 
35688
    }
-
 
35689
 
-
 
35690
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
35691
    public boolean isSetWex() {
-
 
35692
      return this.wex != null;
-
 
35693
    }
-
 
35694
 
-
 
35695
    public void setWexIsSet(boolean value) {
-
 
35696
      if (!value) {
-
 
35697
        this.wex = null;
-
 
35698
      }
-
 
35699
    }
-
 
35700
 
-
 
35701
    public void setFieldValue(_Fields field, Object value) {
-
 
35702
      switch (field) {
-
 
35703
      case SUCCESS:
-
 
35704
        if (value == null) {
-
 
35705
          unsetSuccess();
-
 
35706
        } else {
-
 
35707
          setSuccess((Long)value);
-
 
35708
        }
-
 
35709
        break;
-
 
35710
 
-
 
35711
      case WEX:
-
 
35712
        if (value == null) {
-
 
35713
          unsetWex();
-
 
35714
        } else {
-
 
35715
          setWex((WarehouseServiceException)value);
-
 
35716
        }
-
 
35717
        break;
-
 
35718
 
-
 
35719
      }
-
 
35720
    }
-
 
35721
 
-
 
35722
    public Object getFieldValue(_Fields field) {
-
 
35723
      switch (field) {
-
 
35724
      case SUCCESS:
-
 
35725
        return Long.valueOf(getSuccess());
-
 
35726
 
-
 
35727
      case WEX:
-
 
35728
        return getWex();
-
 
35729
 
-
 
35730
      }
-
 
35731
      throw new IllegalStateException();
-
 
35732
    }
-
 
35733
 
-
 
35734
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
35735
    public boolean isSet(_Fields field) {
-
 
35736
      if (field == null) {
-
 
35737
        throw new IllegalArgumentException();
-
 
35738
      }
-
 
35739
 
-
 
35740
      switch (field) {
-
 
35741
      case SUCCESS:
-
 
35742
        return isSetSuccess();
-
 
35743
      case WEX:
-
 
35744
        return isSetWex();
-
 
35745
      }
-
 
35746
      throw new IllegalStateException();
-
 
35747
    }
-
 
35748
 
-
 
35749
    @Override
-
 
35750
    public boolean equals(Object that) {
-
 
35751
      if (that == null)
-
 
35752
        return false;
-
 
35753
      if (that instanceof getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result)
-
 
35754
        return this.equals((getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result)that);
-
 
35755
      return false;
-
 
35756
    }
-
 
35757
 
-
 
35758
    public boolean equals(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result that) {
-
 
35759
      if (that == null)
-
 
35760
        return false;
-
 
35761
 
-
 
35762
      boolean this_present_success = true;
-
 
35763
      boolean that_present_success = true;
-
 
35764
      if (this_present_success || that_present_success) {
-
 
35765
        if (!(this_present_success && that_present_success))
-
 
35766
          return false;
-
 
35767
        if (this.success != that.success)
-
 
35768
          return false;
-
 
35769
      }
-
 
35770
 
-
 
35771
      boolean this_present_wex = true && this.isSetWex();
-
 
35772
      boolean that_present_wex = true && that.isSetWex();
-
 
35773
      if (this_present_wex || that_present_wex) {
-
 
35774
        if (!(this_present_wex && that_present_wex))
-
 
35775
          return false;
-
 
35776
        if (!this.wex.equals(that.wex))
-
 
35777
          return false;
-
 
35778
      }
-
 
35779
 
-
 
35780
      return true;
-
 
35781
    }
-
 
35782
 
-
 
35783
    @Override
-
 
35784
    public int hashCode() {
-
 
35785
      return 0;
-
 
35786
    }
-
 
35787
 
-
 
35788
    public int compareTo(getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result other) {
-
 
35789
      if (!getClass().equals(other.getClass())) {
-
 
35790
        return getClass().getName().compareTo(other.getClass().getName());
-
 
35791
      }
-
 
35792
 
-
 
35793
      int lastComparison = 0;
-
 
35794
      getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result typedOther = (getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result)other;
-
 
35795
 
-
 
35796
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
35797
      if (lastComparison != 0) {
-
 
35798
        return lastComparison;
-
 
35799
      }
-
 
35800
      if (isSetSuccess()) {
-
 
35801
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
35802
        if (lastComparison != 0) {
-
 
35803
          return lastComparison;
-
 
35804
        }
-
 
35805
      }
-
 
35806
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
35807
      if (lastComparison != 0) {
-
 
35808
        return lastComparison;
-
 
35809
      }
-
 
35810
      if (isSetWex()) {
-
 
35811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
35812
        if (lastComparison != 0) {
-
 
35813
          return lastComparison;
-
 
35814
        }
-
 
35815
      }
-
 
35816
      return 0;
-
 
35817
    }
-
 
35818
 
-
 
35819
    public _Fields fieldForId(int fieldId) {
-
 
35820
      return _Fields.findByThriftId(fieldId);
-
 
35821
    }
-
 
35822
 
-
 
35823
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
35824
      org.apache.thrift.protocol.TField field;
-
 
35825
      iprot.readStructBegin();
-
 
35826
      while (true)
-
 
35827
      {
-
 
35828
        field = iprot.readFieldBegin();
-
 
35829
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
35830
          break;
-
 
35831
        }
-
 
35832
        switch (field.id) {
-
 
35833
          case 0: // SUCCESS
-
 
35834
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
35835
              this.success = iprot.readI64();
-
 
35836
              setSuccessIsSet(true);
-
 
35837
            } else { 
-
 
35838
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35839
            }
-
 
35840
            break;
-
 
35841
          case 1: // WEX
-
 
35842
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
35843
              this.wex = new WarehouseServiceException();
-
 
35844
              this.wex.read(iprot);
-
 
35845
            } else { 
-
 
35846
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35847
            }
-
 
35848
            break;
-
 
35849
          default:
-
 
35850
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
35851
        }
-
 
35852
        iprot.readFieldEnd();
-
 
35853
      }
-
 
35854
      iprot.readStructEnd();
-
 
35855
      validate();
-
 
35856
    }
-
 
35857
 
-
 
35858
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
35859
      oprot.writeStructBegin(STRUCT_DESC);
-
 
35860
 
-
 
35861
      if (this.isSetSuccess()) {
-
 
35862
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
35863
        oprot.writeI64(this.success);
-
 
35864
        oprot.writeFieldEnd();
-
 
35865
      } else if (this.isSetWex()) {
-
 
35866
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
35867
        this.wex.write(oprot);
-
 
35868
        oprot.writeFieldEnd();
-
 
35869
      }
-
 
35870
      oprot.writeFieldStop();
-
 
35871
      oprot.writeStructEnd();
-
 
35872
    }
-
 
35873
 
-
 
35874
    @Override
-
 
35875
    public String toString() {
-
 
35876
      StringBuilder sb = new StringBuilder("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result(");
-
 
35877
      boolean first = true;
-
 
35878
 
-
 
35879
      sb.append("success:");
-
 
35880
      sb.append(this.success);
-
 
35881
      first = false;
-
 
35882
      if (!first) sb.append(", ");
-
 
35883
      sb.append("wex:");
-
 
35884
      if (this.wex == null) {
-
 
35885
        sb.append("null");
-
 
35886
      } else {
-
 
35887
        sb.append(this.wex);
35042
      }
35888
      }
35043
      first = false;
35889
      first = false;
35044
      sb.append(")");
35890
      sb.append(")");
35045
      return sb.toString();
35891
      return sb.toString();
35046
    }
35892
    }